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

Host Path Problem For Container wis2box_project-mosquitto #451

Open
mgiannoni opened this issue May 18, 2023 · 0 comments
Open

Host Path Problem For Container wis2box_project-mosquitto #451

mgiannoni opened this issue May 18, 2023 · 0 comments

Comments

@mgiannoni
Copy link

Host Path Problem For Container wis2box_project-mosquitto

This seems a funny problem to have, maybe I'm running on the wrong branch here?

Container wis2box_project-mosquitto Error

wis2box]$ python3 wis2box-ctl.py logs mosquitto
mosquitto | SSL disabled
mosquitto | Setting mosquitto authentication
mosquitto | cp: '/mosquitto/config/mosquitto.conf' and '/mosquitto/config/mosquitto.conf' are the same file
mosquitto | 2023-05-18T16:10:00: mosquitto version 2.0.15 starting
mosquitto | 2023-05-18T16:10:00: Config loaded from /mosquitto/config/mosquitto.conf.
mosquitto | 2023-05-18T16:10:00: Error: Unable to open acl_file "/mosquitto/config/acl.conf".
mosquitto | 2023-05-18T16:10:00: Error opening acl file "/mosquitto/config/acl.conf".

Git Repo Status

wis2box]$ git status
On branch main
Your branch is up to date with 'origin/main'.
Changes not staged for commit:
(use "git add <file>..." to update what will be committed)
(use "git restore <file>..." to discard changes in working directory)
modified: wis2box-broker/Dockerfile
no changes added to commit (use "git add" and/or "git commit -a")

Docker File Modification

Change mkdir -p /data/wis2box/mosquitto to mkdir -p /data/wis2box/mosquitto/config

$ git diff wis2box-broker/Dockerfile
diff --git a/wis2box-broker/Dockerfile b/wis2box-broker/Dockerfile
index d3dce3e..b1b8811 100644
--- a/wis2box-broker/Dockerfile
+++ b/wis2box-broker/Dockerfile
@@ -21,7 +21,7 @@
FROM eclipse-mosquitto
-RUN mkdir -p /data/wis2box/mosquitto
+RUN mkdir -p /data/wis2box/mosquitto/config
RUN ln -s /mosquitto /data/wis2box/mosquitto
COPY mosquitto-ssl.conf /mosquitto/config/mosquitto-ssl.conf

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