justme-1968 / homebridge-fhem

a fhem platform plugin for homebridge
https://wiki.fhem.de/wiki/Homebridge_einrichten
79 stars 16 forks source link

Problem mit longpool #67

Open DocVooDoo87 opened 3 years ago

DocVooDoo87 commented 3 years ago

Hello. I have since the last update the problem:

10.11.2020, 19:41:44 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:44 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:45 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:45 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:46 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:46 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:47 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:47 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:48 [FHEM] Fetching FHEM devices... 10.11.2020, 19:41:48 starting longpoll: http://undefined:undefined/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1605033708370 10.11.2020, 19:41:48 longpoll error: Error: getaddrinfo ENOTFOUND undefined, retry in: 30000msec

What can i do?

The config:

{ "platform": "FHEM", "name": "FHEM", "server": "192.168.178.105", "port": "8083", "filter": "room=Homekit" }

justme-1968 commented 3 years ago

when was your last update? what was updated? which version did you use before?

http://undefined:undefined

is clearly wrong. i have no idea where this comes from.

supernova1963 commented 3 years ago

had have the same problem on hoobs with install fhem plugin by web-UI. after reboot fhem and hoobs (separate proxmox container) it seem it is ok. fhem device checking about every 200 ms?!

Its only a test with hoobs and these plugins (homematic,shelly,mqttthing) because I like the eve app. My productive system is fhem.

