Coder Social home page Coder Social logo

mosquitto-unraid's People

Contributors

cmccambridge avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

mosquitto-unraid's Issues

unRAID Docker Issue - /docker-entrypoint.sh: no such file or directory

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:
image
The error in console:
image
File directory output: - Dont see any config file - the script that it cannot find might be the one creating it but wasnt sure.
image

Please let me know if any additional information is required.

Docker won't start after I edit config

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.

Update to Mosquitto 1.6, supporting MQTT 5

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.

Error opening password file

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

Error: Unable to open log file /mosquitto/log/mosquitto.log for writing.

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

Suggestion: Link hub.docker.com to your github

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.

:)

Include mosquitto-clients

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.

Daily updates

Hi - are the daily updates legit, or is this a bug?

Timezone is ignored

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:

image

Can you please fix this? :)

greetings
Andreas

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.