FHEM Forum

FHEM - Hardware => Einplatinencomputer => Thema gestartet von: Erik am 11 April 2015, 22:48:34

Titel: FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Erik am 11 April 2015, 22:48:34
Hallo,
ich versuche mich an einer Neuinstallation von FHEM (fhem-5.6.deb) auf einem Raspberry PI.
Ich habe mich an die Anleitung (siehe Absatz "FHEM installieren")
http://www.fhemwiki.de/wiki/FHEM_auf_Raspberry_PI_mit_COC_betreiben (http://www.fhemwiki.de/wiki/FHEM_auf_Raspberry_PI_mit_COC_betreiben)
gehalten.

Leider erhalte ich nach:
sudo /etc/init.d/fhem start

folgende Fehlermeldung:

Can't open ./opt/fhem/log/fhem-2015-04.log: Datei oder Verzeichnis nicht gefunden at fhem.pl line 2148.

Die Datei fhem-2015-04.log gibt es im Verzeichnis ./opt/fhem/log/
Hat mir jemand einen Lösungsvorschlag?
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: KernSani am 11 April 2015, 23:05:38
Hi Trineo,

das klingt nach Berechtigungsproblemen. Welcher user startet FHEM, Wie sind die Rechte der Log-Datei gesetzt?

Grüße,

Oli
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Erik am 11 April 2015, 23:14:50
Hallo Oli,

danke für Deine Antwort.

Auf Zugriffsrechte hatte ich auch erst getippt:
Die Rechte auf die fhem-2015-04.log sind mit
-rw-rw-rw 1 fhem pi
gesetzt und müssten passen.

Ich habe /etc/init.d/fhem start als User pi ausgeführt. Ein Reboot hat auch nicht geholfen.
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Wuppi68 am 11 April 2015, 23:18:21
schau mal in die fhem.cfg

dort steht irgendwo

attr global modpath ./opt/fhem

oder so ähnlich

mach mal aus dem Pfad einen Punkt

also so

attr global modpath .

und starte dann noch einmal neu
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Erik am 11 April 2015, 23:27:03
In meiner fhem.cfg steht schon "attr global modpath ."

fhem.cfg:
-----------------------------------------------------------------------------
attr global logfile ./opt/fhem/log/fhem-%Y-%m.log
attr global modpath .
attr global statefile ./opt/fhem/log/fhem.save
attr global verbose 3
attr global updateInBackground

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./opt/fhem/log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate filelog ./opt/fhem/log/%NAME-%Y-%m.log

define eventTypes eventTypes ./opt/fhem/log/eventTypes.txt
-----------------------------------------------------------------------------

... später werde ich die fhem.cfg durch die Version von meiner Fritzbox ersetzen.
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Wuppi68 am 12 April 2015, 00:17:44
Zitat von: trineo am 11 April 2015, 23:27:03
In meiner fhem.cfg steht schon "attr global modpath ."

fhem.cfg:
-----------------------------------------------------------------------------
attr global logfile ./opt/fhem/log/fhem-%Y-%m.log
attr global modpath .
attr global statefile ./opt/fhem/log/fhem.save
attr global verbose 3
attr global updateInBackground

define telnetPort telnet 7072 global

define WEB FHEMWEB 8083 global

define WEBphone FHEMWEB 8084 global
attr WEBphone stylesheetPrefix smallscreen

define WEBtablet FHEMWEB 8085 global
attr WEBtablet stylesheetPrefix touchpad

# Fake FileLog entry, to access the fhem log from FHEMWEB
define Logfile FileLog ./opt/fhem/log/fhem-%Y-%m.log fakelog

define autocreate autocreate
attr autocreate filelog ./opt/fhem/log/%NAME-%Y-%m.log

define eventTypes eventTypes ./opt/fhem/log/eventTypes.txt
-----------------------------------------------------------------------------

... später werde ich die fhem.cfg durch die Version von meiner Fritzbox ersetzen.

mach mal den Pfad beim logfile und statefile ohne den /opt/fhem ....

also so:


./log/fhem-%Y-%m.log
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Erik am 12 April 2015, 01:32:39
Jetzt startet fhem und ich komme mit
http://<dieRaspberryIP>:8083/fhem
auf die Benutzeroberfläche von Fhem.
Dort wird aber nun folgendes angezeigt:

Error messages while initializing FHEM:
configfile: Can´t open ./opt/fhem/log/fhem-2015-04.log: Datei oder Verzeichnis nicht gefunden
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Wuppi68 am 12 April 2015, 12:14:31
attribute vom global sind noch falsch ...

schaue Dir noch einmal zwei Posts weiter oben die Hinweise an .... und änder die Pfadangabe entsprechend

dann save config und Neustart
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Erik am 12 April 2015, 13:18:22
Die Attribute sind auf:

attr global modpath .

gesetzt oder meinst Du etwas anderes?
Auch Neustart von Fhem und/oder Reboot des Raspberry helfen nicht.


Zitat von: Wuppi68 am 12 April 2015, 12:14:31
attribute vom global sind noch falsch ...

schaue Dir noch einmal zwei Posts weiter oben die Hinweise an .... und änder die Pfadangabe entsprechend

dann save config und Neustart
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Wuppi68 am 12 April 2015, 13:21:41
attr global logfile ./opt/fhem/log/fhem-%Y-%m.log
attr global statefile ./opt/fhem/log/fhem.save

define Logfile FileLog ./opt/fhem/log/fhem-%Y-%m.log fakelog

attr autocreate filelog ./opt/fhem/log/%NAME-%Y-%m.log

define eventTypes eventTypes ./opt/fhem/log/eventTypes.txt


da sind noch die anderen Pfadangaben

und als kleine Gutenachgeschicht bitte die Einsteierdoku http://fhem.de/Heimautomatisierung-mit-fhem.pdf verinnerlichen
Titel: Antw:FHEM Neuinstallation Fehlermeldung "at fhem.pl line 2148"
Beitrag von: Erik am 12 April 2015, 16:35:42
Hallo Wuppi68,
wie so oft saß das Problem vor der Tastatur.
Die Einsteigerdoku hatte ich schon gelesen, aber wenn das System läuft, vergisst man auch wieder einiges.
Danke für den Hinweis und Deine Hilfe.