6.12.2020, 11:34:34 HOOBS listening on port 80. 6.12.2020, 11:34:35 Loaded plugin 'homebridge-eveatmo' 6.12.2020, 11:34:35 [12/6/2020, 10:34:35 AM] Registering platform 'homebridge-eveatmo.eveatmo' 6.12.2020, 11:34:35 Loaded plugin 'homebridge-fhem' 6.12.2020, 11:34:35 homebridge API version: 2.6 6.12.2020, 11:34:35 this is homebridge-fhem 0.5.20 6.12.2020, 11:34:35 [12/6/2020, 10:34:35 AM] Registering platform 'homebridge-fhem.FHEM' 6.12.2020, 11:34:35 Loaded plugin 'homebridge-homematic' 6.12.2020, 11:34:35 [12/6/2020, 10:34:35 AM] Registering platform 'homebridge-homematic.HomeMatic' 6.12.2020, 11:34:36 Loaded plugin 'homebridge-mqttthing' 6.12.2020, 11:34:36 [12/6/2020, 10:34:36 AM] Registering accessory 'homebridge-mqttthing.mqttthing' 6.12.2020, 11:34:36 Loaded plugin 'homebridge-shelly' 6.12.2020, 11:34:36 [12/6/2020, 10:34:36 AM] Registering platform 'homebridge-shelly.Shelly' 6.12.2020, 11:34:36 Loading 4 platforms... 6.12.2020, 11:34:36 [eveatmo platform] Initializing eveatmo platform... 6.12.2020, 11:34:36 [eveatmo platform] Loading new data from API for: weatherstation 6.12.2020, 11:34:36 [Shelly] Initializing Shelly platform... 6.12.2020, 11:34:36 [debMatic CCU] Initializing HomeMatic platform... 6.12.2020, 11:34:36 [debMatic CCU] [Core] merging configurations 6.12.2020, 11:34:36 [debMatic CCU] Homematic Plugin Version 0.1.231 6.12.2020, 11:34:36 [debMatic CCU] Plugin by thkl https://github.com/thkl 6.12.2020, 11:34:36 [debMatic CCU] Homematic is a registered trademark of the EQ-3 AG 6.12.2020, 11:34:36 [debMatic CCU] Please report any issues to https://github.com/thkl/homebridge-homematic/issues 6.12.2020, 11:34:36 [debMatic CCU] running in production mode 6.12.2020, 11:34:36 [debMatic CCU] will connect to your ccu at 10.100.1.9 6.12.2020, 11:34:36 [debMatic CCU] IMPORTANT !! Starting this version, your homematic custom configuration is located in /home/hoobs/.hoobs/etc/homematic_config.json 6.12.2020, 11:34:36 [debMatic CCU] [RPC] using xmprpc for communication with BidCos-RF 6.12.2020, 11:34:36 [debMatic CCU] init RPC for BidCos-RF. 6.12.2020, 11:34:36 [debMatic CCU] [RPC] local ip used : 10.100.1.100. you may change that with local_ip parameter in config 6.12.2020, 11:34:36 [debMatic CCU] init RPC for VirtualDevices. 6.12.2020, 11:34:36 [debMatic CCU] [RPC] local ip used : 10.100.1.100. you may change that with local_ip parameter in config 6.12.2020, 11:34:36 [debMatic CCU] [RPC] using xmprpc for communication with BidCos-Wired 6.12.2020, 11:34:36 [debMatic CCU] init RPC for BidCos-Wired. 6.12.2020, 11:34:36 [debMatic CCU] [RPC] local ip used : 10.100.1.100. you may change that with local_ip parameter in config 6.12.2020, 11:34:36 [debMatic CCU] init RPC for HmIP-RF. 6.12.2020, 11:34:36 [debMatic CCU] [RPC] local ip used : 10.100.1.100. you may change that with local_ip parameter in config 6.12.2020, 11:34:36 [FHEM] Initializing FHEM platform... 6.12.2020, 11:34:36 starting longpoll: http://192.168.1.100:8087/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1607250876207 6.12.2020, 11:34:36 [FHEM] Fetching FHEM devices... 6.12.2020, 11:34:36 Loading 1 accessories... 6.12.2020, 11:34:36 [21_Deckenleuchte] Initializing mqttthing accessory... 6.12.2020, 11:34:36 [21_Deckenleuchte] MQTT URL: mqtt://192.168.1.100:1884 6.12.2020, 11:34:36 [21_Deckenleuchte] MQTT options: {"keepalive":30,"clientId":"mqttthing_21_Deckenleuchte_5df90574","protocolId":"MQTT","protocolVersion":4,"clean":true,"reconnectPeriod":1000,"connectTimeout":30000,"will":{"topic":"WillMsg","payload":"mqtt-thing [21_Deckenleuchte] has stopped","qos":0,"retain":false},"username":"fhem","rejectUnauthorized":false} 6.12.2020, 11:34:36 [Shelly] 31 accessories loaded from cache 6.12.2020, 11:34:36 Server listening on: http://:8282 6.12.2020, 11:34:36 [debMatic CCU] [RPC] server for interface BidCos-RF. is listening on port 9090. 6.12.2020, 11:34:36 [debMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events 6.12.2020, 11:34:36 [debMatic CCU] [RPC] server for interface VirtualDevices. is listening on port 9093. 6.12.2020, 11:34:36 [debMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events 6.12.2020, 11:34:36 [debMatic CCU] [RPC] server for interface BidCos-Wired. is listening on port 9091. 6.12.2020, 11:34:36 [debMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events 6.12.2020, 11:34:36 [debMatic CCU] [RPC] server for interface HmIP-RF. is listening on port 9092. 6.12.2020, 11:34:36 [debMatic CCU] [RPC] Creating Local HTTP Client for CCU RPC Events 6.12.2020, 11:34:36 [Shelly] Admin server is running on port 8181 6.12.2020, 11:34:36 [debMatic CCU] if PONG is PONG CCU is alive 6.12.2020, 11:34:36 Initializing platform accessory '01 FS01'... 6.12.2020, 11:34:36 Initializing platform accessory '01 Heizkoerperventil CHN4'... 6.12.2020, 11:34:36 Initializing platform accessory '01 Schaltsteckdose CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '02 Rolladen Tuere'... 6.12.2020, 11:34:36 Initializing platform accessory 'HM Sec RHS OEQ1128050 1'... 6.12.2020, 11:34:36 Initializing platform accessory '03 Deckenleuchten CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '03 FS01'... 6.12.2020, 11:34:36 Initializing platform accessory 'HM Sec RHS OEQ1127637 1'... 6.12.2020, 11:34:36 Initializing platform accessory '05 FS01'... 6.12.2020, 11:34:36 Initializing platform accessory '06 FS01'... 6.12.2020, 11:34:36 Initializing platform accessory '09 Deckenleuchte CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '19 Deckenleuchte CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '21 Heizkoerperventil CHN4'... 6.12.2020, 11:34:36 Initializing platform accessory '31 Standleuchte klein'... 6.12.2020, 11:34:36 Initializing platform accessory 'HM LC Sw4 DR 2 OEQ0695893 2'... 6.12.2020, 11:34:36 Initializing platform accessory '31 WandStandleuchte gross'... 6.12.2020, 11:34:36 Initializing platform accessory 'HM LC Sw4 DR 2 OEQ0695893 4'... 6.12.2020, 11:34:36 Initializing platform accessory '26 BWM CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '29 Deckenleuchte CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '32 BWM Terrasse CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '33 BWM Carport CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '34 BWM Unterstand CHN1'... 6.12.2020, 11:34:36 Initializing platform accessory '99 ReserveSHSW1001'... 6.12.2020, 11:34:36 Initializing platform accessory '05 Deckenleuchte'... 6.12.2020, 11:34:36 Initializing platform accessory '34 Wegbeleuchtung'... 6.12.2020, 11:34:36 [FHEM] Checking devices and attributes... 6.12.2020, 11:34:36 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1 6.12.2020, 11:34:36 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=jsonlist2%20TYPE=siri&XHR=1 6.12.2020, 11:34:36 [FHEM] Fetching FHEM devices... 6.12.2020, 11:34:36 [FHEM] fetching: http://192.168.1.100:8087/fhem?cmd=jsonlist2%20room=99_SYSTEM-%3EHomeKit&XHR=1 6.12.2020, 11:34:36 [debMatic CCU] [Core] will cache ccu response to /home/hoobs/.hoobs/etc/ccu.json 6.12.2020, 11:34:37 [debMatic CCU] [Core] NPM 0.1.231 vs Local 0.1.231 6.12.2020, 11:34:37 HAP Warning: Characteristic 00000093-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 0000008D-0000-1000-8000-0026BB765291. Adding anyway. 6.12.2020, 11:34:37 Initializing platform accessory 'Am Sträßchen (Wohn-/Esszimmer) Wohn-/Esszimmer'... 6.12.2020, 11:34:37 Initializing platform accessory 'Am Sträßchen (Wohn-/Esszimmer) Terrassenmodul'... 6.12.2020, 11:34:37 Initializing platform accessory 'Am Sträßchen (Wohn-/Esszimmer) Terrasse'... 6.12.2020, 11:34:39 [21_Deckenleuchte] Received MQTT: home/20_KELLER/21_BUERO/21_Buerolicht/tele/LWT = Online 6.12.2020, 11:34:39 [FHEM] siri device is siri 6.12.2020, 11:34:39 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=%7B$defs%7Bsiri%7D-%3E%7B%22homebridge-fhem%20version%22%7D%20=%20%220.5.20%22%7D&XHR=1 6.12.2020, 11:34:39 [FHEM] got: 6 results 6.12.2020, 11:34:39 [FHEM] 03_SONOFFPOW063 is switch 6.12.2020, 11:34:39 [FHEM] 03_SONOFFPOW063 has 6.12.2020, 11:34:39 [FHEM] On [state;on,off] 6.12.2020, 11:34:39 2020-12-06 10:34:39 caching: 03_SONOFFPOW063-state: off 6.12.2020, 11:34:39 [FHEM] caching: On: false (as boolean; from 'off') 6.12.2020, 11:34:39 [FHEM] 19_Spitzbodenbeleuchtung is light 6.12.2020, 11:34:39 [FHEM] 19_Spitzbodenbeleuchtung has 6.12.2020, 11:34:39 [FHEM] On [state;on,off] 6.12.2020, 11:34:39 [FHEM] CurrentTemperature [temperature] 6.12.2020, 11:34:39 [FHEM] caching: On: true (as boolean; from 'OFF') 6.12.2020, 11:34:39 [FHEM] caching: CurrentTemperature: 85 (as number; from '85.0') 6.12.2020, 11:34:39 2020-12-06 10:34:39 caching: 19_Spitzbodenbeleuchtung-state: OFF 6.12.2020, 11:34:39 2020-12-06 10:34:39 caching: 19_Spitzbodenbeleuchtung-temperature: 85.0 6.12.2020, 11:34:39 2020-12-06 10:34:39 caching: 21_Buerodeckenlicht-state: ON 6.12.2020, 11:34:39 [FHEM] 21_Buerodeckenlicht is light 6.12.2020, 11:34:39 [FHEM] 21_Buerodeckenlicht has 6.12.2020, 11:34:39 [FHEM] On [state;on,off] 6.12.2020, 11:34:39 [FHEM] caching: On: true (as boolean; from 'ON') 6.12.2020, 11:34:39 [FHEM] homebridgeMapping: On=state,cmdOn=on,cmdOff=off 6.12.2020, 11:34:39 [FHEM] 23_FBHPumpe is switch 6.12.2020, 11:34:39 [FHEM] 23_FBHPumpe has 6.12.2020, 11:34:39 [FHEM] On [state;on,off] 6.12.2020, 11:34:39 [FHEM] caching: On: true (as boolean; from 'on') 6.12.2020, 11:34:39 [FHEM] homebridgeMapping: On=state,cmdOn=on,cmdOff=off 6.12.2020, 11:34:39 2020-12-06 10:34:39 caching: 23_FBHPumpe-state: on 6.12.2020, 11:34:39 [FHEM] 23_Heizung is switch 6.12.2020, 11:34:39 [FHEM] 23_Heizung has 6.12.2020, 11:34:39 [FHEM] On [state;on,off] 6.12.2020, 11:34:39 [FHEM] caching: On: true (as boolean; from 'on') 6.12.2020, 11:34:39 2020-12-06 10:34:39 caching: 23_Heizung-state: on 6.12.2020, 11:34:39 2020-12-06 10:34:39 caching: 26_SchalterWandleuchten-state: OFF 6.12.2020, 11:34:39 [FHEM] 26_SchalterWandleuchten is switch 6.12.2020, 11:34:39 [FHEM] 26_SchalterWandleuchten has 6.12.2020, 11:34:39 [FHEM] On [state;on,off] 6.12.2020, 11:34:39 [FHEM] caching: On: true (as boolean; from 'OFF') 6.12.2020, 11:34:39 Initializing platform accessory '03_SONOFFPOW063'... 6.12.2020, 11:34:39 [FHEM] creating services for 03_SONOFFPOW063 6.12.2020, 11:34:39 [FHEM] information service for 03_SONOFFPOW063 6.12.2020, 11:34:39 [FHEM] manufacturer, model and serial number characteristics for 03_SONOFFPOW063 6.12.2020, 11:34:39 [FHEM] name (siriName) characteristic for 03_SONOFFPOW063 6.12.2020, 11:34:39 [FHEM] Switch service for 03_SONOFFPOW063 6.12.2020, 11:34:39 [FHEM] On characteristic for 03_SONOFFPOW063:state 6.12.2020, 11:34:39 Initializing platform accessory '19_Spitzbodenbeleuchtung'... 6.12.2020, 11:34:39 [FHEM] creating services for 19_Spitzbodenbeleuchtung 6.12.2020, 11:34:39 [FHEM] information service for 19_Spitzbodenbeleuchtung 6.12.2020, 11:34:39 [FHEM] manufacturer, model and serial number characteristics for 19_Spitzbodenbeleuchtung 6.12.2020, 11:34:39 [FHEM] name (siriName) characteristic for 19_Spitzbodenbeleuchtung 6.12.2020, 11:34:39 [FHEM] Lightbulb service for 19_Spitzbodenbeleuchtung 6.12.2020, 11:34:39 [FHEM] On characteristic for 19_Spitzbodenbeleuchtung:state 6.12.2020, 11:34:39 [FHEM] CurrentTemperature characteristic for 19_Spitzbodenbeleuchtung:temperature 6.12.2020, 11:34:39 Initializing platform accessory '21_Buerodeckenlicht'... 6.12.2020, 11:34:39 [FHEM] creating services for 21_Buerodeckenlicht 6.12.2020, 11:34:39 [FHEM] information service for 21_Buerodeckenlicht 6.12.2020, 11:34:39 [FHEM] manufacturer, model and serial number characteristics for 21_Buerodeckenlicht 6.12.2020, 11:34:39 [FHEM] name (siriName) characteristic for 21_Buerodeckenlicht 6.12.2020, 11:34:39 HAP Warning: Characteristic 00000011-0000-1000-8000-0026BB765291 not in required or optional characteristics for service 00000043-0000-1000-8000-0026BB765291. Adding anyway. 6.12.2020, 11:34:39 [FHEM] Lightbulb service for 21_Buerodeckenlicht 6.12.2020, 11:34:39 [FHEM] On characteristic for 21_Buerodeckenlicht:state 6.12.2020, 11:34:39 Initializing platform accessory '23_FBHPumpe'... 6.12.2020, 11:34:39 [FHEM] creating services for 23_FBHPumpe 6.12.2020, 11:34:39 [FHEM] information service for 23_FBHPumpe 6.12.2020, 11:34:39 [FHEM] manufacturer, model and serial number characteristics for 23_FBHPumpe 6.12.2020, 11:34:39 [FHEM] name (siriName) characteristic for 23_FBHPumpe 6.12.2020, 11:34:39 [FHEM] Switch service for 23_FBHPumpe 6.12.2020, 11:34:39 [FHEM] On characteristic for 23_FBHPumpe:state 6.12.2020, 11:34:39 Initializing platform accessory '23_Heizung'... 6.12.2020, 11:34:39 [FHEM] creating services for 23_Heizung 6.12.2020, 11:34:39 [FHEM] information service for 23_Heizung 6.12.2020, 11:34:39 [FHEM] manufacturer, model and serial number characteristics for 23_Heizung 6.12.2020, 11:34:39 [FHEM] name (siriName) characteristic for 23_Heizung 6.12.2020, 11:34:39 [FHEM] Switch service for 23_Heizung 6.12.2020, 11:34:39 [FHEM] On characteristic for 23_Heizung:state 6.12.2020, 11:34:39 Initializing platform accessory '26_SchalterWandleuchten'... 6.12.2020, 11:34:39 [FHEM] creating services for 26_SchalterWandleuchten 6.12.2020, 11:34:39 [FHEM] information service for 26_SchalterWandleuchten 6.12.2020, 11:34:39 [FHEM] manufacturer, model and serial number characteristics for 26_SchalterWandleuchten 6.12.2020, 11:34:39 [FHEM] name (siriName) characteristic for 26_SchalterWandleuchten 6.12.2020, 11:34:39 [FHEM] Switch service for 26_SchalterWandleuchten 6.12.2020, 11:34:39 [FHEM] On characteristic for 26_SchalterWandleuchten:state 6.12.2020, 11:34:39 Bridge is running on port 51826. 6.12.2020, 11:34:56 longpoll ended, reconnect in: 200msec 6.12.2020, 11:34:56 starting longpoll: http://192.168.1.100:8087/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1607250896734 6.12.2020, 11:34:57 [FHEM] Checking devices and attributes... 6.12.2020, 11:34:57 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1 6.12.2020, 11:34:57 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=jsonlist2%20TYPE=siri&XHR=1 6.12.2020, 11:34:57 [FHEM] siri device is siri 6.12.2020, 11:34:57 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=%7B$defs%7Bsiri%7D-%3E%7B%22homebridge-fhem%20version%22%7D%20=%20%220.5.20%22%7D&XHR=1 6.12.2020, 11:34:58 longpoll ended, reconnect in: 200msec 6.12.2020, 11:34:58 starting longpoll: http://192.168.1.100:8087/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1607250898362 6.12.2020, 11:34:58 [FHEM] Checking devices and attributes... 6.12.2020, 11:34:58 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=%7BAttrVal(%22global%22,%22userattr%22,%22%22)%7D&XHR=1 6.12.2020, 11:34:58 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=jsonlist2%20TYPE=siri&XHR=1 6.12.2020, 11:34:58 [FHEM] siri device is siri 6.12.2020, 11:34:58 [FHEM] executing: http://192.168.1.100:8087/fhem?cmd=%7B$defs%7Bsiri%7D-%3E%7B%22homebridge-fhem%20version%22%7D%20=%20%220.5.20%22%7D&XHR=1 6.12.2020, 11:34:59 longpoll ended, reconnect in: 200msec 6.12.2020, 11:34:59 starting longpoll: http://192.168.1.100:8087/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1607250899897

