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

Error opening password file #27

Closed
cpfowler opened this issue Aug 4, 2022 · 1 comment
Closed

Error opening password file #27

cpfowler opened this issue Aug 4, 2022 · 1 comment

Comments

@cpfowler
Copy link

cpfowler commented Aug 4, 2022

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
Copy link
Author

cpfowler commented Aug 4, 2022

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:
#28

@cpfowler cpfowler closed this as completed Aug 4, 2022
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

1 participant