-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
mqtt on docker, no file created in volumes #1958
Comments
It doesn't look like you've specified a configuration file, so the default config file will be used which doesn't do any logging nor persistence. You can fix that by adding a
Running as user 0 won't matter, because Mosquitto will drop to the |
I've added this line:
and this mosquitto.conf:
But still, no files are written in log nor Data folders. Is my conf right? |
I have the same problem. I can't solve it but I found a workaround ...
This way the db and the log are written in your I really can't get why I'm unable to have the db and the log saved in subfolder but at least I was able to find a workaround. |
I just ran into the same problem today. The solution was quite easy. You have to add a trailing slash to the path in mosquitto.conf like this:
Without the trailing slash no .db file was created. That's on version 2.0.7 using the official docker image btw. |
@denwald That doesn't match what I see. It works fine without a trailing slash: |
Hello @ralight, |
@denwald No problem! I'm glad it's working, it's just the trailing slash used to be required so I wanted to check. |
mosuitto installed through docker-compose on ubuntu 18.04.
In mosquitto volume, I have only empty folders. no conf/db/log files are created.
This is my compose conf:
I added the user 0:0 trying to let it write stuff there but it didn’t matter
Here is an output of permissions and files in it:
What is wrong here? Why can't files be written?
The text was updated successfully, but these errors were encountered: