mosquitto image with 1.6.10 unable to start websocket

Created on 7 Jul 2020  路  3Comments  路  Source: eclipse/mosquitto

I use the below configuration

per_listener_settings true
persistence true
persistence_location /mosquitto/data/
log_dest file /mosquitto/log/mosquitto.log
persistence_file mosquitto.db
log_dest syslog
log_dest stdout
log_dest topic
log_type error
log_type warning
log_type notice
log_type information
connection_messages true
sys_interval 5
log_timestamp true
persistent_client_expiration 1m
listener 1893
protocol websockets
socket_domain ipv4
allow_anonymous false
password_file /mosquitto/config/more/client1.pass
max_connections 10
listener 1895
protocol websockets
socket_domain ipv4
allow_anonymous true
max_connections 10

but I got the following

mqtt_1   | 1594126251: mosquitto version 1.6.10 starting
mqtt_1   | 1594126251: Config loaded from /mosquitto/config/mosquitto.conf.
mqtt_1   | 1594126251: Opening websockets listen socket on port 1893.
mqtt_1   | 1594126251: Opening websockets listen socket on port 1895.
mqtt_1   | 1594126251: Error: Unable to start any listening sockets, exiting.

please help me out

pending-close

Most helpful comment

The workaround is to define a non-websockets listener. This is now fixed in the fixes branch.

All 3 comments

me too.

We encountered the same problem after updating to verison 1.6.10. mqtt protocoll worked but with websockets it simple did not start anymore. (Centos7)

Is the reason for this problem alreay known? Any known workarounds?

The workaround is to define a non-websockets listener. This is now fixed in the fixes branch.

Was this page helpful?
0 / 5 - 0 ratings