-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
Can't load mosquitto.conf #1114
Comments
Sorry for the slightly confusing text below. Reading a config file follows these steps.
You are getting the messages |
That's definitely the error. I get it. Weird thing is, I've been running this same container with this same command many times over the past month, but this crops up once in a while. docker run -it -p 8883:8883 -p 9001:9001 \
Error: Unable to open config file /mosquitto/config/mosquitto.conf Error found at /mosquitto/config/mosquitto.conf:0. |
I got the same error message |
It is enough to create an empty file mosquitto.conf and the error will disappear. |
Trying to start 1.5 on docker on centos 7.
I created 3 dirs:
/srv/mqtt/log
/srv/mqtt/config
/srv/mqtt/data
create a mosquitto.conf as follows:
persistence true
persistence_file mosquitto.db
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
put config file into /srv/mqtt/config/mosquitto.conf (permissions 777 owner:group 1883:1883)
start:
sudo docker run -it -p 1883:1883 -p 9001:9001 -v /srv/mqtt/config/mosquitto.conf:/mosquitto/config/mosquitto.conf eclipse-mosquitto:latest
I get: Error found at /mosquitto/config/mosquitto.conf:0.
Error: Unable to open configuration file.
not sure where to go from here. I tried setting owner to root, tried the example mosquitto.conf, tried it all, it just won't accept any .conf, always error on line 0
The text was updated successfully, but these errors were encountered: