Autostart funktioniert plötzlich nicht mehr - jedoch nur in einem Pi (gleiche SD

Begonnen von leif, 23 November 2017, 01:15:36

Vorheriges Thema - Nächstes Thema

leif

Nabend,

ich stehe gerade vor einem kuriosen Problem. Bis heute lief mein FHEM im Pi3 ziemlich reibungslos und der Autostart machte keinerlei Probleme. Doch nun tauchen nach dem Neustart des Pi3 in den FHEM Logs immer derlei Einträge auf

2017.11.23 02:59:16 0: Server shutdown
2017.11.23 02:59:21 1: Including fhem.cfg
2017.11.23 02:59:21 3: telnetPort: port 7072 opened
2017.11.23 02:59:22 3: WEB: port 8083 opened
2017.11.23 02:59:22 3: WEBphone: port 8084 opened
2017.11.23 02:59:22 3: WEBtablet: port 8085 opened
2017.11.23 02:59:22 2: eventTypes: loaded 831 events from ./log/eventTypes.txt
2017.11.23 02:59:22 3: wz_computerlicht: I/O device is Hue
2017.11.23 02:59:22 3: fl_flurlicht: I/O device is Hue
2017.11.23 02:59:22 3: wz_sofalicht: I/O device is Hue
2017.11.23 02:59:23 3: wz_tischlicht: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup3: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup6: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup16: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup20: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup19: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup5: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup0: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup2: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup17: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup4: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup18: I/O device is Hue
2017.11.23 02:59:23 3: HUEGroup1: I/O device is Hue
2017.11.23 02:59:23 3: YeeLight bz_badlicht defined at 192.168.178.219:55443
2017.11.23 02:59:23 3: Opening bz_badlicht device 192.168.178.219:55443
2017.11.23 02:59:23 3: Can't connect to 192.168.178.219:55443: Network is unreac                                                        hable
2017.11.23 02:59:23 3: Opening bz_badlicht device 192.168.178.219:55443
2017.11.23 02:59:23 1: PERL WARNING: Use of uninitialized value $model in string                                                         eq at ./FHEM/32_YeeLight.pm line 172, <$fh> line 216.
2017.11.23 02:59:23 3: TelegramBot_Define telebot: called
2017.11.23 02:59:23 2: TelegramBot_DoUrlCommand telebot: FAILED http access retu                                                        rned error :https://api.telegram.org/botxxxxxxx382:AAGxxxxxxxxxxLaLF9ceHnJVl8CbGp                                                        LuRQA/getMe: Can't connect(1) to https://api.telegram.org:443: IO::Socket::INET:                                                         Bad hostname 'api.telegram.org:443':
2017.11.23 02:59:23 3: XiaomiFlowerSens (hawaipalme) - defined with BTMAC C4:7C:                                                        8D:65:A9:B5
2017.11.23 02:59:23 3: XiaomiFlowerSens (hawaipalme) - set interval to 900
2017.11.23 02:59:23 3: XiaomiFlowerSens (chili) - defined with BTMAC C4:7C:8D:65                                                        :CA:E2
2017.11.23 02:59:23 3: XiaomiFlowerSens (chili) - set interval to 900
2017.11.23 02:59:23 1: PERL WARNING: Prototype mismatch: sub main::round ($$) vs                                                         none at /usr/share/perl/5.24/Exporter.pm line 66, <$fh> line 313.
2017.11.23 02:59:23 1: PERL WARNING: Scalar value @arround[...] better written a                                                        s $arround[...] at ./FHEM/71_XiaomiSmartHome_Device.pm line 243, <$fh> line 317.
2017.11.23 02:59:23 1: PERL WARNING: Scalar value @arround[...] better written a                                                        s $arround[...] at ./FHEM/71_XiaomiSmartHome_Device.pm line 250, <$fh> line 317.
2017.11.23 02:59:23 1: Including ./log/fhem.save
2017.11.23 02:59:23 2: HUEBridge_OpenDev: error reading description: http://192.                                                        168.178.100/description.xml: Can't connect(1) to http://192.168.178.100:80: IO::                                                        Socket::INET: connect: Network is unreachable
2017.11.23 02:59:23 2: Hue: empty answer received for http://192.168.178.100/api                                                        /QSDnRzE1k7cTuA4NcgVMNxxx5RhuSykuAzqlfuj-/config
2017.11.23 02:59:23 2: HUEBridge_OpenDev: got empty config
2017.11.23 02:59:23 3: telnetForBlockingFn_1511402363: port 45701 opened
2017.11.23 02:59:23 1: usb create starting
2017.11.23 02:59:23 3: Probing CUL device /dev/ttyAMA0
2017.11.23 02:59:24 3: Probing TCM_ESP3 device /dev/ttyAMA0
2017.11.23 02:59:24 3: Probing ZWDongle device /dev/ttyAMA0
2017.11.23 02:59:24 3: Probing FRM device /dev/ttyAMA0
2017.11.23 02:59:29 1: usb create end
2017.11.23 02:59:29 0: Featurelevel: 5.8
2017.11.23 02:59:29 0: Server started with 58 defined entities (fhem.pl:15466/20                                                        17-11-20 perl:5.024001 os:linux user:fhem pid:431)
2017.11.23 02:59:29 3: Opening bz_badlicht device 192.168.178.219:55443
2017.11.23 02:59:30 3: ABFALL Muelltonnen - CALENDAR:Muelltonnen_Kalender trigge                                                        red, updating ABFALL Muelltonnen ...
Creating socket: Invalid argument
Set scan parameters failed: Input/output error


und der Service startet nicht richtig.

Also dachte ich erst ich hätte mir irgendwas in der Netzwerk Konfiguration zerschossen, doch wenn ich FHEM dann anschließend via sudo /etc/init.d/fhem/ start manuell starte läuft alles einwandfrei.

So richtig kurios wurde es dann als ich die SD Karte aus meinem PI 3 in meinen Pi Zero W steckte - dort läuft der Autostart einwandfrei.

Was kann das sein? Nachdem ich nun auch noch andere Netzteile ausprobiert habe (der Zero W ist da ja genügsamer als der Pi3) und dies auch nichts brachte bin ich nun total ratlos.


Edit / Lösung:

Danke Frank, deine Vermutung ging in genau die richtige Richtung. Da ich aus Versehen mehrere Threads offen hatte hier die Lösung
https://forum.fhem.de/index.php?topic=80017.msg720374#msg720374

frank

der fhem server ist laut log gestartet. allerdings gibt es wohl diverse schwierigkeiten mit dem netzwerk.
was sagt denn das syslog vom pi3?

ich vermute mal, dass dein fhem zu früh gestartet wird, also vor der netzwerkverfügbarkeit. das würde auch erklären, dass du es später manuell "normal" starten kannst.
bei meinem pi3/jessie_lite habe ich den start über systemd verzögert (die PID von fhem ist auch grösser).
FHEM: 6.0(SVN) => Pi3(buster)
IO: CUL433|CUL868|HMLAN|HMUSB2|HMUART
CUL_HM: CC-TC|CC-VD|SEC-SD|SEC-SC|SEC-RHS|Sw1PBU-FM|Sw1-FM|Dim1TPBU-FM|Dim1T-FM|ES-PMSw1-Pl
IT: ITZ500|ITT1500|ITR1500|GRR3500
WebUI [HMdeviceTools.js (hm.js)]: https://forum.fhem.de/index.php/topic,106959.0.html