justme-1968 commented 3 years ago

this is not the same problem.

there is a disconnect. please check with debug and verbose 5 of there is a reason in the log.

only the first reconnection attempt will be after 200ms. the timeout will increase with every failed attempt.

no-Legend commented 2 years ago

I got the same problem with the long poll. I updated nodejs from 14.x to 17.1 but installed everything new. But still there is this error message:

[10.11.2021, 14:12:53] [FHEM] longpoll error: Error: connect ECONNREFUSED ::1:8083, retry in: 6000msec starting longpoll: https://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1636549979199 [10.11.2021, 14:12:59] [FHEM] longpoll error: Error: connect ECONNREFUSED ::1:8083, retry in: 9000msec starting longpoll: https://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1636549988207 [10.11.2021, 14:13:08] [FHEM] longpoll error: Error: connect ECONNREFUSED ::1:8083, retrys exhausted

Update: I tried to use a new docker container und got the same polling error showed. Also I remember there was a fhem.pl update today? Perhaps the error is coming from here?

justme-1968 commented 2 years ago

ist the ip and port correct? do you use https/ssl ?

can you open the url in a normal browser?

no-Legend commented 2 years ago

The ip is correct, both fhem and homebridge are running on the same system. Also the same error is shown when using a docker container. I can open the page in safari, but it looks like there is an never ending download Edit: Just created a new docker container and don't use a backup, an there homebridge was connecting without and problems. Looks like there is something wrong with homebridge

