[erledigt] 18.08.22 httputils dauerreboot

Begonnen von the ratman, 18 September 2022, 09:38:14

Vorheriges Thema - Nächstes Thema

pathobae

#15
Hallo,
ich hatte heute nach einem Update ein FHEM welches gar nicht mehr startete.
Die letzten Zeilen im Log waren:

2022.09.18 15:13:16 3: Probing MYSENSORS device /dev/ttyAMA0
2022.09.18 15:13:16 3: Probing ArduCounter device /dev/ttyAMA0
2022.09.18 15:13:17 3: Probing ElsnerWS device /dev/ttyAMA0
2022.09.18 15:13:18 3: Probing FRM device /dev/ttyAMA0
2022.09.18 15:13:23 1: usb create end
2022.09.18 15:13:23 3: NTFY return:  sysmon_FHEMsrv:Initialized sysmon_backupsrv:Initialized sysmon_haucamsrv:Initialized
2022.09.18 15:13:23 0: Featurelevel: 6.1
2022.09.18 15:13:23 0: Server started with 249 defined entities (fhem.pl:26379/2022-09-03 perl:5.028001 os:linux user:fhem pid:1429)
2022.09.18 15:13:24 2: AttrTemplates: got 249 entries
2022.09.18 15:13:24 3: DbLog DBLog01 - Creating Push-Handle to database mysql:database=fhem;host=localhost;port=3306 with user fhemlogdb
2022.09.18 15:13:24 3: DbLog DBLog01 - Push-Handle to db mysql:database=fhem;host=localhost;port=3306 created
2022.09.18 15:13:24 3: DbLog DBLog01 - UTF8 support enabled
2022.09.18 15:13:24 3: telnetForBlockingFn_1663506804.52649: port 37709 opened
2022.09.18 15:13:24 3: DbRep DbRep01_Agent - Connectiontest to database mysql:database=fhem;host=localhost;port=3306 with user fhemlogdb
2022.09.18 15:13:24 2: HUEBridge01: http request failed:  SSL connect attempt failed
Can't call method "fileno" on an undefined value at FHEM/HttpUtils.pm line 529.


ich konnte den Zustand vor dem Update wieder zurückspielen, damit läuft es wieder.
Meine laienhaften Einschätzung sieht es nach einem Zusammenhang mit HUE aus.

Vielleicht hilft die Info ....

Gruß
Thomas

Bualicher

Das Modul ist 30_HUEBridge.pm

Der Versuch mit Deiner HttpUtils war schnell vorbei:
=~=~=~=~=~=~=~=~=~=~=~= PuTTY log 2022.09.18 15:53:30 =~=~=~=~=~=~=~=~=~=~=~=

pi@RaspiFHEM:~ $ cd /opt/fhem

pi@RaspiFHEM:/opt/fhem $ perl fhem.pl -d fhem.cfgperl fhem.pl -d fhem.cfg

