Hallo zusammen,
ich hab ein großes Problem, beim ausprobieren vom ASC-Modul in Verbindung mit dem ROLLO-Modul
ist mein System abgestürzt, ich komme nicht mehr auf die Webseite.
Dachte dann könnte ich ja auch schnell ein updated von Fhem machen, den Ordner /opt/fhem auf Festplatte gesichert. Dann eine neu Installation gestartet, die leider mit einer Fehlermeldung endet.
Job for fhem.service failed because the control process exited with error code.
See "systemctl status fhem.service" and "journalctl -xe" for details.
dpkg: error processing package fhem (--install):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
fhem
danach kontrolliert
sudo systemctl status fhem.service
● fhem.service - FHEM Home Automation
Loaded: loaded (/etc/systemd/system/fhem.service; enabled; vendor preset: enabled)
Active: failed (Result: exit-code) since Wed 2019-05-22 11:05:13 CEST; 1min 7s ago
Process: 3851 ExecStart=/usr/bin/perl fhem.pl fhem.cfg (code=exited, status=2)
CPU: 687ms
May 22 11:05:12 raspberrypi systemd[1]: fhem.service: Unit entered failed state.
May 22 11:05:12 raspberrypi systemd[1]: fhem.service: Failed with result 'exit-code'.
May 22 11:05:13 raspberrypi systemd[1]: fhem.service: Service hold-off time over, scheduling restart
May 22 11:05:13 raspberrypi systemd[1]: Stopped FHEM Home Automation.
May 22 11:05:13 raspberrypi systemd[1]: fhem.service: Start request repeated too quickly.
May 22 11:05:13 raspberrypi systemd[1]: Failed to start FHEM Home Automation.
May 22 11:05:13 raspberrypi systemd[1]: fhem.service: Unit entered failed state.
May 22 11:05:13 raspberrypi systemd[1]: fhem.service: Failed with result 'exit-code'.
Komme jetzt nicht mehr weiter, hoffe auf schnelle Hilfe.
Das ganze läuft auf einem Rasberry mit Debian 9.9
Viele Grüße und Danke
Dieter
Wenn das Paket nicht (vollständig) installiert ist, kann es nicht laufen...
Reparieren kann man das ggf. auf unterschiedliche Weise, ich würde mal sehen, ob " sudo apt-get install -f" schon hilft.
Wenn nicht: Die Installation für Linux-Neulinge gelingt am einfachsten mit der "Easy-Way"-Installation unter debian.fhem.de (bitte genau das machen, was da steht, nichts verschlimmbessern!).
Erst wenn die Installation sauber abgeschlossen ist, kann es weitergehen!
@Beta-User
Danke für die schnelle Hilfe, bin wie auf der "Easy-Way"-Installation vorgegangen,
leider keinen Erfolg. Die selbe Fehlermeldung wieder.
Job for fhem.service failed because the control process exited with error code.
See "systemctl status fhem.service" and "journalctl -xe" for details.
dpkg: error processing package fhem (--install):
subprocess installed post-installation script returned error exit status 1
Errors were encountered while processing:
fhem
Könnte es daran liegen das ich mein Betriebssystem auf einem USB-Stick habe?
Hmmm,
an sich würde ich eher nicht den USB-Stick verantwortlich machen wollen; eigentlich sollte sowas gehen, aber ich bin schon eine ganze Zeit aus Raspbian@Pi raus und hatte nie einen USB-Stick als Bootmedium da dran.
Das -f hattest du vorher getestet?
ZitatKönnte es daran liegen das ich mein Betriebssystem auf einem USB-Stick habe?
Glaub ich auch nicht. Hatte das über 2 Jahre so am Start.
ZitatSee "systemctl status fhem.service" and "journalctl -xe" for details.
Hast du denn mal im Syslog nachgesehen? Da steht evtl. noch mehr drin...
VG Sebastian
Hab in der zwischen Zeit den Raspberry neu aufgesetzt und Fhem nach der "Easy-Way"-Installation installiert, läuft
pi@Fhem-Smarthome:~ $ sudo systemctl status fhem.service
● fhem.service - FHEM Home Automation
Loaded: loaded (/etc/systemd/system/fhem.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2019-05-22 14:41:43 CEST; 5min ago
Process: 522 ExecStart=/usr/bin/perl fhem.pl fhem.cfg (code=exited, status=0/SUCCESS)
Main PID: 538 (perl)
CGroup: /system.slice/fhem.service
└─538 /usr/bin/perl fhem.pl fhem.cfg
Mai 22 14:41:42 Fhem-Smarthome systemd[1]: Starting FHEM Home Automation...
Mai 22 14:41:43 Fhem-Smarthome systemd[1]: Started FHEM Home Automation.
komme aber immer noch nicht auf die Weboberfläche.
>:( blöd das Problem sitzt bestimmt vor dem Gerät,
Grundsätzlich immer: Was steht im log?
Das hier kennst du? https://wiki.fhem.de/wiki/FHEM_startet_nicht_-_Tipps_zur_Fehlersuche (https://wiki.fhem.de/wiki/FHEM_startet_nicht_-_Tipps_zur_Fehlersuche?)
Ansonsten: Gleiches Netz? (nein => allowed)
Also im Log:
2019.05.22 13:34:53 1: Including fhem.cfg
2019.05.22 13:34:54 3: WEB: port 8083 opened
2019.05.22 13:34:55 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2019.05.22 13:34:55 1: usb create starting
2019.05.22 13:34:55 3: Probing ZWDongle device /dev/serial0
2019.05.22 13:34:55 1: ZWDongle: Can't open /dev/serial0: Permission denied
2019.05.22 13:34:56 3: Probing CUL device /dev/ttyAMA0
2019.05.22 13:34:56 1: CUL: Can't open /dev/ttyAMA0: Permission denied
2019.05.22 13:34:56 3: Probing TCM_ESP3 device /dev/ttyUSB0
2019.05.22 13:34:56 3: Probing TCM_ESP2 device /dev/ttyUSB0
2019.05.22 13:34:56 3: Probing FHZ device /dev/ttyUSB0
2019.05.22 13:34:56 3: Probing TRX device /dev/ttyUSB0
2019.05.22 13:34:56 3: Probing ZWDongle device /dev/ttyUSB0
2019.05.22 13:34:57 3: Probing SIGNALDuino device /dev/ttyUSB0
2019.05.22 13:34:57 3: Probing MYSENSORS device /dev/ttyUSB0
2019.05.22 13:34:57 3: Probing ArduCounter device /dev/ttyUSB0
2019.05.22 13:34:57 3: Probing ElsnerWS device /dev/ttyUSB0
2019.05.22 13:34:58 3: Probing FRM device /dev/ttyUSB0
2019.05.22 13:35:03 3: Probing TCM_ESP3 device /dev/ttyUSB1
2019.05.22 13:35:03 3: Probing TCM_ESP2 device /dev/ttyUSB1
2019.05.22 13:35:04 3: Probing FHZ device /dev/ttyUSB1
2019.05.22 13:35:04 3: Probing TRX device /dev/ttyUSB1
2019.05.22 13:35:04 3: Probing ZWDongle device /dev/ttyUSB1
2019.05.22 13:35:04 3: Probing SIGNALDuino device /dev/ttyUSB1
2019.05.22 13:35:05 3: Probing MYSENSORS device /dev/ttyUSB1
2019.05.22 13:35:05 3: Probing ArduCounter device /dev/ttyUSB1
2019.05.22 13:35:05 3: Probing ElsnerWS device /dev/ttyUSB1
2019.05.22 13:35:06 3: Probing FRM device /dev/ttyUSB1
2019.05.22 13:35:11 1: usb create end
2019.05.22 13:35:11 0: Featurelevel: 5.9
2019.05.22 13:35:11 0: Server started with 6 defined entities (fhem.pl:19435/2019-05-21 perl:5.024001 os:linux user:fhem pid:5396)
2019.05.22 14:19:17 0: Server shutdown
2019.05.22 14:19:27 1: Including fhem.cfg
2019.05.22 14:19:28 3: WEB: port 8083 opened
2019.05.22 14:19:29 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2019.05.22 14:19:29 1: Including ./log/fhem.save
2019.05.22 14:19:29 1: usb create starting
2019.05.22 14:19:29 3: Probing ZWDongle device /dev/serial0
2019.05.22 14:19:30 3: Probing CUL device /dev/ttyAMA0
2019.05.22 14:19:30 3: Probing TCM_ESP3 device /dev/ttyAMA0
2019.05.22 14:19:30 3: Probing ZWDongle device /dev/ttyAMA0
2019.05.22 14:19:30 3: Probing SIGNALDuino device /dev/ttyAMA0
2019.05.22 14:19:30 3: Probing MYSENSORS device /dev/ttyAMA0
2019.05.22 14:19:30 3: Probing ArduCounter device /dev/ttyAMA0
2019.05.22 14:19:31 3: Probing ElsnerWS device /dev/ttyAMA0
2019.05.22 14:41:43 1: Including fhem.cfg
2019.05.22 14:41:44 3: WEB: port 8083 opened
2019.05.22 14:41:44 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2019.05.22 14:41:44 1: Including ./log/fhem.save
2019.05.22 14:41:44 1: usb create starting
2019.05.22 14:41:45 3: Probing ZWDongle device /dev/serial0
2019.05.22 14:41:45 3: Probing CUL device /dev/ttyAMA0
2019.05.22 14:41:45 3: Probing TCM_ESP3 device /dev/ttyAMA0
2019.05.22 14:41:45 3: Probing ZWDongle device /dev/ttyAMA0
2019.05.22 14:41:45 3: Probing SIGNALDuino device /dev/ttyAMA0
2019.05.22 14:41:46 3: Probing MYSENSORS device /dev/ttyAMA0
2019.05.22 14:41:46 3: Probing ArduCounter device /dev/ttyAMA0
2019.05.22 14:41:46 3: Probing ElsnerWS device /dev/ttyAMA0
die Dateirechte:
$ ls -la /opt/fhem/
insgesamt 340
drwxr-xr-x 9 fhem dialout 4096 Mai 22 14:22 .
drwxr-xr-x 4 root root 4096 Mai 22 13:34 ..
-rw-r--r-- 1 fhem dialout 39782 Mai 22 07:57 configDB.pm
drwxr-xr-x 44 fhem dialout 4096 Mai 22 13:34 contrib
drwxr-xr-x 3 fhem dialout 4096 Mai 22 13:34 demolog
drwxr-xr-x 4 fhem dialout 4096 Mai 22 13:34 docs
drwxr-xr-x 6 fhem dialout 32768 Mai 22 13:34 FHEM
-rw-r--r-- 1 fhem dialout 516 Mai 22 07:57 fhem.cfg
-rw-r--r-- 1 fhem dialout 25539 Mai 22 07:57 fhem.cfg.demo
-rwxr-xr-x 1 fhem dialout 158493 Mai 22 07:57 fhem.pl
drwxr-xr-x 2 fhem dialout 4096 Mai 22 14:22 .homebridge
drwxr-xr-x 2 fhem dialout 4096 Mai 22 14:19 log
-rw-r--r-- 1 fhem dialout 41194 Mai 22 07:57 MAINTAINER.txt
-rw-r--r-- 1 fhem dialout 935 Mai 22 07:57 README_DEMO.txt
drwxr-xr-x 8 fhem dialout 4096 Mai 22 13:34 www
hier wird Angezeigt das der Serverport belegt ist, wie bekomme ich den geändert?
/opt/fhem $ perl fhem.pl -d fhem.cfg
2019.05.22 15:17:36 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2019.05.22 15:17:36 5: Cmd: >attr global modpath .<
2019.05.22 15:17:36 5: Loading ./FHEM/99_SUNRISE_EL.pm
2019.05.22 15:17:36 5: Loading ./FHEM/99_Utils.pm
2019.05.22 15:17:36 5: Cmd: >attr global verbose 3<
2019.05.22 15:17:36 5: Cmd: >attr global statefile ./log/fhem.save<
2019.05.22 15:17:36 5: Initializing Type Library:
2019.05.22 15:17:36 1: Including fhem.cfg
2019.05.22 15:17:36 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2019.05.22 15:17:36 5: Cmd: >attr global modpath .<
2019.05.22 15:17:36 5: Cmd: >attr global verbose 3<
2019.05.22 15:17:36 5: Cmd: >attr global statefile ./log/fhem.save<
2019.05.22 15:17:36 5: Cmd: >define WEB FHEMWEB 8083 global<
2019.05.22 15:17:36 5: Loading ./FHEM/01_FHEMWEB.pm
2019.05.22 15:17:36 1: WEB: Can't open server port at 8083: Address already in use. Exiting.
Du hast vergessen FHEM vorher zu beenden. Beende FHEM und dann führe diesen Befehl noch einmal aus.
jetzt kommt aber eine lange Liste
perl fhem.pl -d fhem.cfg
2019.05.22 15:30:12 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2019.05.22 15:30:12 5: Cmd: >attr global modpath .<
2019.05.22 15:30:12 5: Loading ./FHEM/99_SUNRISE_EL.pm
2019.05.22 15:30:12 5: Loading ./FHEM/99_Utils.pm
2019.05.22 15:30:12 5: Cmd: >attr global verbose 3<
2019.05.22 15:30:12 5: Cmd: >attr global statefile ./log/fhem.save<
2019.05.22 15:30:12 5: Initializing Type Library:
2019.05.22 15:30:12 1: Including fhem.cfg
2019.05.22 15:30:12 5: Cmd: >attr global logfile ./log/fhem-%Y-%m.log<
2019.05.22 15:30:12 5: Cmd: >attr global modpath .<
2019.05.22 15:30:12 5: Cmd: >attr global verbose 3<
2019.05.22 15:30:12 5: Cmd: >attr global statefile ./log/fhem.save<
2019.05.22 15:30:12 5: Cmd: >define WEB FHEMWEB 8083 global<
2019.05.22 15:30:12 5: Loading ./FHEM/01_FHEMWEB.pm
2019.05.22 15:30:13 3: WEB: port 8083 opened
2019.05.22 15:30:13 5: Cmd: >define Logfile FileLog ./log/fhem-%Y-%m.log fakelog<
2019.05.22 15:30:13 5: Loading ./FHEM/92_FileLog.pm
2019.05.22 15:30:13 1: define Logfile FileLog ./log/fhem-%Y-%m.log fakelog: Can't open ./log/fhem-2019-05.log: Permission denied
2019.05.22 15:30:13 5: fhem.cfg line 9 returned >Can't open ./log/fhem-2019-05.log: Permission denied<
2019.05.22 15:30:13 5: Cmd: >define autocreate autocreate<
2019.05.22 15:30:13 5: Loading ./FHEM/98_autocreate.pm
2019.05.22 15:30:13 5: Cmd: >attr autocreate filelog ./log/%NAME-%Y.log<
2019.05.22 15:30:13 5: Cmd: >define eventTypes eventTypes ./log/eventTypes.txt<
2019.05.22 15:30:13 5: Loading ./FHEM/91_eventTypes.pm
2019.05.22 15:30:13 2: eventTypes: loaded 0 events from ./log/eventTypes.txt
2019.05.22 15:30:13 5: Cmd: >define initialUsbCheck notify global:INITIALIZED usb create<
2019.05.22 15:30:13 5: Loading ./FHEM/91_notify.pm
2019.05.22 15:30:13 1: Including ./log/fhem.save
2019.05.22 15:30:13 5: Cmd: >setstate Logfile active<
2019.05.22 15:30:13 5: ./log/fhem.save line 2 returned >Please define Logfile first<
2019.05.22 15:30:13 5: Cmd: >setstate WEB 2019-05-22 13:34:54 state Initialized<
2019.05.22 15:30:13 5: Cmd: >setstate autocreate active<
2019.05.22 15:30:13 5: Cmd: >setstate eventTypes active<
2019.05.22 15:30:13 5: Cmd: >setstate global no definition<
2019.05.22 15:30:13 5: Cmd: >setstate initialUsbCheck 2019-05-22 13:34:55<
2019.05.22 15:30:13 5: Cmd: >setstate initialUsbCheck 2019-05-22 13:34:55 state active<
2019.05.22 15:30:13 1: configfile: Can't open ./log/fhem-2019-05.log: Permission denied
./log/fhem.save: Please define Logfile first
2019.05.22 15:30:13 5: Starting notify loop for global, 1 event(s), first is INITIALIZED
2019.05.22 15:30:13 5: createNotifyHash
2019.05.22 15:30:13 5: Triggering initialUsbCheck
2019.05.22 15:30:13 4: initialUsbCheck exec usb create
2019.05.22 15:30:13 5: Cmd: >usb create<
2019.05.22 15:30:13 1: usb create starting
2019.05.22 15:30:13 3: Probing ZWDongle device /dev/serial0
2019.05.22 15:30:13 1: ZWDongle: Can't open /dev/serial0: Permission denied
2019.05.22 15:30:13 4: cannot open the device
2019.05.22 15:30:14 3: Probing CUL device /dev/ttyAMA0
2019.05.22 15:30:14 1: CUL: Can't open /dev/ttyAMA0: Permission denied
2019.05.22 15:30:14 4: cannot open the device
2019.05.22 15:30:14 3: Probing TCM_ESP3 device /dev/ttyUSB0
2019.05.22 15:30:14 5: SW: 5500010005700838
2019.05.22 15:30:14 5: answer:
2019.05.22 15:30:14 4: wrong answer
2019.05.22 15:30:14 3: Probing TCM_ESP2 device /dev/ttyUSB0
2019.05.22 15:30:14 5: SW: a55aab5800000000000000000003
2019.05.22 15:30:14 5: answer:
2019.05.22 15:30:14 4: wrong answer
2019.05.22 15:30:14 3: Probing FHZ device /dev/ttyUSB0
2019.05.22 15:30:14 5: SW: 8105044fc90185
2019.05.22 15:30:14 5: answer:
2019.05.22 15:30:14 4: wrong answer
2019.05.22 15:30:14 3: Probing TRX device /dev/ttyUSB0
2019.05.22 15:30:14 5: SW: 0d00000000000000000000000000
2019.05.22 15:30:14 5: SW: 0d00000102000000000000000000
2019.05.22 15:30:15 5: answer:
2019.05.22 15:30:15 4: wrong answer
2019.05.22 15:30:15 3: Probing ZWDongle device /dev/ttyUSB0
2019.05.22 15:30:15 5: SW: 01030020dc06
2019.05.22 15:30:15 5: answer:
2019.05.22 15:30:15 4: wrong answer
2019.05.22 15:30:15 3: Probing SIGNALDuino device /dev/ttyUSB0
2019.05.22 15:30:15 5: SW: 0a
2019.05.22 15:30:15 5: SW: 560a
2019.05.22 15:30:15 5: answer:
2019.05.22 15:30:15 4: wrong answer
2019.05.22 15:30:15 3: Probing MYSENSORS device /dev/ttyUSB0
2019.05.22 15:30:15 5: SW: 0a
2019.05.22 15:30:15 5: SW: 303b3235353b333b303b31380a
2019.05.22 15:30:15 5: answer:
2019.05.22 15:30:15 4: wrong answer
2019.05.22 15:30:15 3: Probing ArduCounter device /dev/ttyUSB0
2019.05.22 15:30:15 5: SW: 0a
2019.05.22 15:30:15 5: SW: 680a
2019.05.22 15:30:15 5: answer:
2019.05.22 15:30:15 4: wrong answer
2019.05.22 15:30:15 3: Probing ElsnerWS device /dev/ttyUSB0
2019.05.22 15:30:16 5: answer:
2019.05.22 15:30:16 4: wrong answer
2019.05.22 15:30:16 3: Probing FRM device /dev/ttyUSB0
2019.05.22 15:30:16 5: SW: f9
2019.05.22 15:30:21 5: SW: f079f7
2019.05.22 15:30:21 5: answer:
2019.05.22 15:30:21 4: wrong answer
2019.05.22 15:30:21 3: Probing TCM_ESP3 device /dev/ttyUSB1
2019.05.22 15:30:21 5: SW: 5500010005700838
2019.05.22 15:30:22 5: answer:
2019.05.22 15:30:22 4: wrong answer
2019.05.22 15:30:22 3: Probing TCM_ESP2 device /dev/ttyUSB1
2019.05.22 15:30:22 5: SW: a55aab5800000000000000000003
2019.05.22 15:30:22 5: answer:
2019.05.22 15:30:22 4: wrong answer
2019.05.22 15:30:22 3: Probing FHZ device /dev/ttyUSB1
2019.05.22 15:30:22 5: SW: 8105044fc90185
2019.05.22 15:30:22 5: answer:
2019.05.22 15:30:22 4: wrong answer
2019.05.22 15:30:22 3: Probing TRX device /dev/ttyUSB1
2019.05.22 15:30:22 5: SW: 0d00000000000000000000000000
2019.05.22 15:30:22 5: SW: 0d00000102000000000000000000
2019.05.22 15:30:22 5: answer:
2019.05.22 15:30:22 4: wrong answer
2019.05.22 15:30:22 3: Probing ZWDongle device /dev/ttyUSB1
2019.05.22 15:30:22 5: SW: 01030020dc06
2019.05.22 15:30:23 5: answer:
2019.05.22 15:30:23 4: wrong answer
2019.05.22 15:30:23 3: Probing SIGNALDuino device /dev/ttyUSB1
2019.05.22 15:30:23 5: SW: 0a
2019.05.22 15:30:23 5: SW: 560a
2019.05.22 15:30:23 5: answer:
2019.05.22 15:30:23 4: wrong answer
2019.05.22 15:30:23 3: Probing MYSENSORS device /dev/ttyUSB1
2019.05.22 15:30:23 5: SW: 0a
2019.05.22 15:30:23 5: SW: 303b3235353b333b303b31380a
2019.05.22 15:30:23 5: answer:
2019.05.22 15:30:23 4: wrong answer
2019.05.22 15:30:23 3: Probing ArduCounter device /dev/ttyUSB1
2019.05.22 15:30:23 5: SW: 0a
2019.05.22 15:30:23 5: SW: 680a
2019.05.22 15:30:23 5: answer:
2019.05.22 15:30:23 4: wrong answer
2019.05.22 15:30:23 3: Probing ElsnerWS device /dev/ttyUSB1
2019.05.22 15:30:24 5: answer:
2019.05.22 15:30:24 4: wrong answer
2019.05.22 15:30:24 3: Probing FRM device /dev/ttyUSB1
2019.05.22 15:30:24 5: SW: f9
2019.05.22 15:30:29 5: SW: f079f7
2019.05.22 15:30:29 5: answer:
2019.05.22 15:30:29 4: wrong answer
2019.05.22 15:30:29 1: usb create end
2019.05.22 15:30:29 5: End notify loop for global
2019.05.22 15:30:29 0: Featurelevel: 5.9
2019.05.22 15:30:29 0: Server started with 5 defined entities (fhem.pl:19435/2019-05-21 perl:5.024001 os:linux user:pi pid:1221)
ich verstehe es nicht, komme einfach nicht dahinter, >:( :(
Schalte initialUsbCheck ab (oder lösche es.) (Jetzt sollte web ja verfügbar sein; wenn nicht ausnahmsweise: cfg-Editieren bzw. Otto hatte irgendwo einen Vorschlag, wie es ohne geht...)
Das dauert teilweise sehr lange, bis der durch ist!
configfile: Can't open ./log/fhem-2019-05.log: Permission denied
gehe mal bitte nach /opt/
und mache dann ein
chown -R fhem: fhem/
yeah es scheint zuklappen, komme wieder auf die IP:8083,
Hurra vielen vielen Dank an Alle die geholfen haben,
jetzt gehts wieder ans einrichten.
Sollte man alles neu Anlegen oder könnte mann auch eine gesicherte fhem.cfg wieder zurück spielen.
Habe noch eine aus der Zeit bevor ich heute morgen angefangen habe zu ändern.
Nochmals Danke
es sollte möglich sein die cfg ein zu spielen. dir fehlt natürlich die save aber schau einfach mal.
Hallo Zusammen,
kurze Rückmeldung, mit der altem fhem.cfg hat es doch nicht geklappt, hab alles wieder neu eingerichtet
war so gesehen auch nicht schlecht, wurde mal alles aufgeräumt.
Hab jetzt einiges Ausgelagert aus der cfg und nutze jetzt "Include" .
Nochmal Danke für Eure Hilfe