cmccambridge / mosquitto-unraid Goto Github PK
View Code? Open in Web Editor NEWDocker container for eclipse-mosquitto with unRAID ease-of-use tweaks
Docker container for eclipse-mosquitto with unRAID ease-of-use tweaks
Downloaded the cmccambridge/mosquitto-unraid:latest from the Apps in unRAID. The docker wouldn't start so I clicked on logs and it just says this:
exec /docker-entrypoint.sh: no such file or directory
exec /docker-entrypoint.sh: no such file or directory
** Press ANY KEY to close this window **
Attaching screenshots of everything in case I have missed something.
My docker settings:
The error in console:
File directory output: - Dont see any config file - the script that it cannot find might be the one creating it but wasnt sure.
Please let me know if any additional information is required.
I pretty sure I am just doing this wrong but I am trying to setup a broker for home assistant and I can't get anything to work at all.
I want to just the standard mqtt protocol on port 1883 with logging
# Place your local configuration in /mqtt/config/conf.d/
persistence true
persistence_location /mosquitto/data/
user mosquitto
# Port to use for the default listener.
port 1883
protocol mqtt
log_dest file /mosquitto/log/mosquitto.log
log_type information
include_dir /mqtt/config/conf.d
I start it and it just stops again.
This is a major release of Mosquitto adding substantial new code. Will look at whether there's any mechanism in unraid templates to pin old versions as risk mitgation if the new version proves to be unstable.
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:
Fixed the passwd permissions problem: #27
Now I have what seems to be the exact same problem, but for the log file:
1659577565: Loading config file /mosquitto/config/mosquitto-unraid-default.conf
1659577565: Error: Unable to open log file /mosquitto/log/mosquitto.log for writing.
1659577715: Error: Permission denied.
I tried creating the logfile myself, then setting the permissions for it.
Ran the same 2 commands from Unraid webGUI terminal (which fixed passwd problem):
chown -R 99:100 /mnt/user/appdata/mosquitto
chmod -R 775 /mnt/user/appdata/mosquitto
I appreciate your work with this simple concise container. Thanks!
Could I suggest you have a link to your gibhub repo via your hub,docker.com page, helps when you publish updates and we can see what they contain.
:)
Does this docker include mosquitto-clients?
# mosquitto_pub -h localhost -t "test" -m "hello world"
sh: mosquitto_pub: not found
If mosquitto-clients was not included was there a reason for this or was it an oversight? Thanks for the updated mosquitto version. Using on UnRaid.
Hi - are the daily updates legit, or is this a bug?
Thanks for this great container! I use it in Unraid via Community Applications and have added the following in the conf to get a formatted time in the log:
log_timestamp_format %Y-%m-%dT%H:%M:%S
Here is the command generated by Unraid (including the TZ variable):
root@localhost:# /usr/local/emhttp/plugins/dynamix.docker.manager/scripts/docker run -d --name='mosquitto' --net='bridge' -e TZ="Europe/Berlin" -e HOST_OS="Unraid" -e 'RUN_INSECURE_MQTT_SERVER'='0' -p '1883:1883/tcp' -p ':8883/tcp' -p ':9001/tcp' -v '/mnt/user/appdata/mosquitto':'/mosquitto/config':'rw' -v '/mnt/user/appdata/mosquitto/data':'/mosquitto/data':'rw' -v '/mnt/user/appdata/mosquitto/log':'/mosquitto/log':'rw' 'cmccambridge/mosquitto-unraid:latest' 9f46f4e8c1b6bfaceefb9c21bdd5930dbca0c9db837c403cf3d7c0cf0f8bb6d2
Apparently, however, the passed timezone is ignored in the container, since the log entries show UTC timezone and also the date command shows UTC:
Can you please fix this? :)
greetings
Andreas
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.