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

Docker image has a misconfigured path (a / missing) #1452

Open
wsw70 opened this issue Oct 8, 2019 · 0 comments
Open

Docker image has a misconfigured path (a / missing) #1452

wsw70 opened this issue Oct 8, 2019 · 0 comments

Comments

@wsw70
Copy link

wsw70 commented Oct 8, 2019

The documentation for the docker image states that the volume for persistence should be configured so that a local repository (/etc/docker/mqtt/data) points to /mosquitto/data.

When running the container, one of the logs is

1570539362: Saving in-memory database to /mosquitto/datamosquitto.db.

There is a slash (/) missing in the code which concatenates the directory /mosquitto/data to the persistence file mosquitto.db.

This also means that running the container with the advertised configuration does not work (the persistence file is not created). My current workaround is to add an extra volume mapping /etc/docker/mqtt:/mosquitto which enables the container to create that file.

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