cmccambridge / mosquitto-unraid

Docker container for eclipse-mosquitto with unRAID ease-of-use tweaks
19 stars 7 forks source link

Error opening password file #27

Closed cpfowler closed 2 years ago

cpfowler commented 2 years ago

Brand new Mosquitto-Unraid install from the Community Apps.

After following directions and opting for setting up an user and listener on 1883, the container wont start.

This is all I get in the logs: 1659576399: Loading config file /mosquitto/config/mosquitto-unraid-default.conf 1659576399: mosquitto version 2.0.13 starting 1659576399: Config loaded from /mosquitto-unraid/include_dir.conf. 1659576399: Error: Unable to open pwfile "/mosquitto/config/passwd". 1659576399: Error opening password file "/mosquitto/config/passwd".

I followed the directions exactly for adding a new user 'cody' with: docker exec -it Mosquitto touch /mosquitto/config/passwd docker exec -it Mosquitto mosquitto_passwd /mosquitto/config/passwd cody

I even went into Unraid's file manager and updated permissions manually, same problem as default permissions from above commands: image

Unraid container setup: image

cpfowler commented 2 years ago

Decided to try fixing permissions with Unraid's webGUI terminal, which fixed the problem: chown -R 99:100 /mnt/user/appdata/mosquitto chmod -R 775 /mnt/user/appdata/mosquitto

This solved the passwd permission problem. but it immediately gave a new similar problem though, for the log file: https://github.com/cmccambridge/mosquitto-unraid/issues/28