This is my mosquitto conf:
log_dest file /var/log/mosquitto/mosquitto.log
max_connections -1 # accept "unlimited" connections
listener 8080 0.0.0.0
In the browser I read this error:
WebSocket connection to 'ws://xx.xxx.xxx.xx:8080/mqtt' failed: Error in connection establishment: net::ERR_CONNECTION_REFUSED
With mosquitto_sub i just get:
Error: Connection refused
I have mosquitto running under supervisord.
mosquitto RUNNING pid 1179, uptime 13 days, 1:51:16
command=/usr/sbin/mosquitto -c /etc/mosquitto/mosquitto.conf
Supervisor's log is empty, and mosquitto's tailf log reads:
1447771263: Config loaded from /etc/mosquitto/mosquitto.conf.
1447771263: Opening websockets listen socket on port 8080.
1447771263: Error: Unable to create websockets listener on port 8080.
But it's also weird because websockets work fine, and there's no timestamp on those logs. Also, I would like to add, that if mosquitto is restarted doing "supervisorctl restart mosquitto", it starts working normal again.
I don't know if it's a supervisor bug, mosquitto bug, or i'm just missing something. Hope you can guide me.
Sorry for not having any more information.