[gelöst] Problem seit Update heute 18.11.18 > AttrTemplate.pm / SetExtensions.pm

Begonnen von Maista, 18 November 2018, 19:03:31

Vorheriges Thema - Nächstes Thema

Maista

Hallo Rudolf,

Hoffe das steht hier Richtig.

Unter https://forum.fhem.de/index.php/topic,93370.0.html hattest Du AttrTemplate angekündigt.
Das scheint bei mir nun Probleme zu machen. Zumindest sieht es nach dem Log so aus.

Ich lade meine Devices durch eigene CFG-Dateien die aus fhem.cfg per include geladen werden.
Seit dem heute durchgeführten Update kam es auf allen meiner drei Rasperrys zu Problemen beim
laden der Definitionen.

Zitat2018.11.18 17:04:22 0: Server shutdown
2018.11.18 17:07:51 1: Including fhem.cfg
2018.11.18 17:07:51 3: telnetPort: port 7072 opened
2018.11.18 17:07:52 3: WEB: port 8083 opened
2018.11.18 17:07:52 3: WEBphone: port 8084 opened
2018.11.18 17:07:52 3: WEBtablet: port 8085 opened
2018.11.18 17:07:52 2: eventTypes: loaded 1028 events from ./log/eventTypes.txt
2018.11.18 17:07:52 1: Including /opt/fhem/FHEM/AutoCreate.cfg
2018.11.18 17:07:52 1: Including /opt/fhem/FHEM/CMD_Alias.cfg
2018.11.18 17:07:52 1: Including /opt/fhem/FHEM/Firmata_Arduino-Mega_USB.cfg
2018.11.18 17:07:53 1: Including /opt/fhem/FHEM/FRM_IO_00.cfg
2018.11.18 17:07:53 1: reload: Error:Modul 20_FRM_OUT deactivated:
syntax error at FHEM/AttrTemplate.pm line 27, near "continue"
Compilation failed in require at FHEM/SetExtensions.pm line 7, <> line 34.
BEGIN failed--compilation aborted at FHEM/SetExtensions.pm line 7, <> line 34.
Compilation failed in require at ./FHEM/20_FRM_OUT.pm line 50, <> line 34.
BEGIN failed--compilation aborted at ./FHEM/20_FRM_OUT.pm line 50, <> line 34.

2018.11.18 17:07:53 0: syntax error at FHEM/AttrTemplate.pm line 27, near "continue"
Compilation failed in require at FHEM/SetExtensions.pm line 7, <> line 34.
BEGIN failed--compilation aborted at FHEM/SetExtensions.pm line 7, <> line 34.
Compilation failed in require at ./FHEM/20_FRM_OUT.pm line 50, <> line 34.
BEGIN failed--compilation aborted at ./FHEM/20_FRM_OUT.pm line 50, <> line 34.

2018.11.18 17:07:53 1: reload: Error:Modul 20_FRM_OUT deactivated:
Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/20_FRM_OUT.pm line 50, <> line 44.
BEGIN failed--compilation aborted at ./FHEM/20_FRM_OUT.pm line 50, <> line 44.

2018.11.18 17:07:53 0: Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/20_FRM_OUT.pm line 50, <> line 44.
BEGIN failed--compilation aborted at ./FHEM/20_FRM_OUT.pm line 50, <> line 44.

2018.11.18 17:07:53 1: reload: Error:Modul 20_FRM_OUT deactivated:
Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/20_FRM_OUT.pm line 50, <> line 54.
BEGIN failed--compilation aborted at ./FHEM/20_FRM_OUT.pm line 50, <> line 54.

2018.11.18 17:07:53 0: Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/20_FRM_OUT.pm line 50, <> line 54.
BEGIN failed--compilation aborted at ./FHEM/20_FRM_OUT.pm line 50, <> line 54.

2018.11.18 17:07:53 1: reload: Error:Modul 20_FRM_OUT deactivated:
Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/20_FRM_OUT.pm line 50, <> line 62.
BEGIN failed--compilation aborted at ./FHEM/20_FRM_OUT.pm line 50, <> line 62.

2018.11.18 17:07:53 0: Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/20_FRM_OUT.pm line 50, <> line 62.
BEGIN failed--compilation aborted at ./FHEM/20_FRM_OUT.pm line 50, <> line 62.

2018.11.18 17:07:53 1: Including /opt/fhem/FHEM/dashboard_00.cfg
2018.11.18 17:07:53 1: Including /opt/fhem/FHEM/Web_00.cfg
2018.11.18 17:07:53 1: Including /opt/fhem/FHEM/IPCam.cfg
2018.11.18 17:07:53 1: Including /opt/fhem/FHEM/RC.cfg
2018.11.18 17:07:53 1: Including /opt/fhem/FHEM/NetIO230B.cfg
2018.11.18 17:07:53 1: reload: Error:Modul 24_NETIO230 deactivated:
Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/24_NETIO230.pm line 44, <> line 34.
BEGIN failed--compilation aborted at ./FHEM/24_NETIO230.pm line 44, <> line 34.

2018.11.18 17:07:53 0: Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/24_NETIO230.pm line 44, <> line 34.
BEGIN failed--compilation aborted at ./FHEM/24_NETIO230.pm line 44, <> line 34.

2018.11.18 17:07:53 1: reload: Error:Modul 24_NETIO230 deactivated:
Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/24_NETIO230.pm line 44, <> line 38.
BEGIN failed--compilation aborted at ./FHEM/24_NETIO230.pm line 44, <> line 38.

2018.11.18 17:07:53 0: Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/24_NETIO230.pm line 44, <> line 38.
BEGIN failed--compilation aborted at ./FHEM/24_NETIO230.pm line 44, <> line 38.

2018.11.18 17:07:53 1: reload: Error:Modul 24_NETIO230 deactivated:
Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/24_NETIO230.pm line 44, <> line 42.
BEGIN failed--compilation aborted at ./FHEM/24_NETIO230.pm line 44, <> line 42.

2018.11.18 17:07:53 0: Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/24_NETIO230.pm line 44, <> line 42.
BEGIN failed--compilation aborted at ./FHEM/24_NETIO230.pm line 44, <> line 42.

2018.11.18 17:07:53 1: reload: Error:Modul 24_NETIO230 deactivated:
Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/24_NETIO230.pm line 44, <> line 46.
BEGIN failed--compilation aborted at ./FHEM/24_NETIO230.pm line 44, <> line 46.

2018.11.18 17:07:53 0: Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/24_NETIO230.pm line 44, <> line 46.
BEGIN failed--compilation aborted at ./FHEM/24_NETIO230.pm line 44, <> line 46.

2018.11.18 17:07:53 1: Including /opt/fhem/FHEM/Musik.cfg
2018.11.18 17:07:53 1: Including /opt/fhem/FHEM/DS18B20_EMU_HI_28_A2D984001677_00.cfg
2018.11.18 17:08:01 3: OWTHERM:  Device HI_28_A2D984001677 defined.
2018.11.18 17:08:01 1: Including /opt/fhem/FHEM/DS18B20_EMU_LI_28_A3D984001605_00.cfg
2018.11.18 17:08:01 3: OWTHERM:  Device LI_28_A3D984001605 defined.
2018.11.18 17:08:01 1: Including /opt/fhem/FHEM/DS2438_EMU_26_A3D984001605_00.cfg
2018.11.18 17:08:09 3: OWMULTI:  Device FI_26_A3D984001605 defined.
2018.11.18 17:08:09 1: Including /opt/fhem/FHEM/DS18B20_TA_28_736020050000_00.cfg
2018.11.18 17:08:09 3: OWTHERM:  Device TA_28_736020050000 defined.
2018.11.18 17:08:09 1: Including /opt/fhem/FHEM/DS18B20_TA_28_FF313C4E0400_00.cfg
2018.11.18 17:08:09 3: OWTHERM:  Device TA_28_FF313C4E0400 defined.
2018.11.18 17:08:09 1: Including /opt/fhem/FHEM/DS2438_EMU_26_A2D984000007_00.cfg
2018.11.18 17:08:09 3: OWMULTI:  Device FA_26_A2D984000007 defined.
2018.11.18 17:08:09 1: Including /opt/fhem/FHEM/Luftfeuchtigkeit.cfg
2018.11.18 17:08:09 1: Including /opt/fhem/FHEM/Keller_Heizung.cfg
2018.11.18 17:08:09 3: OWTHERM:  Device KH_28_FF8E8C811603 defined.
2018.11.18 17:08:09 3: OWTHERM:  Device KH_28_FF5A50811605 defined.
2018.11.18 17:08:09 3: OWTHERM:  Device KH_28_FF976C811605 defined.
2018.11.18 17:08:09 3: OWTHERM:  Device KH_28_FFA45D811604 defined.
2018.11.18 17:08:09 3: OWTHERM:  Device KH_28_FF715C811603 defined.
2018.11.18 17:08:09 1: Including /opt/fhem/FHEM/NAFT_VOC.002.cfg
2018.11.18 17:08:09 3: OWMULTI:  Device NAFT.002 defined.
2018.11.18 17:08:09 3: OWTHERM:  Device NAVOC.002 defined.
2018.11.18 17:08:09 1: Including /opt/fhem/FHEM/TelegramBot.cfg
2018.11.18 17:08:10 3: TelegramBot_Define myfhemBot: called
2018.11.18 17:08:10 1: Including /opt/fhem/FHEM/Telegram_Ereignisse.cfg
2018.11.18 17:08:10 1: reload: Error:Modul 98_dummy deactivated:
Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/98_dummy.pm line 7, <> line 227.
BEGIN failed--compilation aborted at ./FHEM/98_dummy.pm line 7, <> line 227.

2018.11.18 17:08:10 0: Attempt to reload SetExtensions.pm aborted.
Compilation failed in require at ./FHEM/98_dummy.pm line 7, <> line 227.
BEGIN failed--compilation aborted at ./FHEM/98_dummy.pm line 7, <> line 227.

