Open abhion opened 4 years ago
The error 10048
given here indicates that the port 1884 is already in use. Do you have something else running that is using that port?
@ralight
This probably started happening after I enabled ssl mode as instructed here: http://www.steves-internet-guide.com/mosquitto-tls/. I saw that mosquitto.exe was using the port 1884. I restarted mosquitto service and I ran the config again. Now I get
1576718626: mosquitto version 1.6.8 starting 1576718626: Config loaded from mosquitto.conf. 1576718626: Opening websockets listen socket on port 1884. 1576718626: libuv support not compiled in 1576718626: Creating Vhost 'default' port 1884, 3 protocols, IPv6 off 1576718626: Using non-SSL mode 1576718626: Opening ipv6 listen socket on port 1883. 1576718626: Error: Only one usage of each socket address (protocol/network address/port) is normally permitted.
This is how I enabled websockets in the config:
#protocol mqtt port 1883 listener 1884 protocol websockets
@ralight i got it to work by stopping mosquitto in Services.
But in the log i get 1576718626: Using non-SSL mode
though i added the path for the keys and certificate.
`# "openssl rehash
Why can't I enable SSL mode?
If you've copied those lines as they are, then the cafile, certfile, and keyfile lines are all commented out. Please try removing the #
at the beginning of the line.
I did a detailed log and got this