[gelöst] kein fhem start nach AMAD-update

Begonnen von knopf_piano, 02 März 2018, 18:18:25

Vorheriges Thema - Nächstes Thema

knopf_piano

Hi Cooltux,
nach update dieser beiden Module (Rev 16283) hab ich Probleme, dass fhem nicht mehr hochkommt
UPD FHEM/73_AMADCommBridge.pm
UPD FHEM/74_AMADDevice.pm
wobei nur 73_AMADCommBridge.pm die Probleme bereitet.

Wenn ich nur auf die vorige Version austausche läuft fhem. Und ich hab keine Änderungen bei Peripherie etc. Amad läuft seit ca. 1 Jahr problemlos

fhem-log anbei:

2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/74_AMADDevice.pm line 380.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/73_AMADCommBridge.pm line 290.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at ./FHEM/73_AMADCommBridge.pm line 291.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at FHEM/HttpUtils.pm line 109.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at FHEM/HttpUtils.pm line 297.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at FHEM/HttpUtils.pm line 299.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at FHEM/HttpUtils.pm line 306.
Can't use an undefined value as a subroutine reference at FHEM/HttpUtils.pm line 857.
2018.03.02 18:05:35 3: UWZ Unwetterzentrale: Run.1043 Done fetching data
2018.03.02 18:05:35 1: BlockingInformParent (BlockingRegisterTelnet): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:35 1: BlockingInformParent (BlockingRegisterTelnet): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:35 1: BlockingInformParent (BlockingRegisterTelnet): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:35 1: BlockingInformParent (BlockingRegisterTelnet): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:35 1: BlockingInformParent (BlockingRegisterTelnet): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:35 1: BlockingInformParent (BlockingRegisterTelnet): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:35 1: BlockingInformParent (BlockingStart): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:35 1: BlockingInformParent (WOL_PingDone): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:38 1: BlockingInformParent (BlockingStart): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:38 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:38 1: BlockingInformParent (BlockingStart): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:38 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:38 1: BlockingInformParent (BlockingStart): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:38 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:38 1: BlockingInformParent (BlockingStart): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:38 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:41 1: BlockingInformParent (BlockingStart): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused
2018.03.02 18:05:41 1: BlockingInformParent (PRESENCE_ProcessLocalScan): Can't connect to localhost:7073: IO::Socket::INET: connect: Connection refused


Amad-define

###################################################
# AMAD
###################################################

define AMADBridge AMADCommBridge
attr AMADBridge group AMAD
attr AMADBridge room System

###################################################
# AMAD
###################################################

define TabletKitchenNew AMADDevice 192.168.50.55 1502213222032 IODev=AMADBridge
attr TabletKitchenNew group AMAD
attr TabletKitchenNew room System
attr TabletKitchenNew setOpenUrlBrowser de.ozerov.fully|de.ozerov.fully.MainActivity
attr TabletKitchenNew setScreenOrientation 1
attr TabletKitchenNew setTtsMsgLang de

ps -aux|grep fhem bringt

fhem      6077  0.0  1.7 264520 142868 ?       S    18:05   0:00 /usr/bin/perl fhem.pl fhem.cfg
root      6508  0.0  0.0  14320   948 pts/1    S+   18:09   0:00 grep fhem


weiterhin hab ich

# for getting rid of fritz-check-api-error
define tPortLocal telnet 7073

Wenn ich den aber rausnehm, bekomm ich fehlermeldung für andere ports.

Aktuell unterdrück ich das update der beiden Module.
Hast du eine Idee?
Brauchst du noch (debug)Infos?
zotac nano mit proxmox und ganz viel zeug drauf

CoolTux


