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 creating backup password file "/mqtt_passwd.tmp", not continuing. #2640

Closed
FrancescoSaverioZuppichini opened this issue Sep 25, 2022 · 1 comment

Comments

@FrancescoSaverioZuppichini

Hi guys,

I hope you are all doing great :)

I am trying to create a username and password. The following command,

docker run --rm -it \
 -u $(id -u ${USER}):$(id -g ${USER}) \
 -v $(pwd)/mosquitto.conf:/mosquitto/config/mosquitto.conf \
 -v $(pwd)/mqtt_passwd.txt:/mqtt_passwd \
 eclipse-mosquitto mosquitto_passwd -b /mqtt_passwd zuppif test123

gives Error creating backup password file "/mqtt_passwd.tmp", not continuing.

Where mqtt_passwd.txt is an empty txt file.

Thanks

@bastilam
Copy link

As a workaround, try:

docker run --rm -it \
 -u $(id -u ${USER}):$(id -g ${USER}) \
 -v $(pwd)/mosquitto.conf:/mosquitto/config/mosquitto.conf \
 -v $(pwd)/mqtt_passwd.txt:/mqtt_passwd \
 -v $(pwd)/mqtt_passwd.txt:/mqtt_passwd.tmp \
 eclipse-mosquitto mosquitto_passwd -b /mqtt_passwd zuppif test123

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 30, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants