Hallo,
aus Stromspargründen möchte ich fhem umziehen. Fhem ist aktuell. Leider erreiche ich die neu aufgesetzte Instanz nicht mehr, wenn ich ein Backup von Fhem wieder eingespielt habe.
Waran kann das liegen? Die Zertifikate liegen im /opt/fhem Ordner. Ein deaktivieren von https ergab auch ein Zugriff. Auch das Backup wurde augenscheinlich korrekt eingestellt.
Wo könnte ich weiter nach einem Fehler suchen?
Danke
.... in den Logfiles ...
Generell:
https://wiki.fhem.de/wiki/FHEM_startet_nicht_-_Tipps_zur_Fehlersuche (https://wiki.fhem.de/wiki/FHEM_startet_nicht_-_Tipps_zur_Fehlersuche)
Wenn man mit "erreichen" den Browser meint, dann kann auch ein Blick in die Browser-JavaScript-Konsole helfen.
Aber erst, nachdem man die FHEM-Logfiles geprueft hat, siehe vorheriger Beitrag :)
Hallo,
ich habe das System jetzt noch einmal aufgesetzt. Fhem ist "running". Da scheint alles iO zu sein.
Ich erhalte im Webbrowser den "Fehler: Verbindung fehlgeschlagen "PR_CONNECT_RESET_ERROR"". Dachte ich es liegt an der SSL-Verbindung (die Zertifikate sind ja mit im Backup). Also habe ich in der fhem.cfg (vorher "invoke-rc.d fhem stop") das attr WEB HTTPS
auf 0 gesetzt. Dann erhalte ich im Webbrowser den "Fehler: Verbindung fehlgeschlagen".
Da scheint es am Zugriff per Webbrowser zu liegen!?
Kann es aber auch nicht sein, da ich bei Fhem-Start eigentlich eine Messenger nachricht erhalten müsste.
Wir warten derweil geduldig auf die Ergebnisse der im verlinkten Fhemwiki-Artikel angesprochenen Punkte/Tasks, insb. die FHEM-Log-Auszuege :)
spel@fhem:~$ ps ax | grep perl
1806 ? S 0:00 /usr/bin/perl fhem.pl fhem.cfg
1808 pts/0 S+ 0:00 grep --color=auto perl
spel@fhem:~$ service fhem status
● fhem.service - FHEM Home Automation
Loaded: loaded (/etc/systemd/system/fhem.service; enabled; vendor preset: enabled)
Active: active (running) since Tue 2022-01-04 13:12:35 UTC; 1s ago
Process: 1855 ExecStart=/usr/bin/perl fhem.pl fhem.cfg (code=exited, status=0/SUCCESS)
Main PID: 1857 (perl)
Tasks: 1 (limit: 4529)
Memory: 26.4M
CGroup: /system.slice/fhem.service
└─1857 /usr/bin/perl fhem.pl fhem.cfg
Jan 04 13:12:34 fhem systemd[1]: Starting FHEM Home Automation...
Jan 04 13:12:35 fhem systemd[1]: Started FHEM Home Automation.
top - 13:13:27 up 11 min, 1 user, load average: 0.35, 0.40, 0.24
Tasks: 138 total, 1 running, 137 sleeping, 0 stopped, 0 zombie
%Cpu(s): 0.6 us, 0.5 sy, 0.0 ni, 98.8 id, 0.2 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 3862.8 total, 3401.6 free, 198.3 used, 262.9 buff/cache
MiB Swap: 3862.0 total, 3862.0 free, 0.0 used. 3432.1 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
1938 fhem 20 0 37320 32456 5108 S 2.0 0.8 0:00.66 perl
1907 spel 20 0 8052 3688 3128 R 0.7 0.1 0:00.20 top
19 root 20 0 0 0 0 I 0.3 0.0 0:00.13 kworker/1:0-events
706 root 20 0 81896 3820 3484 S 0.3 0.1 0:00.40 irqbalance
1445 root 20 0 0 0 0 I 0.3 0.0 0:00.11 kworker/u8:0-events_power_efficient
1 root 20 0 167224 11252 8376 S 0.0 0.3 0:05.89 systemd
2 root 20 0 0 0 0 S 0.0 0.0 0:00.01 kthreadd
3 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_gp
4 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 rcu_par_gp
5 root 20 0 0 0 0 I 0.0 0.0 0:00.15 kworker/0:0-cgroup_destroy
9 root 0 -20 0 0 0 I 0.0 0.0 0:00.00 mm_percpu_wq
10 root 20 0 0 0 0 S 0.0 0.0 0:00.13 ksoftirqd/0
11 root 20 0 0 0 0 I 0.0 0.0 0:01.11 rcu_sched
12 root rt 0 0 0 0 S 0.0 0.0 0:00.01 migration/0
13 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/0
14 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/0
15 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/1
16 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/1
17 root rt 0 0 0 0 S 0.0 0.0 0:00.21 migration/1
18 root 20 0 0 0 0 S 0.0 0.0 0:00.09 ksoftirqd/1
21 root 20 0 0 0 0 S 0.0 0.0 0:00.00 cpuhp/2
22 root -51 0 0 0 0 S 0.0 0.0 0:00.00 idle_inject/2
23 root rt 0 0 0 0 S 0.0 0.0 0:00.22 migration/2
24 root 20 0 0 0 0 S 0.0 0.0 0:00.05 ksoftirqd/2
2022.01.04 13:14:28 3: deCONZ_HUESensor15: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUEGroup3: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUEGroup5: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUESensor16: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUEGroup6: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUESensor17: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUEGroup7: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUESensor18: I/O device is deCONZ
2022.01.04 13:14:28 1: reload: Error:Modul 88_HMCCU deactivated:
Can't locate RPC/XML/Client.pm in @INC (you may need to install the RPC::XML::Client module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base ./FHEM/lib) at ./FHEM/88_HMCCU.pm line 38, <$fh> line 1141.
BEGIN failed--compilation aborted at ./FHEM/88_HMCCU.pm line 38, <$fh> line 1141.
2022.01.04 13:14:28 0: Can't locate RPC/XML/Client.pm in @INC (you may need to install the RPC::XML::Client module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base ./FHEM/lib) at ./FHEM/88_HMCCU.pm line 38, <$fh> line 1141.
BEGIN failed--compilation aborted at ./FHEM/88_HMCCU.pm line 38, <$fh> line 1141.
Undefined subroutine &main::HMCCU_FindIODevice called at ./FHEM/88_HMCCUDEV.pm line 125, <$fh> line 1233.
2022.01.04 13:14:29 1: Including fhem.cfg
2022.01.04 13:14:29 3: WEB: port 8083 opened
2022.01.04 13:14:29 2: eventTypes: loaded 2145 lines from ./log/eventTypes.txt
2022.01.04 13:14:29 3: Opening ser2netJEELINK_LaCrosse device 172.20.0.20:2001
spel@fhem:~$ tail -n 20 /opt/fhem/log/fhem-$(date '+%Y-%m').log
2022.01.04 13:14:28 3: deCONZ_HUEGroup6: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUESensor17: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUEGroup7: I/O device is deCONZ
2022.01.04 13:14:28 3: deCONZ_HUESensor18: I/O device is deCONZ
2022.01.04 13:14:28 1: reload: Error:Modul 88_HMCCU deactivated:
Can't locate RPC/XML/Client.pm in @INC (you may need to install the RPC::XML::Client module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base ./FHEM/lib) at ./FHEM/88_HMCCU.pm line 38, <$fh> line 1141.
BEGIN failed--compilation aborted at ./FHEM/88_HMCCU.pm line 38, <$fh> line 1141.
2022.01.04 13:14:28 0: Can't locate RPC/XML/Client.pm in @INC (you may need to install the RPC::XML::Client module) (@INC contains: ./lib ./FHEM . /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.30.0 /usr/local/share/perl/5.30.0 /usr/lib/x86_64-linux-gnu/perl5/5.30 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.30 /usr/share/perl/5.30 /usr/local/lib/site_perl /usr/lib/x86_64-linux-gnu/perl-base ./FHEM/lib) at ./FHEM/88_HMCCU.pm line 38, <$fh> line 1141.
BEGIN failed--compilation aborted at ./FHEM/88_HMCCU.pm line 38, <$fh> line 1141.
Undefined subroutine &main::HMCCU_FindIODevice called at ./FHEM/88_HMCCUDEV.pm line 125, <$fh> line 1233.
2022.01.04 13:14:29 1: Including fhem.cfg
2022.01.04 13:14:29 3: WEB: port 8083 opened
2022.01.04 13:14:29 2: eventTypes: loaded 2145 lines from ./log/eventTypes.txt
2022.01.04 13:14:29 3: Opening ser2netJEELINK_LaCrosse device 172.20.0.20:2001
2022.01.04 13:14:32 1: ser2netJEELINK_LaCrosse: Can't connect to 172.20.0.20:2001: Connection timed out
2022.01.04 13:14:32 3: AussentemperaturWest_LaCrosse: I/O device is ser2netJEELINK_LaCrosse
2022.01.04 13:14:32 3: Kuehlschranktemperatur_LaCrosse: I/O device is ser2netJEELINK_LaCrosse
2022.01.04 13:14:32 3: Opening ser2netZWAVE device 172.20.0.20:2002
spel@fhem:/opt/fhem$ perl fhem.pl fhem.cfg.debug
2022.01.04 13:16:55 1: Including fhem.cfg.debug
2022.01.04 13:16:55 1: WEB: Can't open server port at 8083: [b]Address already in use. Exiting.[/b]
spel@fhem:/opt/fhem$ perl fhem.pl -d fhem.cfg
2022.01.04 13:18:01 5: Cmd: >attr global userattr cmdIcon devStateIcon:textField-long devStateStyle icon sortby webCmd webCmdLabel:textField-long widgetOverride<
2022.01.04 13:18:01 5: Cmd: >attr global autoload_undefined_devices 1<
2022.01.04 13:18:01 5: Cmd: >attr global autosave 0<
2022.01.04 13:18:01 5: Cmd: >attr global backup_before_update 1<
2022.01.04 13:18:01 5: Cmd: >attr global latitude x<
2022.01.04 13:18:01 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2022.01.04 13:18:01 5: Cmd: >attr global longitude x<
2022.01.04 13:18:01 5: Cmd: >attr global modpath .<
2022.01.04 13:18:01 5: Loading ./FHEM/99_SUNRISE_EL.pm
2022.01.04 13:18:01 5: Loading ./FHEM/99_Utils.pm
2022.01.04 13:18:01 5: Cmd: >attr global motd none<
2022.01.04 13:18:01 5: Cmd: >attr global room _FHEMSystem<
2022.01.04 13:18:01 5: Cmd: >attr global statefile ./log/fhem.save<
2022.01.04 13:18:01 5: Cmd: >attr global verbose 3<
2022.01.04 13:18:01 5: Initializing Type Library:
2022.01.04 13:18:01 1: Including fhem.cfg
2022.01.04 13:18:01 5: Cmd: >attr global userattr cmdIcon devStateIcon:textField-long devStateStyle icon sortby webCmd webCmdLabel:textField-long widgetOverride<
2022.01.04 13:18:01 5: Cmd: >attr global autoload_undefined_devices 1<
2022.01.04 13:18:01 5: Cmd: >attr global autosave 0<
2022.01.04 13:18:01 5: Cmd: >attr global backup_before_update 1<
2022.01.04 13:18:01 5: Cmd: >attr global latitude x<
2022.01.04 13:18:01 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2022.01.04 13:18:01 5: Cmd: >attr global longitude x<
2022.01.04 13:18:01 5: Cmd: >attr global modpath .<
2022.01.04 13:18:01 5: Cmd: >attr global motd none<
2022.01.04 13:18:01 5: Cmd: >attr global room _FHEMSystem<
2022.01.04 13:18:01 5: Cmd: >attr global statefile ./log/fhem.save<
2022.01.04 13:18:01 5: Cmd: >attr global verbose 3<
2022.01.04 13:18:01 5: Cmd: >define WEB FHEMWEB 8083 global<
2022.01.04 13:18:01 5: Loading ./FHEM/01_FHEMWEB.pm
2022.01.04 13:18:01 1: WEB: Can't open server port at 8083: Address already in use. Exiting.
Da scheint die fett gedruckte Aussage ein Ursache zu sein...:
"WEB: Can't open server port at 8083: Address already in use. Exiting."
Da scheint die fett gedruckte Aussage ein Ursache zu sein...:
Nicht ganz. Das kam nur, weil man mit der gleichen Konfig FHEM nur einmal starten kann (wenn man von ungewoehnlichen Setups absieht), und im Hintergrund lief ja noch das vom OS gestartete FHEM.
Mehr sorgen macht mir:
- die Fehlermeldung wg. fehlende Perl-Bibliotheken. Das sollte man bitte nachinstallieren, sonst gibts kein HMCCU
- das Log hoert bei "Opening ser2netZWAVE device 172.20.0.20:2002" auf. Eigentlich sollte es weitergehen. Wenn nicht weitergeht, bitte pruefen, wieso der FHEM Rechner nicht zum ser2net Rechner kommt.
Weil er zur Zeit noch auf meinem Schreibtisch steht und eine andere IP Adresse hat. Die Original Instanz läuft noch.
Das sollte ser2net aber nicht stören und das Modul RPC::XML::Client module muss noch nachinstalliert werden - aber das hatte ich alles schon probiert, auch in dem entsprechenden Netz. Deswegen sollte das Webinterface ja zumindest erreichbar sein. Mich irrietiert die SSL Fehlermeldung ("PR_CONNECT_RESET_ERROR") vom Post davor.
Aber ich probiere es auch noch mal in dem gleichen NEtz und mit dem installierten Modul. Aber Auswirkungen auf den Webserver sollte es nicht haben, denke ich.
Die Log Datei ist sehr lang. Da hatte ich nur die letzten 20 Zeilen gepostet, die Fehler wiederholen sich weiter oben.
Das hier fehlte:
https://stackoverflow.com/questions/55886982/issue-of-cant-locate-rpc-xml-pm-in-inc-you-may-need-to-install-the-rpcxml
sudo apt install librpc-xml-perl
::)
Danke für die Hilfestellungen!
Genau .. die Lib fehlte.
Danke das Du Rückmeldung gegeben hast.