Noch mal auf Deutsch: Die IP Adressen usw sind correct. Ich hab testweise einen Docker Container aufgesetzt und ein Backup eingespielt. selbes verhalten, immer der Longpoll Fehler. Wenn ich den Pfad in Safari öffnen, dann startet safari einen Download, welcher aber nie abgeschlossen werden kann. Edit: Ich hab homebeige noch mal in einem neuen Container aufgesetzt. Hier gibt es aktuell diesen Longpoll Fehler nicht. Kann es was mit der nodejs version zu tun haben? Container hat 16.13.0 und die andere hat 17.1

Cruetze commented 1 year ago

Ich habe das gleiche Problem mit der langen Umfrage. Ich habe NodeJS von 14.x auf 17.1 aktualisiert, aber alles neu installiert. Aber es gibt immer noch diese Fehlermeldung:

[10.11.2021, 14:12:53] [FHEM] longpoll error: Error: connect ECONNREFUSED ::1:8083, retry in: 6000msec starting longpoll: https://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1636549979199 [10.11.2021, 14:12:59] [FHEM] longpoll error: Error: connect ECONNREFUSED ::1:8083, retry in: 9000msec starting longpoll: https://localhost:8083/fhem?XHR=1&inform=type=status;addglobal=1;filter=.*;since=null;fmt=JSON&timestamp=1636549988207 [10.11.2021, 14:13:08] [FHEM] longpoll error: Error: connect ECONNREFUSED ::1:8083, retrys exhausted

