FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: cseuss am 31 März 2018, 20:09:48

Titel: Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: cseuss am 31 März 2018, 20:09:48
Hallo zusammen,

wenn ich derzeit ein "update all" auf meinem PI 3 mache, ist das System im Anschluss nicht mehr lauffähig.

Ich bekomme die nachfolgenden Meldungen im Log:

...
2018.03.31 19:50:17 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_AMADDevice.pm line 204, <$fh> line 3308.
2018.03.31 19:50:17 3: AMADDevice (FHEMTablet) - defined with AMAD_ID: 1507977008401 on port
...
2018.03.31 19:50:30 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_AMADDevice.pm line 376.
2018.03.31 19:50:30 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/73_AMADCommBridge.pm line 290.
2018.03.31 19:50:30 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/73_AMADCommBridge.pm line 291.
2018.03.31 19:50:30 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at FHEM/HttpUtils.pm line 116.
2018.03.31 19:50:30 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at FHEM/HttpUtils.pm line 304.
2018.03.31 19:50:30 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at FHEM/HttpUtils.pm line 306.
2018.03.31 19:50:30 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at FHEM/HttpUtils.pm line 313.
Can't use an undefined value as a subroutine reference at FHEM/HttpUtils.pm line 869.


Danach stützt wohl der gesamte perl-fhem-Prozess ab und nichts geht mehr.

Ich habe vorher ein Backup gemacht und konnte so wieder schnell zurückschwenken.

Die entsprechenden Module habe ich angehängt.

Einen Fehler auf der SD-Karte kann ich ausschließen, da ich FHEM seit Monaten auf einer SSD-HD betreibe.

Habt Ihr eine Idee?

Frohe Ostern und Gruß

Christian


Titel: Antw:Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: CoolTux am 31 März 2018, 20:34:39
In den Devices vom Type AMADDevice das Attribut remoteServer Automagic setzen.
Titel: Antw:Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: KernSani am 31 März 2018, 20:37:49
Ohne das Modul zu kennen... Bei einem Blick in den code fällt auf, dass offensichtlich der Port nicht gesetzt ist...

Titel: Antw:Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: CoolTux am 31 März 2018, 20:48:19
Gib Mal bitte ein list vom Device.
Dein define wird nicht stimmen.

define <name> AMADDevice <HOST-IP> <amad_id> <remoteServer>"

Für remoteServer muss sofern nicht anders gewünscht Automagic eingetragen werden.
Titel: Antw:Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: cseuss am 31 März 2018, 21:49:18
hier das Listing:

Internals:
   AMADBridge_MSGCNT 461
   AMADBridge_TIME 2018-03-31 21:47:20
   AMAD_ID    1507977008401
   CHANGED
   DEF        192.168.10.39 1507977008401 IODev=AMADBridge
   HOST       192.168.10.39
   IODev      AMADBridge
   LASTInputDev AMADBridge
   MSGCNT     461
   NAME       FHEMTablet
   NR         642
   PORT       8090
   STATE      active
   TYPE       AMADDevice
   VERSIONFLOWSET 4.0.11
   VERSIONMODUL 4.0.12
   READINGS:
     2017-10-14 12:31:29   airplanemode    off
     2017-10-14 12:31:29   androidVersion  6.0 Marshmallow
     2018-03-31 19:57:39   automagicState  Automagic Premium  Automagic Service läuft
     2017-10-14 12:31:28   batteryHealth   2
     2018-03-31 21:03:20   batteryTemperature 24.8
     2018-03-31 16:47:27   bluetooth       on
     2017-10-14 12:31:53   checkActiveTask 0
     2018-03-31 16:47:27   connectedBTdevices [Anker A7908]
     2018-03-31 16:47:27   connectedBTdevicesMAC [FC:58:FA:42:9C:A0]
     2018-03-20 18:48:07   currentMusicAlbum no player active
     2018-03-20 18:48:07   currentMusicApp no player active
     2018-03-20 18:48:07   currentMusicArtist no player active
     2018-03-20 18:48:07   currentMusicIcon no player active
     2018-03-20 18:48:07   currentMusicTrack no player active
     2018-03-31 19:55:47   deviceState     online
     2017-11-05 13:50:34   doNotDisturb    always
     2017-10-14 12:31:32   dockingState    undocked
     2018-03-03 13:08:48   flow_SetCommands aktiv
     2018-03-31 19:55:47   flow_informations aktiv
     2017-10-14 12:31:28   flowsetVersionAtDevice 4.0.11
     2018-03-23 18:52:27   intentRadioName WDR2
     2018-03-30 19:35:40   intentRadioState stop
     2017-10-14 12:31:32   keyguardSet     0
     2018-02-04 14:15:33   lastSetCommandError
     2018-03-31 21:46:40   lastSetCommandState setCmd_done
     2018-03-31 20:05:50   lastStatusRequestState statusRequest_done
     2017-10-14 12:31:28   mute            off
     2017-10-14 12:31:32   nextAlarmDay    off
     2017-10-14 12:31:32   nextAlarmTime   off
     2018-03-26 19:33:04   powerLevel      100
     2018-03-10 13:01:53   powerPlugged    2
     2018-03-31 21:44:41   screen          on locked
     2017-10-14 12:31:29   screenBrightness 87
     2017-10-14 12:31:32   screenOrientation landscape
     2017-10-14 12:31:32   screenOrientationMode manual
     2018-03-31 20:31:30   state           active
     2018-03-30 16:50:32   volume          9
     2017-11-07 19:44:11   volumeNotification 3
     2017-11-12 14:10:17   wiredHeadsetPlugged 0
   helper:
     deviceStateErrorCounter 0
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   room       AMAD
   root       1
   setAPSSID  SEUSS
   setBluetoothDevice FC:58:FA:42:9C:A0
   setTtsMsgLang de
Titel: Antw:Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: CoolTux am 31 März 2018, 21:51:19
IODev=AMADBridge

Das bitte ändern in

Automagic

Also das ganze. Und bitte auf die neuste Version updaten.
Titel: Antw:Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: cseuss am 31 März 2018, 21:53:59
Das geht nicht in der Version 4.0.12
Titel: Antw:Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: cseuss am 31 März 2018, 22:02:24
ich habe es nun nach einem Update und vor dem Neustart in der fhem.cfg direkt angepast.

Sieht nun besser aus.

Eine Anmerkung: Ist schon tricky. Super Modul, wenn allerdings nach einem "normalen" Update fhem in Gänze abstürzt ist das schon heftig...

Vielen Dank für die Hilfe.
Titel: Antw:Perl Crash nach update: HttpUtils.pm: Use of uninitialized value
Beitrag von: CoolTux am 31 März 2018, 22:21:23
Es sollte eigentlich in Version 2.0.12 ein DEF Update passieren um genau sowas zu vermeiden.