2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at FHEM/HttpUtils.pm line 109.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at FHEM/HttpUtils.pm line 297.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in pattern match (m//) at FHEM/HttpUtils.pm line 299.
2018.03.02 18:05:33 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at FHEM/HttpUtils.pm line 306.
Can't use an undefined value as a subroutine reference at FHEM/HttpUtils.pm line 857.


Kannst Du mir sagen welche Version Dein HttpUtils.pm hast?
Das Problem scheint von HttpUtils zu kommen.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

knopf_piano

diese hier:

# $Id: HttpUtils.pm 15631 2017-12-17 12:33:03Z rudolfkoenig $
zotac nano mit proxmox und ganz viel zeug drauf

CoolTux

Zitat von: knopf_piano am 02 März 2018, 18:27:36
diese hier:

# $Id: HttpUtils.pm 15631 2017-12-17 12:33:03Z rudolfkoenig $


Ok habe ich auch. Neustart gemacht?
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

knopf_piano

restart immer nach update.
fehler wie oben beschrieben mit log-Einträgen. Keine weiteren logs anschließend.
zotac nano mit proxmox und ganz viel zeug drauf

CoolTux

list der Bridge und des Devices brauche ich bitte
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Von welcher Version hast Du das Update auf 4.2 gemacht?


define TabletKitchenNew AMADDevice 192.168.50.55 1502213222032 IODev=AMADBridge


Das ist eine falsche definition

define TabletKitchenNew AMADDevice 192.168.50.55 1502213222032 Automagic

Das wäre korrekt
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

und

attr DEVICENAME IODev AMADBridge

nicht vergesen
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

knopf_piano


Internals:
   BRIDGE     1
   CFGFN      ./myfhem/dev/dev_amad.cfg
   CONNECTS   188
   FD         38
   NAME       AMADBridge
   NR         2225
   PORT       8090
   STATE      opened
   TYPE       AMADCommBridge
   VERSIONFLOWSET 4.0.13
   VERSIONMODUL 4.0.8
   READINGS:
     2017-12-16 13:55:15   fhemServerIP    192.168.50.1
     2017-12-29 10:07:34   receiveVoiceCommand abbruch
     2017-12-29 10:07:34   receiveVoiceDevice TabletKitchenNew
     2018-03-02 18:20:55   state           opened
Attributes:
   group      AMAD
   room       System



Internals:
   AMADBridge_MSGCNT 74
   AMADBridge_TIME 2018-03-02 18:34:19
   AMAD_ID    1502213222032
   CFGFN      ./myfhem/dev/dev_amad.cfg
   CHANGED   
   DEF        192.168.50.55 1502213222032 Automagic
   HOST       192.168.50.55
   IODev      AMADBridge
   LASTInputDev AMADBridge
   MSGCNT     74
   NAME       TabletKitchenNew
   NR         2231
   PORT       8090
   STATE      active
   TYPE       AMADDevice
   VERSIONFLOWSET 4.0.13
   VERSIONMODUL 4.0.13
   READINGS:
     2017-11-06 20:32:16   airplanemode    off
     2017-11-06 20:32:16   androidVersion  4.4 KitKat
     2018-03-02 18:21:18   automagicState  Automagic Premium  Automagic Service läuft 
     2017-11-06 20:32:16   batteryHealth   2
     2018-03-02 18:21:16   batteryTemperature 31.0
     2017-11-06 20:32:19   bluetooth       off
     2017-11-06 19:20:59   checkActiveTask 0
     2017-11-06 20:32:19   connectedBTdevices none
     2017-11-06 20:32:19   connectedBTdevicesMAC none
     2017-11-06 20:32:20   currentMusicAlbum no player active
     2017-11-06 20:32:20   currentMusicApp no player active
     2017-11-06 20:32:20   currentMusicArtist no player active
     2017-11-06 20:32:20   currentMusicIcon no player active
     2017-11-06 20:32:20   currentMusicTrack no player active
     2018-03-02 18:21:16   deviceState     online
     2017-11-06 20:32:19   dockingState    undocked
     2017-11-06 19:19:19   flow_SetCommands aktiv
     2018-01-07 23:10:45   flow_informations aktiv
     2018-02-24 00:02:30   flowsetVersionAtDevice 4.0.13
     2018-02-23 20:25:26   incommingTelegramMessageFrom Telegram  2 neue Nachrichten von 2 Chats 2
     2017-11-06 20:32:19   keyguardSet     1
     2018-03-02 18:31:30   lastSetCommandState setCmd_done
     2018-03-02 18:21:22   lastStatusRequestState statusRequest_done
     2018-01-29 12:37:45   mute            off
     2017-11-06 20:32:19   nextAlarmDay    off
     2017-11-06 20:32:19   nextAlarmTime   off
     2018-02-24 11:41:55   powerLevel      100
     2018-02-24 11:41:55   powerPlugged    1
     2018-03-01 18:43:50   screen          on unlocked
     2018-02-25 09:08:53   screenBrightness 120
     2018-02-24 07:30:02   screenOrientation landscape
     2018-02-23 10:23:58   screenOrientationMode manual
     2018-03-02 18:21:15   state           active
     2018-01-29 18:18:01   volume          10
     2017-11-06 20:32:16   wiredHeadsetPlugged 0
   helper:
     deviceStateErrorCounter 0
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   IODev      AMADBridge
   group      AMAD
   room       System
   setOpenUrlBrowser de.ozerov.fully|de.ozerov.fully.MainActivity
   setScreenOrientation 1
   setTtsMsgLang de
zotac nano mit proxmox und ganz viel zeug drauf

CoolTux

Das sieht schon Mal besser aus. So passt das
Ich überlege mal wegen den Fehlern. Da hast aber auch von anderen Geräten Probleme.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

knopf_piano

Zitat von: CoolTux am 02 März 2018, 18:40:10
Das sieht schon Mal besser aus. So passt das
Ich überlege mal wegen den Fehlern. Da hast aber auch von anderen Geräten Probleme.

Hm, sonst nix drin gehabt an Fehlermeldungen...
Zitat von: CoolTux am 02 März 2018, 18:36:21
und

attr DEVICENAME IODev AMADBridge

nicht vergesen

hab ich noch ergänzt -> is aber immer noch...
zotac nano mit proxmox und ganz viel zeug drauf

CoolTux

Mach mal bitte ein Update und setze die Bridge auf verbose 5
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

CoolTux

Fehler gefunden.

Bitte attr DEVICENAME remoteServer Automagic beim AMADDevice eintragen
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net

knopf_piano

#13
Zitat von: CoolTux am 02 März 2018, 18:58:49
Fehler gefunden.

Bitte attr DEVICENAME remoteServer Automagic beim AMADDevice eintragen

für mich ergänzt:

define TabletKitchenNew AMADDevice 192.168.50.55 1502213222032 IODev=AMADBridge
attr TabletKitchenNew group AMAD
attr TabletKitchenNew IODev AMADBridge
attr TabletKitchenNew remoteServer Automagic
attr TabletKitchenNew room System
attr TabletKitchenNew setOpenUrlBrowser de.ozerov.fully|de.ozerov.fully.MainActivity
attr TabletKitchenNew setScreenOrientation 1

listing:

Internals:
   AMADBridge_MSGCNT 20
   AMADBridge_TIME 2018-03-02 19:38:19
   AMAD_ID    1502213222032
   CFGFN      ./myfhem/dev/dev_amad.cfg
   CHANGED   
   DEF        192.168.50.55 1502213222032 Automagic
   HOST       192.168.50.55
   IODev      AMADBridge
   LASTInputDev AMADBridge
   MSGCNT     20
   NAME       TabletKitchenNew
   NOTIFYDEV  global,TabletKitchenNew
   NR         2231
   NTFY_ORDER 50-TabletKitchenNew
   PORT       8090
   STATE      active
   TYPE       AMADDevice
   VERSIONFLOWSET 4.2.0
   VERSIONMODUL 4.2.0
   READINGS:
     2017-11-06 20:32:16   airplanemode    off
     2017-11-06 20:32:16   androidVersion  4.4 KitKat
     2018-03-02 19:37:12   automagicState  Automagic Premium  Automagic Service läuft 
     2017-11-06 20:32:16   batteryHealth   2
     2018-03-02 19:37:11   batteryTemperature 33.0
     2017-11-06 20:32:19   bluetooth       off
     2017-11-06 19:20:59   checkActiveTask 0
     2017-11-06 20:32:19   connectedBTdevices none
     2017-11-06 20:32:19   connectedBTdevicesMAC none
     2017-11-06 20:32:20   currentMusicAlbum no player active
     2017-11-06 20:32:20   currentMusicApp no player active
     2017-11-06 20:32:20   currentMusicArtist no player active
     2017-11-06 20:32:20   currentMusicIcon no player active
     2017-11-06 20:32:20   currentMusicTrack no player active
     2018-03-02 19:37:11   deviceState     online
     2017-11-06 20:32:19   dockingState    undocked
     2017-11-06 19:19:19   flow_SetCommands aktiv
     2018-01-07 23:10:45   flow_informations aktiv
     2018-02-24 00:02:30   flowsetVersionAtDevice 4.0.13
     2018-02-23 20:25:26   incommingTelegramMessageFrom Telegram  2 neue Nachrichten von 2 Chats 2
     2017-11-06 20:32:19   keyguardSet     1
     2018-03-02 19:34:36   lastSetCommandState setCmd_done
     2018-03-02 19:37:16   lastStatusRequestState statusRequest_done
     2018-01-29 12:37:45   mute            off
     2017-11-06 20:32:19   nextAlarmDay    off
     2017-11-06 20:32:19   nextAlarmTime   off
     2018-02-24 11:41:55   powerLevel      100
     2018-02-24 11:41:55   powerPlugged    1
     2018-03-01 18:43:50   screen          on unlocked
     2018-02-25 09:08:53   screenBrightness 120
     2018-02-24 07:30:02   screenOrientation landscape
     2018-02-23 10:23:58   screenOrientationMode manual
     2018-03-02 19:37:09   state           active
     2018-01-29 18:18:01   volume          10
     2017-11-06 20:32:16   wiredHeadsetPlugged 0
   helper:
     deviceStateErrorCounter 0
     infoErrorCounter 0
     setCmdErrorCounter 0
Attributes:
   IODev      AMADBridge
   group      AMAD
   remoteServer Automagic
   room       System
   setOpenUrlBrowser de.ozerov.fully|de.ozerov.fully.MainActivity
   setScreenOrientation 1


das attribut isses (sollt dann noch in die commandref, oder? ):

attr TabletKitchenNew remoteServer Automagic


die versionen nach update

# $Id: 73_AMADCommBridge.pm 16283 2018-02-27 10:34:15Z CoolTux $
# $Id: 74_AMADDevice.pm 16283 2018-02-27 10:34:15Z CoolTux $


Fhem start ohne Fehler.
Grazie Mille.
Ich trink ein Bier auf dein Wohl heut abend!

Grüße und schönes Wochenende!
zotac nano mit proxmox und ganz viel zeug drauf

CoolTux

Eigentlich sollte er das Attribut nach start automatisch setzen. Warum er das bei Dir nicht macht ist mir ein Rätsel.
Du musst nicht wissen wie es geht! Du musst nur wissen wo es steht, wie es geht.
Support me to buy new test hardware for development: https://www.paypal.com/paypalme/MOldenburg
My FHEM Git: https://git.cooltux.net/FHEM/
Das TuxNet Wiki:
https://www.cooltux.net