2018.11.18 17:08:10 2: LuefterAn: Unknown actor device Luefter specified
2018.11.18 17:08:10 1: Including /opt/fhem/FHEM/PostMe_TG.cfg
2018.11.18 17:08:10 1: PERL WARNING: Scalar value @args[0] better written as $args[0] at ./FHEM/95_PostMe.pm line 1025, <> line 20.
2018.11.18 17:08:10 1: PERL WARNING: Scalar value @args[0] better written as $args[0] at ./FHEM/95_PostMe.pm line 1084, <> line 20.
2018.11.18 17:08:10 1: Including ./log/fhem.save
2018.11.18 17:08:10 1: configfile: Cannot load module FRM_OUT
Cannot load module FRM_OUT
Cannot load module FRM_OUT
Cannot load module FRM_OUT
Cannot load module NETIO230
Cannot load module NETIO230
Cannot load module NETIO230
Cannot load module NETIO230
Cannot load module dummy

So oder ähnlich steht das in allen drei Log-Dateien.

Beim Ersten Raspberry waren z.B. von drei frisch eingerichteten MQTT2-Devises zwei vorhanden.
Diese zwei standen aber noch in der fhem.cfg.

Nach dem ich die Backup der drei Rechner zurück gespielt hatte, funktioniert wieder alles.

Irgend eine Idee woran das liegt?

Schönen Sonntag

Gerd

[Verschoben]

noansi

Hallo Rudolf,

in AttrTemplate.pm Zeile 27 mag mein perl ebenfalls das "continue" nicht. Mit "next" statt dessen geht es.

Gruß, Ansgar.

betateilchen

Und ich frage mich, warum man in AttrTemplate.pm wieder anfängt, aus FileHandles zu lesen, anstatt eine Datei mit FileRead() zu öffnen und einzulesen...
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

betateilchen

Zitat von: Maista am 18 November 2018, 19:03:31
Hallo Rudolf,

Hoffe das steht hier Richtig.

Laut MAINTAINER.txt gehört dieser Thread eigentlich nach "Automatisierung". Vielleicht kann der Thread-Ersteller ihn dorthin verschieben.
-----------------------
Formuliere die Aufgabe möglichst einfach und
setze die Lösung richtig um - dann wird es auch funktionieren.
-----------------------
Lesen gefährdet die Unwissenheit!

rudolfkoenig

Zitatin AttrTemplate.pm Zeile 27 mag mein perl ebenfalls das "continue" nicht. Mit "next" statt dessen geht es.
Danke, habs gefixt und eingecheckt.
Ich frage mich, wieso das bei dir aufgetreten ist, und bei mir nicht. Habe mit perl 5.18 und 5.28 getestet...


ZitatUnd ich frage mich, warum man in AttrTemplate.pm wieder anfängt, aus FileHandles zu lesen, anstatt eine Datei mit FileRead() zu öffnen und einzulesen...
Weil ich nicht perfekt bin, und denke nicht an alle Kombinationen im Voraus. Aber ich habe ja euch alle :)
Ich baue das aber erst ein, nachdem wir ein "my ($err, @fileList) = DirRead($dir, $regexpFilter);" haben.
Kannst du dafuer bitte die configDb Seite zuliefern?

noansi

Hallo Rudolf,

ZitatIch frage mich, wieso das bei dir aufgetreten ist, und bei mir nicht. Habe mit perl 5.18 und 5.28 getestet...
Bei mir perl v5.14.2 ?!?

Gruß und Danke,

Ansgar.

Maista

Hallo Rudolf,

danke. Schön das es nicht an mir liegt  ;D

Zwei Rechner mit v5.14.2, einer mit v5.24.1 ( allerdings erst nach Update/Upgrade weil ich im Log gesehen hatte das das DWD-Modul ein fehlendes Modul angemeckert hatte).

Brav als gelöst markiert. Soll ich es noch schließen?

Schönen Abend

Gerd

PS: Danke betateilchen für den Hinweis. In der MAINTAINER.txt hätte ich nie rein geschaut ;)
      Man(n) lernt nie aus.

mark79

Zitat von: rudolfkoenig am 18 November 2018, 21:21:19
Ich frage mich, wieso das bei dir aufgetreten ist, und bei mir nicht. Habe mit perl 5.18 und 5.28 getestet...
Ich hatte das Problem auch nicht, nach heutigen Update. Ich stehe mit Gerd in Kontakt und habe abends extra noch mal ein Update nachgeschoben und bei mir ist das nicht aufgetreten. Perl v5.24.1
Rock64 4GB mit Debian Strech, FHEM im LXC, Sonoff Switches/Touch, HM Thermostate, HMUART/Zigbee2MQTT@MapleCUN, ESP RGBWW Wifi Controller, ESP8266 Door Sensor/Briefkastenwächter, BT CSL Stick, BT iTags, Alexa, FireTV, RPi2 mit Kodi, Xiaomi Vacuum v1/Smarthome Komponenten