server icon indicating copy to clipboard operation
server copied to clipboard

Mosquitto crash

Open bertt opened this issue 5 years ago • 2 comments

sometimes we observe Mosquitto server crashing, error message:

mosquitto: loop.c:489: loop_handle_reads_writes: Assertion `pollfds[context->pollfd_index].fd == context->sock' failed
version mosquitto version 1.4.15
timestamp Sat, 07 Apr 2018 11:13:41 +01

Workaround: restart server

Used Docker image: https://github.com/toke/docker-mosquitto

bertt avatar Feb 10 '20 09:02 bertt

On the https://github.com/toke/docker-mosquitto there is a hint to move to the official Eclipse Mosquitto https://hub.docker.com/_/eclipse-mosquitto/

bertt avatar Feb 10 '20 09:02 bertt

Changed docker-compose.yml (https://github.com/gost/docker-compose/blob/master/docker-compose.yml)

  • Image 'eclipse-mosquitto' is used instead of 'toke/mosquitto';

  • Mosquitto is configured using mosquitto.conf file (https://github.com/gost/docker-compose/blob/master/mosquitto.conf), for enabling websockets;

Testing: dashboard mqtt client is working, mosquitto_sub working, Mosquitto version 1.6.8.

Small drawback: both files (docker-compose.yml file + mosquitto.conf) are needed to get GOST running.

Todo: rollout/test on production server

bertt avatar Feb 13 '20 13:02 bertt