iobroker-community-adapters / ioBroker.openhab

Connect ioBroker with openHAB
MIT License
13 stars 3 forks source link

Error: connect EHOSTUNREACH #34

Closed KrX3D closed 3 years ago

KrX3D commented 3 years ago

Hello,

im getting this error:

openhab.0 2020-11-07 22:27:43.236 error (29781) Cannot get answer from "http://192.168.0.101:8080/rest/items?recursive=false": Error: connect EHOSTUNREACH 192.168.0.101:8080

but going to "http://192.168.0.101:8080/rest/items?recursive=false" via browser i get a list of my items so what is wrong?

grafik

Apollon77 commented 3 years ago

did you teally tried it from the same host as iobroker runs on? Maybe try via "wget" or "curl" from that host

KrX3D commented 3 years ago

hi,

my setup:

i have a NAS with Unraid as OS, on it i run different docker images.

iobroker docker image has the ip 192.168.0.113 Port 8081 openhab docker image has the ip 192.168.0.101 Port 8080

when i start the openhab adapter i get the error:

openhab.0 2020-11-08 09:55:36.069 error (31404) Cannot get answer from "http://192.168.0.101:8080/rest/items?recursive=false": Error: connect EHOSTUNREACH 192.168.0.101:8080

but when i access the link from this error "http://192.168.0.101:8080/rest/items?recursive=false" via my notebook browser i see this:

grafik

Apollon77 commented 3 years ago

Network is different ... sorry but here you need to see why the openhab docker container can not reached from the second docker container ... this has nothing to d with the adapter. I think the Forum or docker support forums can help more.

KrX3D commented 3 years ago

thanks for the hint, i changed the ip of the openhab docker image also to 192.168.0.113 and now it works