Hallo,
ich musste meine FHEM-Installation aus Speichermangel auf einen weiteren Raspi aufteilen. Dort läuft jetzt piVCCU und zigbee2mqtt. Mein Hauptraspi (RPI-Main) soll nur noch FHEM bedienen.
Bisheriger Raspi, auf dem alles lief, war ein 3B+. Diesen verwende ich jetzt als Nebenraspi mit piVCCU und zigbee2mqtt. Läuft soweit ich das beurteilen kann.
Als Hauptraspi habe ich eine vorhanden Hardware 3B V1.2 verwendet, Buster auf eine neue SD-Karte aufgespielt und FHEM 6.1 installiert. Hat alles gut geklappt und lief auch mit der Minimalkonfiguration sauber hoch.
Dann habe ich eine Sicherung von gestern eingespielt und seitdem läuft FHEM nicht mehr hoch.
Im log steht
pi@RaspiMain:/opt/fhem $ perl fhem.pl -d fhem.cfg
2021.11.17 14:33:42 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateIcon:textField-long devStateStyle fp_EG1024 fp_UG1024 icon mqttAlias:textField-long mqttDefaults:textField-long mqttDisable:both,incoming,outgoing mqttForward:all,none mqttPublish:textField-long mqttSubscribe:textField-long msgContactAudio msgContactLight msgContactMail msgContactPush msgContactScreen msgParams msgPriority msgRecipient msgRecipientAudio msgRecipientLight msgRecipientMail msgRecipientPush msgRecipientScreen msgRecipientText msgTitle msgTitleShrt msgType:text,push,mail,screen,light,audio,queue power-off power-on presentCycle presentReading sortby webCmd webCmdLabel:textField-long widgetOverride<
2021.11.17 14:33:42 5: Cmd: >attr global autoload_undefined_devices 1<
2021.11.17 14:33:42 5: Cmd: >attr global autosave 0<
2021.11.17 14:33:42 5: Cmd: >attr global blockingCallMax 32<
2021.11.17 14:33:42 5: Cmd: >attr global comment 21.07.21: Feiertagskalender auf eigenen Feiertags/Urlaubskalender BWFeiertageUrlaub im Verzeichnis FHEM/ geändert.\<
2021.11.17 14:33:42 5: Cmd: >attr global dnsServer 192.168.178.1<
2021.11.17 14:33:42 5: Cmd: >attr global exclude_from_update 98_freezemon.pm 73_PRESENCE.pm<
2021.11.17 14:33:42 5: Cmd: >attr global holiday2we BWFeiertageUrlaub<
2021.11.17 14:33:42 5: Cmd: >attr global language DE<
2021.11.17 14:33:42 5: Cmd: >attr global latitude 48.2333<
2021.11.17 14:33:42 5: Cmd: >attr global logfile ./log/fhem-%Y-w%W.log<
2021.11.17 14:33:42 5: Cmd: >attr global longitude 9.9333<
2021.11.17 14:33:42 5: Cmd: >attr global modpath .<
2021.11.17 14:33:42 5: Loading ./FHEM/99_SUNRISE_EL.pm
2021.11.17 14:33:42 5: Loading ./FHEM/99_Utils.pm
2021.11.17 14:33:42 5: Loading ./FHEM/99_attrTmqtt2_ebus_Utils.pm
2021.11.17 14:33:42 5: Loading ./FHEM/99_myUtils.pm
2021.11.17 14:33:43 5: Cmd: >attr global motd none<
2021.11.17 14:33:43 5: Cmd: >attr global mseclog 1<
2021.11.17 14:33:43.063 5: Cmd: >attr global nrarchive 14<
2021.11.17 14:33:43.064 5: Cmd: >attr global room 9.6.0_System<
2021.11.17 14:33:43.065 5: Cmd: >attr global sendStatistics onUpdate<
2021.11.17 14:33:43.067 5: Cmd: >attr global sslVersion !TLSv1:!TLSv1_1:TLSv1_2:!SSLv23:!SSLv3:!SSLv2<
2021.11.17 14:33:43.068 5: Cmd: >attr global stacktrace 0<
2021.11.17 14:33:43.069 5: Cmd: >attr global statefile ./log/fhem.save<
2021.11.17 14:33:43.070 5: Cmd: >attr global updateInBackground 1<
2021.11.17 14:33:43.072 5: Cmd: >attr global verbose 3<
2021.11.17 14:33:43.110 5: Initializing Type Library:
2021.11.17 14:33:43.110 1: Including fhem.cfg
2021.11.17 14:33:43.112 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateIcon:textField-long devStateStyle fp_EG1024 fp_UG1024 icon mqttAlias:textField-long mqttDefaults:textField-long mqttDisable:both,incoming,outgoing mqttForward:all,none mqttPublish:textField-long mqttSubscribe:textField-long msgContactAudio msgContactLight msgContactMail msgContactPush msgContactScreen msgParams msgPriority msgRecipient msgRecipientAudio msgRecipientLight msgRecipientMail msgRecipientPush msgRecipientScreen msgRecipientText msgTitle msgTitleShrt msgType:text,push,mail,screen,light,audio,queue power-off power-on presentCycle presentReading sortby webCmd webCmdLabel:textField-long widgetOverride<
2021.11.17 14:33:43.113 5: Cmd: >attr global autoload_undefined_devices 1<
2021.11.17 14:33:43.114 5: Cmd: >attr global autosave 0<
2021.11.17 14:33:43.116 5: Cmd: >attr global blockingCallMax 32<
2021.11.17 14:33:43.117 5: Cmd: >attr global comment 21.07.21: Feiertagskalender auf eigenen Feiertags/Urlaubskalender BWFeiertageUrlaub im Verzeichnis FHEM/ geändert.
16.05.21: sslversion mit !TLSv1:!TLSv1_1:TLSv1_2:!SSLv23:!SSLv3:!SSLv2 gesetzt. Vorher nicht vorhanden => Standardwert<
2021.11.17 14:33:43.118 5: Cmd: >attr global dnsServer 192.168.178.1<
2021.11.17 14:33:43.119 5: Cmd: >attr global exclude_from_update 98_freezemon.pm 73_PRESENCE.pm<
2021.11.17 14:33:43.121 5: Cmd: >attr global holiday2we BWFeiertageUrlaub<
2021.11.17 14:33:43.122 5: Cmd: >attr global language DE<
2021.11.17 14:33:43.123 5: Cmd: >attr global latitude 48.2333<
2021.11.17 14:33:43.124 5: Cmd: >attr global logfile ./log/fhem-%Y-w%W.log<
2021.11.17 14:33:43.126 5: Cmd: >attr global longitude 9.9333<
2021.11.17 14:33:43.127 5: Cmd: >attr global modpath .<
2021.11.17 14:33:43.143 5: Cmd: >attr global motd none<
2021.11.17 14:33:43.145 5: Cmd: >attr global mseclog 1<
2021.11.17 14:33:43.146 5: Cmd: >attr global nrarchive 14<
2021.11.17 14:33:43.147 5: Cmd: >attr global room 9.6.0_System<
2021.11.17 14:33:43.148 5: Cmd: >attr global sendStatistics onUpdate<
2021.11.17 14:33:43.150 5: Cmd: >attr global sslVersion !TLSv1:!TLSv1_1:TLSv1_2:!SSLv23:!SSLv3:!SSLv2<
2021.11.17 14:33:43.151 5: Cmd: >attr global stacktrace 0<
2021.11.17 14:33:43.152 5: Cmd: >attr global statefile ./log/fhem.save<
2021.11.17 14:33:43.153 5: Cmd: >attr global updateInBackground 1<
2021.11.17 14:33:43.154 5: Cmd: >attr global verbose 3<
2021.11.17 14:33:43.157 5: Cmd: >define telnetPort telnet 7072 global # our TCP/IP port<
2021.11.17 14:33:43.158 5: Loading ./FHEM/98_telnet.pm
2021.11.17 14:33:43.205 1: telnetPort: Can't open server port at 7072: Address already in use. Exiting.
Deaktiviere ich das (auskommentieren), kommt die Fehlermeldung beim nächsten define in der cfg.
pi@RaspiMain:/opt/fhem $ perl fhem.pl -d fhem.cfg
2021.11.17 14:41:50 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateIcon:textField-long devStateStyle fp_EG1024 fp_UG1024 icon mqttAlias:textField-long mqttDefaults:textField-long mqttDisable:both,incoming,outgoing mqttForward:all,none mqttPublish:textField-long mqttSubscribe:textField-long msgContactAudio msgContactLight msgContactMail msgContactPush msgContactScreen msgParams msgPriority msgRecipient msgRecipientAudio msgRecipientLight msgRecipientMail msgRecipientPush msgRecipientScreen msgRecipientText msgTitle msgTitleShrt msgType:text,push,mail,screen,light,audio,queue power-off power-on presentCycle presentReading sortby webCmd webCmdLabel:textField-long widgetOverride<
2021.11.17 14:41:50 5: Cmd: >attr global autoload_undefined_devices 1<
2021.11.17 14:41:50 5: Cmd: >attr global autosave 0<
2021.11.17 14:41:50 5: Cmd: >attr global blockingCallMax 32<
2021.11.17 14:41:50 5: Cmd: >attr global comment 21.07.21: Feiertagskalender auf eigenen Feiertags/Urlaubskalender BWFeiertageUrlaub im Verzeichnis FHEM/ geändert.\<
2021.11.17 14:41:50 5: Cmd: >attr global dnsServer 192.168.178.1<
2021.11.17 14:41:50 5: Cmd: >attr global exclude_from_update 98_freezemon.pm 73_PRESENCE.pm<
2021.11.17 14:41:50 5: Cmd: >attr global holiday2we BWFeiertageUrlaub<
2021.11.17 14:41:50 5: Cmd: >attr global language DE<
2021.11.17 14:41:50 5: Cmd: >attr global latitude 48.2333<
2021.11.17 14:41:50 5: Cmd: >attr global logfile ./log/fhem-%Y-w%W.log<
2021.11.17 14:41:50 5: Cmd: >attr global longitude 9.9333<
2021.11.17 14:41:50 5: Cmd: >attr global modpath .<
2021.11.17 14:41:50 5: Loading ./FHEM/99_SUNRISE_EL.pm
2021.11.17 14:41:51 5: Loading ./FHEM/99_Utils.pm
2021.11.17 14:41:51 5: Loading ./FHEM/99_attrTmqtt2_ebus_Utils.pm
2021.11.17 14:41:51 5: Loading ./FHEM/99_myUtils.pm
2021.11.17 14:41:51 5: Cmd: >attr global motd none<
2021.11.17 14:41:51 5: Cmd: >attr global mseclog 1<
2021.11.17 14:41:51.333 5: Cmd: >attr global nrarchive 14<
2021.11.17 14:41:51.334 5: Cmd: >attr global room 9.6.0_System<
2021.11.17 14:41:51.335 5: Cmd: >attr global sendStatistics onUpdate<
2021.11.17 14:41:51.336 5: Cmd: >attr global sslVersion !TLSv1:!TLSv1_1:TLSv1_2:!SSLv23:!SSLv3:!SSLv2<
2021.11.17 14:41:51.338 5: Cmd: >attr global stacktrace 0<
2021.11.17 14:41:51.339 5: Cmd: >attr global statefile ./log/fhem.save<
2021.11.17 14:41:51.340 5: Cmd: >attr global updateInBackground 1<
2021.11.17 14:41:51.341 5: Cmd: >attr global verbose 3<
2021.11.17 14:41:51.379 5: Initializing Type Library:
2021.11.17 14:41:51.380 1: Including fhem.cfg
2021.11.17 14:41:51.381 5: Cmd: >attr global userattr cmdIcon devStateIcon devStateIcon:textField-long devStateStyle fp_EG1024 fp_UG1024 icon mqttAlias:textField-long mqttDefaults:textField-long mqttDisable:both,incoming,outgoing mqttForward:all,none mqttPublish:textField-long mqttSubscribe:textField-long msgContactAudio msgContactLight msgContactMail msgContactPush msgContactScreen msgParams msgPriority msgRecipient msgRecipientAudio msgRecipientLight msgRecipientMail msgRecipientPush msgRecipientScreen msgRecipientText msgTitle msgTitleShrt msgType:text,push,mail,screen,light,audio,queue power-off power-on presentCycle presentReading sortby webCmd webCmdLabel:textField-long widgetOverride<
2021.11.17 14:41:51.383 5: Cmd: >attr global autoload_undefined_devices 1<
2021.11.17 14:41:51.384 5: Cmd: >attr global autosave 0<
2021.11.17 14:41:51.385 5: Cmd: >attr global blockingCallMax 32<
2021.11.17 14:41:51.387 5: Cmd: >attr global comment 21.07.21: Feiertagskalender auf eigenen Feiertags/Urlaubskalender BWFeiertageUrlaub im Verzeichnis FHEM/ geändert.
16.05.21: sslversion mit !TLSv1:!TLSv1_1:TLSv1_2:!SSLv23:!SSLv3:!SSLv2 gesetzt. Vorher nicht vorhanden => Standardwert<
2021.11.17 14:41:51.388 5: Cmd: >attr global dnsServer 192.168.178.1<
2021.11.17 14:41:51.389 5: Cmd: >attr global exclude_from_update 98_freezemon.pm 73_PRESENCE.pm<
2021.11.17 14:41:51.391 5: Cmd: >attr global holiday2we BWFeiertageUrlaub<
2021.11.17 14:41:51.392 5: Cmd: >attr global language DE<
2021.11.17 14:41:51.393 5: Cmd: >attr global latitude 48.2333<
2021.11.17 14:41:51.394 5: Cmd: >attr global logfile ./log/fhem-%Y-w%W.log<
2021.11.17 14:41:51.396 5: Cmd: >attr global longitude 9.9333<
2021.11.17 14:41:51.397 5: Cmd: >attr global modpath .<
2021.11.17 14:41:51.413 5: Cmd: >attr global motd none<
2021.11.17 14:41:51.414 5: Cmd: >attr global mseclog 1<
2021.11.17 14:41:51.416 5: Cmd: >attr global nrarchive 14<
2021.11.17 14:41:51.417 5: Cmd: >attr global room 9.6.0_System<
2021.11.17 14:41:51.418 5: Cmd: >attr global sendStatistics onUpdate<
2021.11.17 14:41:51.420 5: Cmd: >attr global sslVersion !TLSv1:!TLSv1_1:TLSv1_2:!SSLv23:!SSLv3:!SSLv2<
2021.11.17 14:41:51.421 5: Cmd: >attr global stacktrace 0<
2021.11.17 14:41:51.422 5: Cmd: >attr global statefile ./log/fhem.save<
2021.11.17 14:41:51.423 5: Cmd: >attr global updateInBackground 1<
2021.11.17 14:41:51.425 5: Cmd: >attr global verbose 3<
2021.11.17 14:41:51.430 5: Cmd: >define WEBS FHEMWEB 8084<
2021.11.17 14:41:51.431 5: Loading ./FHEM/01_FHEMWEB.pm
2021.11.17 14:41:52.137 1: WEBS: Can't open server port at 8084: Address already in use. Exiting.
und so weiter.
Habe im Forum gesucht, aber diesen Fehler nicht gefunden. Kann es sein, dass es an der anderen Hardware liegt? Von 3B+ auf ein 3B mit derselben cfg?
Hat jemand eine Idee, wie ich das System wieder zum laufen bringe ohne von Null an jedes Gerät neu definieren zu müssen?
Grüße Jürgen
Edit: Zugriffsrechte habe ich gerüft und scheinen zu passen.
pi@RaspiMain:/opt/fhem $ ls -lha /opt/fhem
insgesamt 1,3M
drwxr-xr-x 13 fhem dialout 4,0K Nov 17 14:41 .
drwxr-xr-x 4 root root 4,0K Nov 17 13:06 ..
drwxr-xr-x 2 fhem dialout 4,0K Nov 17 14:25 backup
drwxr-xr-x 2 fhem dialout 4,0K Jul 20 08:36 certs
-rw-r--r-- 1 fhem dialout 361K Nov 15 08:39 CHANGED
-rw-r--r-- 1 fhem dialout 42K Nov 8 07:28 configDB.pm
drwxr-xr-x 52 fhem dialout 4,0K Jul 20 06:13 contrib
drwxr-xr-x 3 fhem dialout 4,0K Jul 20 06:13 demolog
drwxr-xr-x 4 fhem dialout 4,0K Jul 20 06:13 docs
drwxr-xr-x 6 fhem dialout 36K Nov 15 09:14 FHEM
-rw-r--r-- 1 fhem dialout 436K Nov 17 14:41 fhem.cfg
-rw-r--r-- 1 fhem dialout 25K Jan 26 2020 fhem.cfg.demo
-rwxrw-rw- 1 fhem dialout 1,3K Jul 20 07:29 'fhem - Kopie.cfg'
-rwxr-xr-x 1 fhem dialout 166K Nov 8 07:28 fhem.pl
-rw-r--r-- 1 fhem dialout 18K Jul 20 08:31 GPL_V2.txt
drwxr-xr-x 3 fhem dialout 4,0K Jul 20 08:31 lib
drwxr-xr-x 3 fhem dialout 100K Nov 16 07:22 log
-rw-r--r-- 1 fhem dialout 44K Nov 8 07:28 MAINTAINER.txt
-rw-r--r-- 1 fhem dialout 935 Jan 26 2020 README_DEMO.txt
drwxr-xr-x 4 fhem dialout 4,0K Jul 20 08:31 restoreDir
-rw-r--r-- 1 fhem dialout 1,1K Jul 20 08:36 server-cert.pem
-rw-r--r-- 1 fhem dialout 1,7K Jul 20 08:36 server-key.pem
-rwxrw-rw- 1 fhem dialout 17K Jul 20 09:26 telefonbuch.xml
drwxr-xr-x 2 fhem dialout 4,0K Jul 20 08:44 unused
drwxr-xr-x 11 fhem dialout 4,0K Okt 19 12:55 www
WEBS: Can't open server port at 8084: Address already in use. Exiting.
Was hast DU denn für Ports offen?
netstat -lntp
Bzw ...... must DU fhem nicht als root starten? Er switcht doch selber automatisch zum User fhem ....
Hallo Werniemann,
schön, dass Du mir wieder hilfst.
8084: Ist für mein Tablet. Die 8083 ist für das Handy. So kann ich Tablet-UI für 2 Bildschirmgrößen einstellen. Dachte so geht es am Einfachsten.
Zitatnetstat -lntp
pi@RaspiMain:~ $ sudo netstat -lntp
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN 599/smbd
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 713/perl
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN 599/smbd
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 713/perl
tcp 0 0 127.0.0.1:8084 0.0.0.0:* LISTEN 713/perl
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN 597/sshd
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN 713/perl
tcp6 0 0 :::445 :::* LISTEN 599/smbd
tcp6 0 0 :::139 :::* LISTEN 599/smbd
tcp6 0 0 :::22 :::* LISTEN 597/sshd
FHEM als root? Dachte das wird bei der Installation automatisch richtig eingestellt. Deswegen eine Neuinstallation, nachdem einfachses Einstecken der SD-Karte nicht funktioniert hat.
....
tcp 0 0 0.0.0.0:7072 0.0.0.0:* LISTEN 713/perl
....
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN 713/perl
tcp 0 0 127.0.0.1:8084 0.0.0.0:* LISTEN 713/perl
....
Kann es sein, das fhem bei Dir schon läuft?
Grund:
Wenn der Port schon belegt ist, kann fhem natürlich den Port nicht belegen. Mit "perl" als Anwendung, der den Port belegt, würde ich auf ein laufendes FHEM tippen.
Wie bekomme ich das heraus?
Habe mit dem Befehl
sudo tar -xvzf /opt/fhem/backup/FHEM-20211116_090754.tar.gz -C /opt/fhem/
die Sicherung eingespielt und den Raspi neu gebootet.
Sietdem ist es so. Das Programm lief auf der anderen Hardware problemlos hoch.
Hast Du denn die ganze Kiste schonmal neu gestartet?
Mehrmals incl. Spannung komplett wegnehmen.
Hab in Einem Thread den Befehl ps ax gefunden. Da ging es um Prozeßstati. bei mir kommt
pi@RaspiMain:/opt/fhem $ ps ax
PID TTY STAT TIME COMMAND
1 ? Ss 0:06 /sbin/init
.
.
.
671 ? R 0:00 sshd: pi@pts/0
672 pts/0 Ss 0:00 -bash
830 ? R 0:07 /usr/bin/perl fhem.pl fhem.cfg
831 pts/0 R+ 0:00 ps ax
Hat Prozeßstatus R hier was besonderes zu bedeuten?
Jetzt habe ich die Originalhardware (3B+) genommen und die Originalkarte (64 GB) eingebaut. Alles wie vorher, lediglich der HB-RF-USBund dessen Funkmodul sind nicht angeschlossen.
Trotzdem fährt der Raspi nicht hoch und bleibt beim ersten define in der cfg hängen.
Was kann ich noch tun? Den Raspi komplett neu aufzusetzen dauert Stunden. :(
830 ? R 0:07 /usr/bin/perl fhem.pl fhem.cfg
R steht für Running, d.h. fhem läuft schon bei Dir ....
Irgendetwas belegt die Ports, wenn FHEM darauf zugreifen möchte. Egal welchen Port ich auskommentiere, der nächste define für einen Port bringt dann die Fehlermeldung. Auch der define des WEB. Somit komme ich nicht mehr auf FHEM.
Der Raspi ist inzwischen im Ausgangszustand und trotzdem ist der Fehler noch da.
Hat noch jemand eine Idee, bevor ich wirklich ein jungfräuliches FHEM aufsetzen muss und alle Device neu anlegen? Mein FHEM hat inzwischen über 6000 Zeilen! :( :(
Ich konnte nicht heruasfinden, was den Port vor FHEM belegt.
2021.11.17 20:53:08.175 5: Cmd: >attr global statefile ./log/fhem.save<
2021.11.17 20:53:08.176 5: Cmd: >attr global updateInBackground 1<
2021.11.17 20:53:08.177 5: Cmd: >attr global verbose 3<
2021.11.17 20:53:08.180 5: Cmd: >define WEB FHEMWEB 8083 global<
2021.11.17 20:53:08.181 5: Loading ./FHEM/01_FHEMWEB.pm
2021.11.17 20:53:08.865 1: WEB: Can't open server port at 8083: Address already in use. Exiting.
pi@Raspi043BPlus:/opt/fhem $ netstat -lntp
(Es konnten nicht alle Prozesse identifiziert werden; Informationen über
nicht-eigene Processe werden nicht angezeigt; Root kann sie anzeigen.)
Aktive Internetverbindungen (Nur Server)
Proto Recv-Q Send-Q Local Address Foreign Address State PID/Program name
tcp 0 0 0.0.0.0:1883 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:7420 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:445 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:44555 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:139 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:14702 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:7411 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8083 0.0.0.0:* LISTEN -
tcp 0 0 127.0.0.1:8084 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:22 0.0.0.0:* LISTEN -
tcp 0 0 0.0.0.0:8088 0.0.0.0:* LISTEN -
tcp6 0 0 :::445 :::* LISTEN -
tcp6 0 0 :::139 :::* LISTEN -
tcp6 0 0 :::22 :::* LISTEN -
ZitatIch konnte nicht heruasfinden, was den Port vor FHEM belegt.
Stoppe mal FHEM und führe den netstat-Befehl mit sudo aus.
Grüße Markus
Die Ausgabe von netstat:
pi@Raspi043BPlus:/opt/fhem $ sudo netstat
Aktive Internetverbindungen (ohne Server)
Proto Recv-Q Send-Q Local Address Foreign Address State
tcp 0 0 localhost:48970 localhost:44557 TIME_WAIT
tcp 0 0 raspberrypi-3BPlus:1883 shelly25-FlurUG.f:10596 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:38900 FritzRepeater-300:49000 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:48548 FritzRepeater-3000:http TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:49756 fritz.box:http TIME_WAIT
tcp 0 0 localhost:49952 localhost:44557 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:49788 fritz.box:http TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:48592 FritzRepeater-3000:http TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:49770 fritz.box:http TIME_WAIT
tcp 0 1 raspberrypi-3BPlu:54228 SamsungQ85.fritz.b:8001 LAST_ACK
tcp 0 240 raspberrypi-3BPlus.:ssh Tower-AZ-2021.fri:49895 VERBUNDEN
tcp 0 0 raspberrypi-3BPlus:8083 Tablet-FHEM.fritz:51899 TIME_WAIT
tcp 0 0 localhost:50018 localhost:44557 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:36796 shellydimmer2-Ankl:http TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:51478 fritz.box:49000 TIME_WAIT
tcp 0 0 raspberrypi-3BPlus:1883 shellydimmer2-Ank:19260 TIME_WAIT
tcp 0 0 localhost:49940 localhost:44557 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:48562 FritzRepeater-3000:http TIME_WAIT
tcp 0 0 raspberrypi-3BPlus:1883 Shelly25-Terrasse:24526 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:48558 FritzRepeater-3000:http TIME_WAIT
tcp 0 0 localhost:49942 localhost:44557 TIME_WAIT
tcp 0 0 raspberrypi-3BPlus:1883 shellyrgbw2-WZ-Sc:21546 TIME_WAIT
tcp 0 0 raspberrypi-3BPlus:7420 ccu3-webui.fritz.:52928 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:48552 FritzRepeater-3000:http TIME_WAIT
tcp 0 0 raspberrypi-3BPlus:7420 ccu3-webui.fritz.:52914 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:49760 fritz.box:http TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:51412 fritz.box:1012 TIME_WAIT
tcp 0 0 raspberrypi-3BPlus:1883 Shelly1-Hofstrahl:11372 TIME_WAIT
tcp 0 0 raspberrypi-3BPlu:49766 fritz.box:http TIME_WAIT
Aktive Sockets in der UNIX-Domäne (ohne Server)
Proto RefCnt Flags Type State I-Node Pfad
unix 2 [ ] DGRAM 19573 /run/user/1000/systemd/notify
unix 3 [ ] DGRAM 10510 /run/systemd/notify
unix 2 [ ] DGRAM 10518 /run/systemd/journal/syslog
unix 12 [ ] DGRAM 10520 /run/systemd/journal/dev-log
unix 7 [ ] DGRAM 10529 /run/systemd/journal/socket
unix 2 [ ] DGRAM 13921 /var/lib/samba/private/msg.sock/551
unix 2 [ ] DGRAM 13951 /var/lib/samba/private/msg.sock/603
unix 2 [ ] DGRAM 13956 /var/lib/samba/private/msg.sock/606
unix 2 [ ] DGRAM 17345 /var/lib/samba/private/msg.sock/607
unix 2 [ ] DGRAM 15155 /var/lib/samba/private/msg.sock/609
unix 2 [ ] DGRAM 6368
unix 3 [ ] STREAM VERBUNDEN 16369 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 14422
unix 3 [ ] STREAM VERBUNDEN 13970
unix 3 [ ] STREAM VERBUNDEN 16045 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 16047 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 17992
unix 2 [ ] DGRAM 15873
unix 2 [ ] DGRAM 10640
unix 3 [ ] STREAM VERBUNDEN 14450
unix 3 [ ] STREAM VERBUNDEN 16455 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 13668
unix 2 [ ] DGRAM 19553
unix 3 [ ] STREAM VERBUNDEN 13669
unix 2 [ ] DGRAM 13667
unix 3 [ ] DGRAM 19575
unix 3 [ ] STREAM VERBUNDEN 19577
unix 3 [ ] STREAM VERBUNDEN 15616
unix 3 [ ] STREAM VERBUNDEN 15484 /run/systemd/journal/stdout
unix 2 [ ] DGRAM 14441
unix 3 [ ] STREAM VERBUNDEN 15553 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 15552
unix 3 [ ] STREAM VERBUNDEN 15489 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 15482
unix 3 [ ] STREAM VERBUNDEN 14176 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 13490
unix 2 [ ] DGRAM 19556
unix 3 [ ] STREAM VERBUNDEN 15680
unix 3 [ ] STREAM VERBUNDEN 15617 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 13492 /run/systemd/journal/stdout
unix 2 [ ] DGRAM 15682
unix 3 [ ] DGRAM 19574
unix 3 [ ] STREAM VERBUNDEN 18542 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 19909 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 15809
unix 3 [ ] STREAM VERBUNDEN 19546
unix 3 [ ] STREAM VERBUNDEN 16017
unix 2 [ ] DGRAM 16549
unix 2 [ ] DGRAM 16576
unix 3 [ ] STREAM VERBUNDEN 16046 /var/run/dbus/system_bus_socket
unix 2 [ ] DGRAM 18927
unix 3 [ ] STREAM VERBUNDEN 16036
unix 3 [ ] STREAM VERBUNDEN 16548
unix 2 [ ] DGRAM 16031
unix 2 [ ] DGRAM 16481
unix 3 [ ] STREAM VERBUNDEN 13651 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 17612
unix 3 [ ] STREAM VERBUNDEN 16048 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 16043
unix 3 [ ] STREAM VERBUNDEN 16042
unix 3 [ ] STREAM VERBUNDEN 14790 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 16202 /var/run/dbus/system_bus_socket
unix 3 [ ] STREAM VERBUNDEN 16190
unix 3 [ ] STREAM VERBUNDEN 16723 /run/systemd/journal/stdout
unix 3 [ ] STREAM VERBUNDEN 17307
unix 3 [ ] STREAM VERBUNDEN 16201
unix 3 [ ] DGRAM 16197
unix 2 [ ] STREAM VERBUNDEN 18508
unix 2 [ ] DGRAM 16195
unix 3 [ ] STREAM VERBUNDEN 17613
unix 3 [ ] DGRAM 16200
unix 3 [ ] DGRAM 16199
unix 2 [ ] DGRAM 17539
unix 3 [ ] DGRAM 16198
unix 3 [ ] DGRAM 10511
unix 3 [ ] DGRAM 10512
unix 3 [ ] DGRAM 9752
unix 3 [ ] DGRAM 9753
unix 3 [ ] STREAM VERBUNDEN 9746
unix 2 [ ] DGRAM 9749
unix 3 [ ] STREAM VERBUNDEN 10736 /run/systemd/journal/stdout
Fritzbox: Ich habe 2 (7530 und 7490), die ich abfrage
So schlecht zu lesen, bitte (als root oder sudo)
netstat -lntp
Hi,
um zu sehen ob fhem schon läuft sollte man auch mit:
systemctl status fhem
(STRG+C um das zu verlassen)
das sehen können.
Mit sudo systemctl stop fhem
kann man fhem stoppen und mit sudo systemctl start fhem
wieder starten.
Hast du vor deinem sudo tar -xvzf ......
fhem gestoppt?
Siehe auch:
https://heinz-otto.blogspot.com/2015/12/backup-und-restore-von-fhem.html (https://heinz-otto.blogspot.com/2015/12/backup-und-restore-von-fhem.html)
Ich bin inzwischen dazu übergegangen meine Backups auf einem NAS zu machen und mir ein Master FHEM image erstellt.
Dort hab ich ein script das mir die Backupdatei vom NAS auf den Pi kopiert , service stoppt, entpackt und wieder fhem startet.
Hat zwar ein paar kleine macken aber besser also ein komplette neuinstallation.
Gruß
Christian
Wenn Du nur fhem sicherst (also das "tar /opt/fhem ...) brauchst Du fhem nicht runterzufaren. bei mySQL sieht sowas gans anders aus.
Ich würde gar nicht mit systemctrl gucken, ob fhem läuft. Wenn dann über "ps aux | grep fhem". Das ist definitiv sicherer
Danke für eure Hilfe.
Nachdem ich das Problem der belegten Ports nicht lösen konnte habe ich Buster neu aufgesetzt und FHEM neu installiert. Dann zuerst die Hardware auf einen zusätzlichen Pi, auf dem jetzt piVCCU, zigbee2mqtt, ein CUL über ser2net, ein Jeelink über ser2net und ein Conbee II für zigbee2mqtt läuft, verlagert.
Dann Schritt für Schritt aus der fhem.cfg des nicht laufenden Backups die Device wieder definiert (geht ganz gut über den RAW-Editor). Der größe Aufwand war, dass ich damals die MQTT-Device beim definieren umbenannt hatte und sie jetzt automatisch angelegt wurden und ander Namen bekamen. Daher musste ich in vielen DOIF etc. die Namen ändern. Jetzt ist aber alles bereinigt und läuft zu 90 % wieder. Mal sehen, wie zuverlässig die Abfrage der Hardware über ser2net vom anderen Pi läuft.
Letztes größeres Problem ist, das Tablet-UI nur noch die Rahmen, aber keine Inhalte mehr lädt, obwohl ich alle html-Dateien in das Verzeichnis kopiert habe. Da bin ich noch auf der Suche aber wird sich sicher auch lösen lassen.