2022.09.18 15:54:15 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateIcon:textField-long devStateStyle fp_EG genericDeviceType:security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock homebridgeMapping:textField-long icon siriName sortby webCmd webCmdLabel:textField-long widgetOverride<
2022.09.18 15:54:15 5: Cmd: >attr global autoload_undefined_devices 1<
2022.09.18 15:54:15 5: Cmd: >attr global autosave 0<
2022.09.18 15:54:15 5: Cmd: >attr global exclude_from_update HttpUtils.pm<
2022.09.18 15:54:15 5: Cmd: >attr global language DE<
2022.09.18 15:54:15 5: Cmd: >attr global latitude 48.674245<
2022.09.18 15:54:15 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2022.09.18 15:54:15 5: Cmd: >attr global longitude 8.680319<
2022.09.18 15:54:15 5: Cmd: >attr global modpath .<
2022.09.18 15:54:15 5: Loading ./FHEM/99_SUNRISE_EL.pm
2022.09.18 15:54:15 5: Loading ./FHEM/99_Utils.pm
2022.09.18 15:54:15 5: Loading ./FHEM/99_myFloorplanList.pm
2022.09.18 15:54:15 5: Loading ./FHEM/99_myUtils.pm
2022.09.18 15:54:15 5: Cmd: >attr global motd SecurityCheck:\<
2022.09.18 15:54:15 5: Cmd: >attr global room FHEM<
2022.09.18 15:54:15 5: Cmd: >attr global room FHEM<
2022.09.18 15:54:15 5: Cmd: >attr global sendStatistics onUpdate<
2022.09.18 15:54:15 5: Cmd: >attr global statefile ./log/fhem.save<
2022.09.18 15:54:15 5: Cmd: >attr global updateInBackground 1<
2022.09.18 15:54:15 5: Cmd: >attr global verbose 3<
2022.09.18 15:54:15 5: Initializing Type Library:
2022.09.18 15:54:15 1: Including fhem.cfg
2022.09.18 15:54:15 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateIcon:textField-long devStateStyle fp_EG genericDeviceType:security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock homebridgeMapping:textField-long icon siriName sortby webCmd webCmdLabel:textField-long widgetOverride<
2022.09.18 15:54:15 5: Cmd: >attr global autoload_undefined_devices 1<
2022.09.18 15:54:15 5: Cmd: >attr global autosave 0<
2022.09.18 15:54:15 5: Cmd: >attr global exclude_from_update HttpUtils.pm<
2022.09.18 15:54:15 5: Cmd: >attr global language DE<
2022.09.18 15:54:15 5: Cmd: >attr global latitude 48.674245<
2022.09.18 15:54:15 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2022.09.18 15:54:15 5: Cmd: >attr global longitude 8.680319<
2022.09.18 15:54:15 5: Cmd: >attr global modpath .<
2022.09.18 15:54:16 5: Cmd: >attr global motd SecurityCheck:
attr global room FHEM<
2022.09.18 15:54:16 5: Cmd: >attr global room FHEM<
2022.09.18 15:54:16 5: Cmd: >attr global sendStatistics onUpdate<
2022.09.18 15:54:16 5: Cmd: >attr global statefile ./log/fhem.save<
2022.09.18 15:54:16 5: Cmd: >attr global updateInBackground 1<
2022.09.18 15:54:16 5: Cmd: >attr global verbose 3<
2022.09.18 15:54:16 5: Cmd: >define telnetPort telnet 7072 global<
2022.09.18 15:54:16 5: Loading ./FHEM/98_telnet.pm
2022.09.18 15:54:16 1: telnetPort: Can't open server port at 7072: Address already in use. Exiting.

rudolfkoenig

ZitatDer Versuch mit Deiner HttpUtils war schnell vorbei:
Klar, wenn noch eine weitere FHEM-Instanz mit der gleicher Konfiguration laeuft.
Bitte diesen erst stoppen.

Tom_S

Ich habe nach einem Update heute den gleichen Fehler
Logfile
Can't call method "fileno" on an undefined value at FHEM/HttpUtils.pm line 529.
Webseite wird nicht aufgebaut.

Perl -v 5.28
Linux >  4.19.0-18-amd64 #1 SMP Debian 4.19.208-1 (2021-09-29) x86_64 GNU/Linux

habe die httputils aus dem Backup zurück gespielt. Danach geht es wieder.

Grüße
RaspberryPI2 + pilight, 3x AVR-NetIO, LW12, LW12HX, LW12FC; MAX-Lan, ESP8266, Arduino, H801, Neopixel, Solaredge, Modbus

rudolfkoenig

#19
@Bualicher: danke fuers zweite Log, jetzt hat es Klick gemacht.
return in eval verlaesst nicht die sub, sondern nur das eval.
Habs gefixt und eingecheckt.

Das Problem trat da auf, wo zwar ein TCP-Port bereit war, aber die Verschluesselung (SSL) nicht initiiert werden konnte.
Interessant, dass sowas mit HUEBridge oefters vorkommt.

Bualicher

Vielen Dank für das schnelle Fixen.
Gerade gestestet. Mit HttpUtils.pm #26420 startet FHEM wieder wie gewohnt  :)

the ratman

danke dir auch für dein hirnschmalz.

soll ich erledigt sagen, oder warten wir morgen noch ab?
→do↑p!dnʇs↓shit←

Borkk

Wollte nur erwähnen das ich das nach dem Update das gleiche Problem hatte. Hab mir auch mit der letzten Version von HttpUtli.pm geholfen.
Docker@DS220+ FHEM, ConBeeII, Homebridge, Nginx ReverseProxy, ConfigDB, MQTT, NodeRed, InfluxDB, Grafana,
Raspberrymatic@Raspi3: HmIP Akt- /Sensoren, Shelly´s, Tibber Puls, Alexa, ASC, Gardena, Netatmo, E-Paper, FritzBox; Tado°, HOMEMODE, iBeacon, OLED ; ESP32/8266, SwitchBot ...

the ratman

läuft wieder rund, wie ein dreieck *g*

danke nochmal für die flotte aktion!
→do↑p!dnʇs↓shit←