-
Notifications
You must be signed in to change notification settings - Fork 7
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
Error: Unable to open log file /mosquitto/log/mosquitto.log for writing. #28
Comments
@cpfowler Could you share how you have configured e.g.:
|
I was able to fix this with more permission changes. So in Unraid's webGUI terminal, I used chown -R 1883:1883 and chmod -R 775 on Mosquitto's appdata folder. I THINK the problem is this Unraid specific docker image isn't setting folder permissions/owner correctly when they're created; such as /appdata/mosquitto/; /appdata/mosquitto/logs/; and /appdata/mosquitto/passwd when using "mosquitto_passwd." Here's the info requested: Only customizations I made to the docker template was changing network to my br0.2 and giving it an internal IP. I mounted /mnt/user/appdata/mosquitto/logs/ for the log directory. I didn't add any extra options for the user, PUID, PGID, nor UMASK. |
Error: Unable to open log file /mosquitto/log/mosquitto.log for writing. |
I have tried the above permission change suggestions but I'm still getting errors unable to read the file. Inside the container the user and group are both mosquitto with permissions -rwxrwxr-x. In Unraid, 1883 is the group and user. |
This is still happening. I had to reset the permissions like @xm4rcell0x suggested, and it worked |
Fixed the passwd permissions problem: #27
Now I have what seems to be the exact same problem, but for the log file:
1659577565: Loading config file /mosquitto/config/mosquitto-unraid-default.conf
1659577565: Error: Unable to open log file /mosquitto/log/mosquitto.log for writing.
1659577715: Error: Permission denied.
I tried creating the logfile myself, then setting the permissions for it.
Ran the same 2 commands from Unraid webGUI terminal (which fixed passwd problem):
chown -R 99:100 /mnt/user/appdata/mosquitto
chmod -R 775 /mnt/user/appdata/mosquitto
The text was updated successfully, but these errors were encountered: