Hauptmenü

FHEM startet nicht

Begonnen von bastelfeak, 23 Juni 2017, 22:30:52

Vorheriges Thema - Nächstes Thema

bastelfeak

Hallo,
seit gestern Morgen ist mein FHEM nicht mehr erreichbar.
Der Pi ist erreichbar, aber leider lässt sich FHEM nicht starten.

Im Log ist folgendes zu finden:

2017.06.23 22:19:28 1: PERL WARNING: Use of uninitialized value $3 in concatenation (.) or string at fhem.pl line 2579.
2017.06.23 22:19:29 1: PERL WARNING: Smartmatch is experimental at ./FHEM/99_cleanUtils.pm line 25.
2017.06.23 22:19:29 1: PERL WARNING: Smartmatch is experimental at ./FHEM/99_cleanUtils.pm line 125.
2017.06.23 22:19:29 1: Including fhem.cfg
2017.06.23 22:19:29 1: PERL WARNING: Use of uninitialized value $1 in concatenation (.) or string at fhem.pl line 2579, <$fh> line 5.
2017.06.23 22:19:29 1: PERL WARNING: Use of uninitialized value $2 in concatenation (.) or string at fhem.pl line 2579, <$fh> line 5.
2017.06.23 22:19:29 1: PERL WARNING: Use of uninitialized value $3 in concatenation (.) or string at fhem.pl line 2579, <$fh> line 5.
2017.06.23 22:19:29 3: telnetPort: port 7072 opened
2017.06.23 22:19:29 3: WEB: port 8083 opened
2017.06.23 22:19:29 3: WEBphone: port 8084 opened
2017.06.23 22:19:29 3: WEBtablet: port 8085 opened
2017.06.23 22:19:30 2: eventTypes: loaded 3032 events from ./log/eventTypes.txt
2017.06.23 22:19:30 3: myHmUART device closed
2017.06.23 22:19:30 3: Opening myHmUART device /dev/ttyAMA0
2017.06.23 22:19:30 3: Setting myHmUART serial parameters to 115200,8,N,1
2017.06.23 22:19:30 3: myHmUART device opened
Undefined subroutine &main::RESIDENTStk_Define called at fhem.pl line 3412, <$fh> line 1008.


Ich bin leider nur mäßig bewandert im Umgang mit Linux und Fhem und sehr auf eure Hilfe angewiesen. Habt ihr eine Idee?

Viele Grüße
bastelf(r)eak

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

bastelfeak

Nein, leider nichts. Von einem Moment auf den anderen.

amenomade

Prüf mal die Berechtigungen im Verzeichnis /opt/fhem/FHEM, ob die alle auf fhem:dialout sind.
Insbesondere das Modul RESIDENT
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

amenomade

Und setze mal stacktrace auf 1, du wirst sehen welches Modul problematisch ist.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

bastelfeak

Also Residents.pm gehört fhem und dialout an.

Im Log findet sich jetzt folgendes:


2017.06.23 23:52:23 1: PERL WARNING: Use of uninitialized value $3 in concatenation (.) or string at fhem.pl line 2579.
2017.06.23 23:52:24 1: PERL WARNING: Smartmatch is experimental at ./FHEM/99_cleanUtils.pm line 25.
2017.06.23 23:52:24 1: PERL WARNING: Smartmatch is experimental at ./FHEM/99_cleanUtils.pm line 125.
2017.06.23 23:52:24 1: Including fhem.cfg
2017.06.23 23:52:24 1: PERL WARNING: Use of uninitialized value $1 in concatenation (.) or string at fhem.pl line 2579, <$fh> line 5.
2017.06.23 23:52:24 1: stacktrace:
2017.06.23 23:52:24 1:     main::__ANON__                      called by fhem.pl (2579)
2017.06.23 23:52:24 1:     main::GlobalAttr                    called by fhem.pl (3412)
2017.06.23 23:52:24 1:     main::CallFn                        called by fhem.pl (2755)
2017.06.23 23:52:24 1:     main::CommandAttr                   called by fhem.pl (1157)
2017.06.23 23:52:24 1:     main::AnalyzeCommand                called by fhem.pl (1021)
2017.06.23 23:52:24 1:     main::AnalyzeCommandChain           called by fhem.pl (1292)
2017.06.23 23:52:24 1:     main::CommandInclude                called by fhem.pl (528)
2017.06.23 23:52:24 1: PERL WARNING: Use of uninitialized value $2 in concatenation (.) or string at fhem.pl line 2579, <$fh> line 5.
2017.06.23 23:52:24 1: stacktrace:
2017.06.23 23:52:24 1:     main::__ANON__                      called by fhem.pl (2579)
2017.06.23 23:52:24 1:     main::GlobalAttr                    called by fhem.pl (3412)
2017.06.23 23:52:24 1:     main::CallFn                        called by fhem.pl (2755)
2017.06.23 23:52:24 1:     main::CommandAttr                   called by fhem.pl (1157)
2017.06.23 23:52:24 1:     main::AnalyzeCommand                called by fhem.pl (1021)
2017.06.23 23:52:24 1:     main::AnalyzeCommandChain           called by fhem.pl (1292)
2017.06.23 23:52:24 1:     main::CommandInclude                called by fhem.pl (528)
2017.06.23 23:52:24 1: PERL WARNING: Use of uninitialized value $3 in concatenation (.) or string at fhem.pl line 2579, <$fh> line 5.
2017.06.23 23:52:24 1: stacktrace:
2017.06.23 23:52:24 1:     main::__ANON__                      called by fhem.pl (2579)
2017.06.23 23:52:24 1:     main::GlobalAttr                    called by fhem.pl (3412)
2017.06.23 23:52:24 1:     main::CallFn                        called by fhem.pl (2755)
2017.06.23 23:52:24 1:     main::CommandAttr                   called by fhem.pl (1157)
2017.06.23 23:52:24 1:     main::AnalyzeCommand                called by fhem.pl (1021)
2017.06.23 23:52:24 1:     main::AnalyzeCommandChain           called by fhem.pl (1292)
2017.06.23 23:52:24 1:     main::CommandInclude                called by fhem.pl (528)
2017.06.23 23:52:24 3: telnetPort: port 7072 opened
2017.06.23 23:52:24 3: WEB: port 8083 opened
2017.06.23 23:52:24 3: WEBphone: port 8084 opened
2017.06.23 23:52:24 3: WEBtablet: port 8085 opened
2017.06.23 23:52:25 2: eventTypes: loaded 3032 events from ./log/eventTypes.txt
2017.06.23 23:52:25 3: myHmUART device closed
2017.06.23 23:52:25 3: Opening myHmUART device /dev/ttyAMA0
2017.06.23 23:52:25 3: Setting myHmUART serial parameters to 115200,8,N,1
2017.06.23 23:52:25 3: myHmUART device opened
Undefined subroutine &main::RESIDENTStk_Define called at fhem.pl line 3412, <$fh> line 1009.

amenomade

Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

bastelfeak

Das passt auch. Leider läuft es immer noch nicht.

amenomade

Mach mal ein ls -laR /opt/fhem in einem Terminal
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

bastelfeak

Es gehört alles fhem:dialout.

Weil ich es auch bereits im Forum gefunden habe: Die SD Karte ist noch nicht voll beschrieben und hat noch 6,5GB freien Speicher.

Otto123

Hi,

startet fhem den mit der Demo?
perl fhem.pl fhem.cfg.demo
ZitatPrerequisite:
  - perl
  - stop any existing FHEM process first (if started any).

HOWTO:
  Start FHEM with a demo configuration with
    perl fhem.pl fhem.cfg.demo
  (typed in a terminal) and point your browser to http://yourfhemhost:8083
  Use the startfhemDemo skript on the FritzBox.
  If you'd like to see the RSS demo, you have to install the Perl GD library,
  e.g. with:
    sudo apt-get install libgd-gd2-perl
    sudo apt-get install libgd-text-perl

