Open MABeatty1978 opened 6 years ago
I'm having a similar issue, but on Windows 10... info: Starting SmartThings MQTT Bridge - v2.1.0 info: Loading configuration info: Loading previous state info: Perfoming configuration migration info: Saving current state info: Connecting to MQTT at mqtt://localhost
Also, when I do a netstat -a, port 1883 does not show as listening during the hang. I don't know if that's relevant or not.
There's no knowledge base or discussion board out there to look through for troubleshooting, and google is a bust.
Any help appreciated.
Just to clarify, the broker would be something like mosquitto or mosca, the bridge is what is in this repo. Are you starting mosquitto or mosca or an equivalent and then starting SmartThings MQTT Bridge?
I'm getting the same behavior. I'm running Mosca in a docker container. Mosca is listening correctly on port 1883. I can use mosquitto_sub/pub successfully and see the log messages in the Mosca logs.
When I start the bridge, I get the following logs:
2019-01-23T06:24:57.023Z - info: Starting SmartThings MQTT Bridge - v3.0.0
2019-01-23T06:24:57.024Z - info: Loading configuration
2019-01-23T06:24:57.025Z - info: No previous configuration found, creating one
2019-01-23T06:24:57.033Z - info: Loading previous state
2019-01-23T06:24:57.034Z - info: No previous state found, continuing
2019-01-23T06:24:57.035Z - info: Perfoming configuration migration
2019-01-23T06:24:57.042Z - info: Saving current state
2019-01-23T06:24:57.045Z - info: Connecting to MQTT at mqtt://mqtt
2019-01-23T06:30:32.138Z - info: Starting SmartThings MQTT Bridge - v3.0.0
2019-01-23T06:30:32.140Z - info: Loading configuration
2019-01-23T06:30:32.147Z - info: Loading previous state
2019-01-23T06:30:32.149Z - info: Perfoming configuration migration
2019-01-23T06:30:32.153Z - info: Saving current state
2019-01-23T06:30:32.156Z - info: Connecting to MQTT at mqtt://localhost
2019-01-23T07:10:56.493Z - info: Starting SmartThings MQTT Bridge - v3.0.0
2019-01-23T07:10:56.495Z - info: Loading configuration
2019-01-23T07:10:56.503Z - info: Loading previous state
2019-01-23T07:10:56.505Z - info: Perfoming configuration migration
2019-01-23T07:10:56.509Z - info: Saving current state
2019-01-23T07:10:56.512Z - info: Connecting to MQTT at mqtt://localhost
2019-01-24T04:06:34.946Z - info: Starting SmartThings MQTT Bridge - v3.0.0
2019-01-24T04:06:34.948Z - info: Loading configuration
2019-01-24T04:06:35.001Z - info: Loading previous state
2019-01-24T04:06:35.024Z - info: Perfoming configuration migration
2019-01-24T04:06:35.030Z - info: Saving current state
2019-01-24T04:06:35.033Z - info: Connecting to MQTT at mqtt://localhost
2019-01-24T04:11:07.667Z - info: Starting SmartThings MQTT Bridge - v3.0.0
2019-01-24T04:11:07.669Z - info: Loading configuration
2019-01-24T04:11:07.724Z - info: Loading previous state
2019-01-24T04:11:07.725Z - info: Perfoming configuration migration
2019-01-24T04:11:07.729Z - info: Saving current state
2019-01-24T04:11:07.733Z - info: Connecting to MQTT at mqtt://localhost
2019-01-24T06:09:24.034Z - info: Starting SmartThings MQTT Bridge - v3.0.0
2019-01-24T06:09:24.036Z - info: Loading configuration
2019-01-24T06:09:24.043Z - info: Loading previous state
2019-01-24T06:09:24.044Z - info: Perfoming configuration migration
2019-01-24T06:09:24.048Z - info: Saving current state
2019-01-24T06:09:24.051Z - info: Connecting to MQTT at mqtt://127.0.0.1
You can see that I've tried localhost and 127.0.0.1 and tried multiple times. It just won't connect.
If there's any additional logs I can get for you, please let me know.
Nevermind. I found a way to get it to work. I replaced my hostname with the ip address of the machine (i.e. 192.168.2.16, rather than the loopback address)
I faced same issue. My nodejs was running in a docker container. After running container with flag --net=host the connection was successful
I'm trying to start the broker and it won't go any further than connecting: pi@raspberrypi:~ $ sudo smartthings-mqtt-bridge info: Starting SmartThings MQTT Bridge - v2.0.0 info: Loading configuration info: Loading previous state info: Perfoming configuration migration info: Saving current state info: Connecting to MQTT at mqtt://192.168.86.20:1883
Running on raspbian.
Any ideas on what I can try?