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

MQTT support needs upgrade #26

Closed
koelkast88 opened this issue Aug 6, 2018 · 9 comments
Closed

MQTT support needs upgrade #26

koelkast88 opened this issue Aug 6, 2018 · 9 comments
Assignees

Comments

@koelkast88
Copy link

koelkast88 commented Aug 6, 2018

With the update to 1.23, MQTT doesn't work anymore. it needs an update


sudo cp /home/dsmr/dsmr-reader/dsmrreader/provisioning/supervisor/dsmr-reader.conf /etc/supervisor/conf.d/

sudo supervisorctl reread

sudo supervisorctl update

But, it doesn't work in your Docker version. Which command / directories do I need for updating the supervisor?

@Baseje
Copy link

Baseje commented Aug 6, 2018

It also didnt work on my installation!

@xirixiz
Copy link
Owner

xirixiz commented Aug 7, 2018

I`ll fix this issue Today... Cheers

@xirixiz xirixiz self-assigned this Aug 7, 2018
@ualex73
Copy link

ualex73 commented Aug 7, 2018

I fixed it in my fork already:
https://github.com/ualex73/dsmr-reader-docker/blob/master/rootfs/supervisord.conf

Don't forget the restart option, otherwise the WebGUI will stop the MQTT process, but it will not start automatically.

@xirixiz
Copy link
Owner

xirixiz commented Aug 7, 2018

Thanks for your help ualex73! Copied your version of supervisord.

@xirixiz xirixiz closed this as completed Aug 7, 2018
@Baseje
Copy link

Baseje commented Aug 8, 2018

How to update this file, i tried to recreate my docker container by the new image and restore my database but no result :(

@ualex73
Copy link

ualex73 commented Aug 8, 2018

@Baseje : what type of error are you getting?

Also if you do a "ps -ef | grep dsmr_" what do you see?

My output looks like:
$ ps -ef | grep dsmr_ | grep -v timeout
dsmr 6528 6516 1 aug07 ? 00:11:21 python3 -u /home/dsmr/app/manage.py dsmr_mqtt
dsmr 6530 6516 8 aug07 ? 01:00:18 python3 -u /home/dsmr/app/manage.py dsmr_datalogger
dsmr 6533 6516 6 aug07 ? 00:42:50 python3 -u /home/dsmr/app/manage.py dsmr_backend

@Baseje
Copy link

Baseje commented Aug 8, 2018 via email

@ualex73
Copy link

ualex73 commented Aug 8, 2018

Ok, the dsmr_mqtt isn't running ...

Can you compare inside the Docker the file "/etc/supervisor/conf.d/supervisord.conf" with the following one:
https://github.com/xirixiz/dsmr-reader-docker/blob/master/app/supervisord.conf

You should see the additional section:
[program:dsmr_mqtt]
command=/usr/bin/nice -n 15 python3 -u /home/dsmr/app/manage.py dsmr_mqtt
pidfile=/var/tmp/dsmrreader--%(program_name)s.pid
user=dsmr
group=dsmr
autostart=true
autorestart=true
startsecs=1
startretries=100
stopwaitsecs=5

@Baseje
Copy link

Baseje commented Aug 8, 2018 via email

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

4 participants