Stopping:
  - type shutdown in the browser command window, followed by RETURN
  or
  - type CTRL-C in the terminal window

This demo:
- it won't overwrite any settings in the productive FHEM installation
- it uses its own log-directory (demolog) and configfile (fhem.cfg.demo)
- it won't start in the background, the FHEM-log is written to the terminal
- it won't touch any home-automation hardware (CUL, ZWawe dongle, etc) attached
  to the host.

Gruß Otto

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

amenomade

mit "ls -laR /opt/fhem" wollte ich nicht nur owner und group sehen, sondern auch die Timestamps der jeweiligen Dateien.
Pi 3B, Alexa, CUL868+Selbstbau 1/2λ-Dipol-Antenne, USB Optolink / Vitotronic, Debmatic und HM / HmIP Komponenten, Rademacher Duofern Jalousien, Fritz!Dect Thermostaten, Proteus

bastelfeak

Hallo,

also zum Thema demo: gleicher Fehler.

Starting fhem...
2017.06.25 10:15:02 1: PERL WARNING: Smartmatch is experimental at ./FHEM/99_cleanUtils.pm line 25.
2017.06.25 10:15:02 1: PERL WARNING: Smartmatch is experimental at ./FHEM/99_cleanUtils.pm line 125.
2017.06.25 10:15:02 1: Including fhem.cfg.demo
2017.06.25 10:15:02.143 3: telnetPort: port 7072 opened
2017.06.25 10:15:02.325 3: WEB: port 8083 opened
2017.06.25 10:15:02.329 3: WEBphone: port 8084 opened
2017.06.25 10:15:02.331 3: WEBtablet: port 8085 opened
2017.06.25 10:15:02.376 1: define Logfile FileLog ./log/fhem-%Y-%m.log fakelog: Can't open ./log/fhem-2017-06.log: Permission denied
2017.06.25 10:15:02.416 2: eventTypes: loaded 109 events from demolog/eventTypes.txt
2017.06.25 10:15:02.459 1: CUL_0 device is none, commands will be echoed only
Undefined subroutine &main::RESIDENTStk_Define called at fhem.pl line 3412, <$fh> line 204.



Ich poste mal die infrage kommenden Dateien:


-rwxrwxrwx  1 fhem dialout 134695 May 29 16:25 fhem.pl

-rw-rwxrw-   1 fhem dialout  71321 May 29 16:25 10_RESIDENTS.pm

-rw-rwxrw-   1 fhem dialout  67492 Apr  6 23:18 RESIDENTStk.pm

KölnSolar

Zitat-rw-rwxrw-   1 fhem dialout  67492 Apr  6 23:18 RESIDENTStk.pm
Warum auch immer ist meine jünger
Zitat# $Id: RESIDENTStk.pm 14160 2017-05-01 19:43:40Z loredo $
ein update kriegst Du ja nicht hin, mangels Start. Entweder händisch kopieren(Berechtigungen beachten) oder die fhem.cfg.demo um die RESIDENTS devices reduzieren, dann (hoffe ich) läuft FHEM (demo)und Du kannst das update ausführen. Danach dann Deine Inst. starten und  ? ? ?
Grüße Markus
Oder Du wartest noch etwas bis ein Vollprofi einen eleganteren Weg vorschlägt  ;)
RPi3/2 buster/stretch-SamsungAV_E/N-RFXTRX-IT-RSL-NC5462-Oregon-CUL433-GT-TMBBQ-01e-CUL868-FS20-EMGZ-1W(GPIO)-DS18B20-CO2-USBRS232-USBRS422-Betty_Boop-EchoDot-OBIS(Easymeter-Q3/EMH-KW8)-PCA301(S'duino)-Deebot(mqtt2)-zigbee2mqtt

Otto123

#14
Hi,

meine ist vor allem wesentlich größer:  :-[
-rw-r--r-- 1 fhem dialout 138443 Mai 13 19:18 RESIDENTStk.pm

Und mit einer quasi leeren cfg starten?

Gruß Otto
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