GELÖST - Problem im Linux-Betrieb mit der log-Datei

Begonnen von Bronze, 13 April 2020, 08:02:11

Vorheriges Thema - Nächstes Thema

Bronze

Rechner neu gestartet und Fhem auch, FHEM läuft nicht, letzter Eintrag im FHEM-log um 12:14:

thomas@thomas-HP-Laptop-15-db0xxx:~$ sudo systemctl start fhem
[sudo] Passwort für thomas:         
Job for fhem.service failed because the control process exited with error code.
See "systemctl status fhem.service" and "journalctl -xe" for details.
thomas@thomas-HP-Laptop-15-db0xxx:~$ sudo systemctl status fhem.service
● fhem.service - FHEM Home Automation
   Loaded: loaded (/etc/systemd/system/fhem.service; enabled; vendor preset: ena
   Active: failed (Result: exit-code) since Mon 2020-04-13 16:42:39 CEST; 35s ag
  Process: 1824 ExecStart=/usr/bin/perl fhem.pl fhem.cfg (code=exited, status=13

Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: Failed to start FHEM Home
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: fhem.service: Service hol
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: fhem.service: Scheduled r
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: Stopped FHEM Home Automat
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: fhem.service: Start reque
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: fhem.service: Failed with
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: Failed to start FHEM Home

thomas@thomas-HP-Laptop-15-db0xxx:~$ sudo journalctl -xe
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit knxd.service has finished shutting down.
Apr 13 16:43:47 thomas-HP-Laptop-15-db0xxx systemd[1]: Starting KNX Daemon...
-- Subject: Unit knxd.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit knxd.service has begun starting up.
Apr 13 16:43:47 thomas-HP-Laptop-15-db0xxx knxd[1844]: F00000105: [13:B.ipt] Lin
Apr 13 16:43:47 thomas-HP-Laptop-15-db0xxx systemd[1]: Started KNX Daemon.
-- Subject: Unit knxd.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit knxd.service has finished starting up.
--
-- The start-up result is RESULT.
Apr 13 16:43:47 thomas-HP-Laptop-15-db0xxx systemd[1]: knxd.service: Main proces
Apr 13 16:43:47 thomas-HP-Laptop-15-db0xxx systemd[1]: knxd.service: Failed with
Apr 13 16:43:54 thomas-HP-Laptop-15-db0xxx sudo[1846]:   thomas : TTY=pts/0 ; PW
Apr 13 16:43:54 thomas-HP-Laptop-15-db0xxx sudo[1846]: pam_unix(sudo:session): s
lines 2698-2720/2720 (END)


~$ sudo tail -f /opt/fhem/log/fhem-2020-04.log
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload4: code: 7113 : Temperatur_M2_S3 = 999.9 °C
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload3: code: 7113 : Temperatur_M2_S4 = 270f
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload4: code: 7113 : Temperatur_M2_S4 = 999.9 °C
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload3: code: 7113 : Temperatur_M2_S5 = 270f
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload4: code: 7113 : Temperatur_M2_S5 = 999.9 °C
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload3: code: 7113 : Temperatur_M2_S6 = 270f
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload4: code: 7113 : Temperatur_M2_S6 = 999.9 °C
2020.04.13 12:14:25 4: VBUSDEV_7113 VBUSDEV_ParsePayload5: VBUSDEV_7113 (7113) HASH(0x561253efdb18)
2020.04.13 12:14:25 4: VBUSDEV_7113 VBUSDEV_ParsePayload7: VBUSDEV_7113 (7113) HASH(0x561253efdb18))
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/ { <-- HERE  / at fhem.pl line 4155.

Wernieman

Mach mal Dein "Fenster" größer und Tippe nochmals die Befehle ein. Er schneidet leider die Interessanten Sachen ab.

Zusätzlich: hast Du mal am Controllfile von FHEM geschraubt?
cat /etc/systemd/system/fhem.service
- Bitte um Input für Output
- When there is a Shell, there is a Way
- Wann war Dein letztes Backup?

Wie man Fragen stellt: https://tty1.net/smart-questions_de.html

Beta-User

Ist das 5.30-Perl?Dann wäre das der erste hier gemeldete Absturz WG. nicht escapter Klammer.
Wenn es ein Attribut oder was selber gestrickt es ist, mal nach expandJSON suchen, sonst kann das nur der Maintainer lösen o. ein Perl-Downgrade.
Server: HP-elitedesk@Debian 12, aktuelles FHEM@ConfigDB | CUL_HM (VCCU) | MQTT2: ZigBee2mqtt, MiLight@ESP-GW, BT@OpenMQTTGw | ZWave | SIGNALduino | MapleCUN | RHASSPY
svn: u.a Weekday-&RandomTimer, Twilight,  div. attrTemplate-files, MySensors

Bronze

thomas@thomas-HP-Laptop-15-db0xxx:~$ sudo systemctl status fhem.service
[sudo] Passwort für thomas:         
● fhem.service - FHEM Home Automation
   Loaded: loaded (/etc/systemd/system/fhem.service; enabled; vendor preset: enabled)
   Active: failed (Result: exit-code) since Mon 2020-04-13 16:42:39 CEST; 2h 52min ago
  Process: 1824 ExecStart=/usr/bin/perl fhem.pl fhem.cfg (code=exited, status=13)

Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: Failed to start FHEM Home Automation.
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: fhem.service: Service hold-off time over, scheduling restart.
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: fhem.service: Scheduled restart job, restart counter is at 5.
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: Stopped FHEM Home Automation.
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: fhem.service: Start request repeated too quickly.
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: fhem.service: Failed with result 'exit-code'.
Apr 13 16:42:39 thomas-HP-Laptop-15-db0xxx systemd[1]: Failed to start FHEM Home Automation.
thomas@thomas-HP-Laptop-15-db0xxx:~$ sudo journalctl -xe
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is RESULT.
Apr 13 19:35:04 thomas-HP-Laptop-15-db0xxx nm-dispatcher[9273]: req:1 'dhcp4-change' [enp2s0]: new request (1 scripts)
Apr 13 19:35:04 thomas-HP-Laptop-15-db0xxx nm-dispatcher[9273]: req:1 'dhcp4-change' [enp2s0]: start running ordered scripts...
Apr 13 19:35:04 thomas-HP-Laptop-15-db0xxx dhclient[1849]: bound to 192.168.178.202 -- renewal in 16 seconds.
Apr 13 19:35:14 thomas-HP-Laptop-15-db0xxx sudo[9277]:   thomas : TTY=pts/0 ; PWD=/home/thomas ; USER=root ; COMMAND=/bin/systemctl status fhem.service
Apr 13 19:35:14 thomas-HP-Laptop-15-db0xxx sudo[9277]: pam_unix(sudo:session): session opened for user root by (uid=0)
Apr 13 19:35:14 thomas-HP-Laptop-15-db0xxx sudo[9277]: pam_unix(sudo:session): session closed for user root
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx dhclient[1849]: DHCPREQUEST of 192.168.178.202 on enp2s0 to 192.168.178.40 port 67 (xid=0x75b0a80a)
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx dhclient[1849]: DHCPACK of 192.168.178.202 from 192.168.178.40
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx NetworkManager[731]: <info>  [1586799320.6546] dhcp4 (enp2s0):   address 192.168.178.202
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx NetworkManager[731]: <info>  [1586799320.6547] dhcp4 (enp2s0):   plen 24 (255.255.255.0)
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx NetworkManager[731]: <info>  [1586799320.6547] dhcp4 (enp2s0):   gateway 192.168.178.40
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx NetworkManager[731]: <info>  [1586799320.6547] dhcp4 (enp2s0):   lease time 30
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx NetworkManager[731]: <info>  [1586799320.6548] dhcp4 (enp2s0):   nameserver '192.168.178.40'
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx NetworkManager[731]: <info>  [1586799320.6548] dhcp4 (enp2s0): state changed bound -> bound
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx dbus-daemon[725]: [system] Activating via systemd: service name='org.freedesktop.nm_dispatcher' unit='dbus-org.freedesktop.nm-
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx systemd[1]: Starting Network Manager Script Dispatcher Service...
-- Subject: Unit NetworkManager-dispatcher.service has begun start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager-dispatcher.service has begun starting up.
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx dhclient[1849]: bound to 192.168.178.202 -- renewal in 14 seconds.
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx dbus-daemon[725]: [system] Successfully activated service 'org.freedesktop.nm_dispatcher'
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx systemd[1]: Started Network Manager Script Dispatcher Service.
-- Subject: Unit NetworkManager-dispatcher.service has finished start-up
-- Defined-By: systemd
-- Support: http://www.ubuntu.com/support
--
-- Unit NetworkManager-dispatcher.service has finished starting up.
--
-- The start-up result is RESULT.
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx nm-dispatcher[9284]: req:1 'dhcp4-change' [enp2s0]: new request (1 scripts)
Apr 13 19:35:20 thomas-HP-Laptop-15-db0xxx nm-dispatcher[9284]: req:1 'dhcp4-change' [enp2s0]: start running ordered scripts...
Apr 13 19:35:24 thomas-HP-Laptop-15-db0xxx sudo[9289]:   thomas : TTY=pts/0 ; PWD=/home/thomas ; USER=root ; COMMAND=/bin/journalctl -xe
Apr 13 19:35:24 thomas-HP-Laptop-15-db0xxx sudo[9289]: pam_unix(sudo:session): session opened for user root by (uid=0)
lines 1763-1800/1800 (END)


thomas@thomas-HP-Laptop-15-db0xxx:~$ sudo tail -f /opt/fhem/log/fhem-2020-04.log
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload4: code: 7113 : Temperatur_M2_S3 = 999.9 °C
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload3: code: 7113 : Temperatur_M2_S4 = 270f
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload4: code: 7113 : Temperatur_M2_S4 = 999.9 °C
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload3: code: 7113 : Temperatur_M2_S5 = 270f
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload4: code: 7113 : Temperatur_M2_S5 = 999.9 °C
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload3: code: 7113 : Temperatur_M2_S6 = 270f
2020.04.13 12:14:25 4: VBUSDEV_7113: VBUSDEV_ParsePayload4: code: 7113 : Temperatur_M2_S6 = 999.9 °C
2020.04.13 12:14:25 4: VBUSDEV_7113 VBUSDEV_ParsePayload5: VBUSDEV_7113 (7113) HASH(0x561253efdb18)
2020.04.13 12:14:25 4: VBUSDEV_7113 VBUSDEV_ParsePayload7: VBUSDEV_7113 (7113) HASH(0x561253efdb18))
Unescaped left brace in regex is illegal here in regex; marked by <-- HERE in m/ { <-- HERE  / at fhem.pl line 4155.



Controlfile? Was ist das? fhem.cfg? Nein, bin Anwender, bewege mich auf der Weboberfläche, sonst nichts. Außer den zu groß gewordenen Log-Files kann ich nur von Einrichtungsschwierigkeiten mit dem ASC berichten, sonst nichts AUffälliges. Bisher lagen alle Probleme mit FHEM bei mir.

Bronze

thomas@thomas-HP-Laptop-15-db0xxx:~$ cat /etc/systemd/system/fhem.service
# $Id: fhem.service 16001 2018-01-26 11:54:41Z betateilchen $

[Unit]
Description=FHEM Home Automation
Wants=network.target
After=network.target

[Service]
Type=forking
User=fhem
Group=dialout
WorkingDirectory=/opt/fhem
ExecStart=/usr/bin/perl fhem.pl fhem.cfg
#ExecStart=/usr/bin/perl fhem.pl configDB
Restart=always

[Install]
WantedBy=multi-user.target


Habe nur Userreadings in den Rollläden für position in ASC angelegt, das war die letzte Änderung gestern.

CoolTux

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

Bronze

ZitatIst das 5.30-Perl?Dann wäre das der erste hier gemeldete Absturz WG. nicht escapter Klammer.
Wenn es ein Attribut oder was selber gestrickt es ist, mal nach expandJSON suchen, sonst kann das nur der Maintainer lösen o. ein Perl-Downgrade.

Weiß nicht, habe FHEM mit Perl letzten Juli aufgesetzt, wenn Du mir sagst, wie ich die Perl-Version rauskriege, mache ich das.
Wenn mit Attribut oder Selber Gestricktes erstellte Userreadings für die Rollläden gemeint sein könnte, dann habe ich so was gestern als Letztes gemacht.

Bronze

ZitatHast Du Teamviewer?

Kann ich eben einrichten.
Für Linux Mint nimmt man die Ubuntu-Version, nehme ich an.

CoolTux

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

Bronze

Ist installiert.
Schreibst du mir eine private Nachricht?

CoolTux

Zitat von: Bronze am 13 April 2020, 19:58:26
Ist installiert.
Schreibst du mir eine private Nachricht?

schon erledigt
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

Thomas stellst Du bitte noch auf gelöst.
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

Otto123

Und gebt den Mitlesern bitte noch ein Idee davon was war :)
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz

CoolTux

Perlcode sollte in userreadings und ist in userattr gelandet. Mit { } würde es als RegEx erkannt und es kam eine Fehlermeldung wegen nicht excapter linker Klammer.
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

Otto123

#59
Da verstehe ich dann nicht, das es mitten im Betrieb passiert ist. Wenn ich über die Oberfläche userReadings setze und einen Fehler mache und es kein save gibt - reicht doch ein Neustart  ::) oder gab es eine größeren Zeitraum zwischen Änderung und Absturz?

BTW: Ich hatte mal das hier im Wiki ergänzt.
Wäre hier ev. auch eine Hilfe gewesen: 
- Ich habe einen Fehler gemacht,
- dummerweise save gedrückt und
- FHEM startet nicht mehr.
--> last known good restore :)
Viele Grüße aus Leipzig  ⇉  nächster Stammtisch an der Lindennaundorfer Mühle
RaspberryPi B B+ B2 B3 B3+ ZeroW,HMLAN,HMUART,Homematic,Fritz!Box 7590,WRT3200ACS-OpenWrt,Sonos,VU+,Arduino nano,ESP8266,MQTT,Zigbee,deconz