Update: Ich habe versucht, einen neuen Docker-Container zu verwenden, und es wurde der gleiche Abfragefehler angezeigt. Ich erinnere mich auch, dass es heute ein fhem.pl-Update gab? Vielleicht kommt der Fehler von hier?

gab es hier bereits eine Lösung? weil ich genau das gleiche problem habe.

k24micha commented 1 year ago

Hi @All, bei mir läuft IP v6 und IP v4 im Netzwerk. Ich kann durch die Änderung von localhost zu 127.0.0.1 das System direkt mit IP v4 ansprechen. Jetzt geht es wieder ohne die Fehlermeldung!

{
            "name": "FHEM",
            "server": "127.0.0.1",
            "port": 8083,
            "filter": "room=Homekit",

LG Micha

patrickbutterer commented 1 year ago

@k24micha: Vielen Dank für deinen Tipp mit der Änderung auf 127.0.0.1. Habe vor einigen Wochen von Node.js 16 auf 18 aktualisiert. Erst vor kurzem fiel mir auf, dass alle FHEM-Devices (es sind nur 3) in der Home-App fehlen.

Ein Blick in die Homebridge-Log ergab dann die Fehlermeldung "[FHEM] longpoll error: Error: connect ECONNREFUSED". Nun kann sich Homebridge wieder mit FHEM über Port 8083 verbinden.

don-redhorse commented 11 months ago

@k24micha gestern die letzte VM von Bullseye auf Bookworm aktualisiert. Als dank gab es den longpoll. Den Eintrag "localhost" in "127.0.0.1" geändert und lief wieder, danke für den Tip. IPv4 und IPv6 sind extern wie auch intern in Verwendung.

Durch deinen Eintrag betrug die Fehlersuche nur 5 Minuten, danke dafür.

volschin commented 11 months ago

Dazu muss man wissen, dass localhost nicht immer mit 127.0.0.1 identisch ist. Bei Docker führt localhost z.B. immer auf einen Port des jeweiligen Containers, 127.0.0.1 führt auf einen Port der Host-Maschine. Das Verhalten kann dadurch unterschiedlich sein, wenn Port-Mappings auf andere Ports durchgeführt werden oder ein Port nicht auf dem Host veröffentlicht wird.

don-redhorse commented 11 months ago

ok, ist klar. Wer Docker o.ä. einsetzt sollte das aber wissen. Mache das noch alles Old School per VM, da ist der jeweilige Lokale Host immer die 127...1