Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docker安装MQTT报错了 #3000

Open
lsk5201 opened this issue Feb 11, 2024 · 1 comment
Open

docker安装MQTT报错了 #3000

lsk5201 opened this issue Feb 11, 2024 · 1 comment

Comments

@lsk5201
Copy link

lsk5201 commented Feb 11, 2024

2024/2/11 21:37:15 1707658635: Error: Unable to open config file /mosquitto/config/mosquitto.conf.

@kri164
Copy link

kri164 commented Mar 6, 2024

The same error on running rootless podman.
File persmissions looks good.

podman unshare ls -al /home/joe/MQTT/config/
total 16
drwxr-xr-x 1 1883 1883   94 Mar  6 16:19 .
drwxr-xr-x 1 1883 1883   26 Mar  5 19:32 ..
-rw-r----- 1 1883 1883  630 Mar  5 18:01 aclfile
-rw-r----- 1 1883 1883    6 Mar  6 16:19 mosquitto.conf
-rw-r----- 1 1883 1883 1057 Mar  5 18:29 mosquitto.old
-rw-r----- 1 1883 1883    0 Mar  5 18:01 pskfile
-rw-r----- 1 1883 1883  597 Mar  5 18:01 pwfile
podman run -it --name mosquitto -p 1883:1883 \
-v /home/joe/MQTT/config:/mosquitto/config \
-v /home/joe/MQTT/data:/mosquitto/data \
-v /home/joe/MQTT/log:/mosquitto/log \
eclipse-mosquitto:openssl
1709739091: Error: Unable to open config file /mosquitto/config/mosquitto.conf.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants