mqtt-bridge-smartthings icon indicating copy to clipboard operation
mqtt-bridge-smartthings copied to clipboard

EHOSTUNREACH from Docker container on Windows

Open robross0606 opened this issue 3 years ago • 2 comments

I followed all the instructions as indicated on the README and DOCKER.md files. My container starts up and clearly receives both configuration messages from the MBS SmartApp, as well as from the MQTT server. However, it appears to attempt to change a device in Smartthings and get a bounceback due to EHOSTUNREACH:

2020-11-30 02:10:03 AM info: MQTT --> ST - Topic: [smartthings/Side Door/contact/cmd][closed] [Side Door][contact][closed]
2020-11-30 02:10:05 AM error: Error from SmartThings Hub: Error: connect EHOSTUNREACH 172.18.10.3:39500
2020-11-30 02:10:05 AM error: {
"errno": -113,
"code": "EHOSTUNREACH",
"syscall": "connect",
"address": "172.18.10.3",
"port": 39500
}
2020-11-30 02:10:05 AM error: undefined

This set of messages happens once each time a device status is attempted to set on Smartthings hub (172.18.10.3). I double-checked the firewall rule setup in Windows and even tried disabling the firewall completely. This feels like a routing issue in Docker Desktop and WSL2, but you have instructions for using it this way so I'm not sure what is wrong.

robross0606 avatar Nov 30 '20 02:11 robross0606

I think I mention somewhere that if u r using docker, docker container had it own virtual Mac and IP so u might need to play with that

Sent from my iPhone

On Nov 29, 2020, at 8:16 PM, robross0606 [email protected] wrote:

 I followed all the instructions as indicated on the README and DOCKER.md files. My container starts up and clearly receives both configuration messages from the MBS SmartApp, as well as from the MQTT server. However, it appears to attempt to change a device in Smartthings and get a bounceback due to EHOSTUNREACH:

2020-11-30 02:10:05 AM error: Error from SmartThings Hub: Error: connect EHOSTUNREACH 172.18.10.3:39500 2020-11-30 02:10:05 AM error: { "errno": -113, "code": "EHOSTUNREACH", "syscall": "connect", "address": "172.18.10.3", "port": 39500 } 2020-11-30 02:10:05 AM error: undefined This set of messages happens once for each device status it attempts to set on Smartthings hub (172.18.10.3). I double-checked the firewall rule setup in Windows and even tried disabling the firewall completely. This feels like a routing issue in Docker Desktop and WSL2, but you have instructions for using it this way so I'm not sure what is wrong.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub, or unsubscribe.

sgupta999 avatar Nov 30 '20 03:11 sgupta999

I can't find where you mention that. If you happen to find the URL, I really appreciate it.

robross0606 avatar Nov 30 '20 14:11 robross0606