[gelöst] Fhem startet nur kurz

Begonnen von Chiemgauer, 26 April 2017, 23:04:07

Vorheriges Thema - Nächstes Thema

Chiemgauer

ps aux | grep [f]hem
fhem      1274  0.0  0.7  11204  7504 ?        S    14:28   0:00 perl fhem.pl fh       em.cfg

sudo netstat -lntp | grep perl
keine Anzeige

pstree | grep [f]hem
keine Anzeige

telnet 000.000.000.00 7072
-bash: telnet: Kommando nicht gefunden.

echo "list" | nc 000.000.000.00 7072
keine Anzeige

wget 000.000.000.00:8083
--2017-04-30 20:56:16--  http://000.000.000.00:8083/
Verbindungsaufbau zu 000.000.000.00:8083... fehlgeschlagen: Verbindungsaufbau abgelehnt.

Hoffe das hilft weiter, und ich bin nicht zu dusslig.





Chiemgauer

Hallo Frank, da sind wir einer Meinung. Leider weiß ich nicht wie, und ich steh völlig auf dem viel gerühmten Schlauch.

franky08

Auf was für einem Host läuft dei fhem und wo hast du es installiert, standartmäßig unter /opt/fhem oder wo?
Debian Wheezy auf ZBOX nano/ Debian Bullseye auf 2.ter ZBOX nano F2F an 2x RaspiB
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu ,fhem5.8, CCU2,
ECMD an AVR-NET-IO mit DAC u. ADC an Junkers Stetigregelung, Siemens LOGO!8, JeeLink uvm...

franky08

#18
P.S. poste mal deine fhem.cfg, den ersten Abschnitt bis zu Def. der Webinstanzen. Den Abschnitt hier (sieht bei dir natürlich anders aus):
attr global userattr DbLogExclude DbLogInclude Heizung_Struct Heizung_Struct_map alexaName alexaRoom cmdIcon devStateIcon devStateStyle fm_type fp_Energie fp_Garten_FP fp_Grundriss fp_Grundriss2 fp_Heizung_FP fp_Le_Status fp_Le_Zeit fp_Plots fp_Remote_TV_Dream fp_Star_Trek fp_Status fp_Windrose fp_fp_EV_Monitor fp_status2 genericDeviceType:security,ignore,switch,outlet,light,blind,thermometer,thermostat,contact,garage,window,lock homebridgeMapping:textField-long icon room_map sortby structexclude webCmd widgetOverride
attr global autoload_undefined_devices 1
attr global backup_before_update 1
attr global backupdir /media/usb0/backup
attr global commandref modular
attr global dnsServer 192.168.2.1
attr global exclude_from_update co20.gplot 66_ECMD.pm 67_ECMDDevice.pm 42_SYSMON.pm
attr global latitude 51.519517
attr global logfile ./log/fhem-%Y-%m.log
attr global longitude 11.557675
attr global modpath .
attr global motd none
attr global mseclog 0
attr global perlSyntaxCheck 1
attr global restoreDirs 6
attr global room System
attr global sendStatistics onUpdate
attr global showInternalValues 0
attr global sslVersion TLSv12:!SSLv3
attr global stacktrace 0
attr global statefile ./log/fhem.save
attr global uniqueID ./FHEM/FhemUtils/uniqueID
attr global updateInBackground 1
attr global verbose 3
#
#

#attr global mseclog 1
#attr global verbose 1
#

#
#attr global userattr webCmd
#
#
#WEB
#
define telnetPort telnet 7072 global
attr telnetPort room System
#
#
define WEB FHEMWEB 8083 global
attr WEB JavaScripts codemirror/codemirror.js codemirror/search.js codemirror/fhem_codemirror.js
attr WEB SVGcache 0
attr WEB codemirrorParam { "indentWithTabs":false, "indentUnit":2, "autocomplete":false, "height":"auto", "theme":"blackboard", "lineNumbers":true, "lineWrapping":true, "matchBrackets":true }
attr WEB confirmJSError 0
attr WEB csrfToken none
attr WEB editConfig 1
attr WEB fwcompress 1
attr WEB iconPath openautomation:default:dark:fhemSVG:/opt/snapshot
attr WEB longpoll 1
attr WEB longpollSVG 0
attr WEB ploteditor always
attr WEB plotfork 1
attr WEB refresh 360
attr WEB room System
attr WEB roomIcons Batterien:general_ok
attr WEB stylesheetPrefix dark
define allowed_WEB allowed
attr allowed_WEB basicAuth xxxxxxxxxxxxxxxx
attr allowed_WEB room System
attr allowed_WEB validFor WEB
#attr WEB refresh 120
#attr WEB JavaScripts codemirror/fhem_codemirror.js
#
#
#
define WEBphone FHEMWEB 8084 global
attr WEBphone confirmJSError 0
attr WEBphone csrfToken none
attr WEBphone room System
attr WEBphone stylesheetPrefix kirk1
#
#
define WEBtablet FHEMWEB 8085 global
attr WEBtablet closeConn 1
attr WEBtablet confirmJSError 0
attr WEBtablet csrfToken none
attr WEBtablet fwcompress 1
attr WEBtablet iconPath openautomation:default:dark:fhemSVG
attr WEBtablet longpoll 1
attr WEBtablet longpollSVG 1
attr WEBtablet plotfork 1
attr WEBtablet refresh 60
attr WEBtablet room System
attr WEBtablet stylesheetPrefix neu1
#attr WEBtablet stylesheetPrefix kirk
#attr WEBtablet basicAuth { "$user:$password" eq "xxxxxxxxxxxxxx" }
define WEBtablet2 FHEMWEB 8086 global
attr WEBtablet2 JavaScripts pgm2/jquery.min.js codemirror/codemirror.js codemirror/search.js codemirror/fhem_codemirror.js pgm2/jquery-ui.min.js
attr WEBtablet2 SVGcache 0
attr WEBtablet2 codemirrorParam { "theme":"blackboard", "lineNumbers":true }
attr WEBtablet2 confirmJSError 0
attr WEBtablet2 csrfToken none
attr WEBtablet2 editConfig 1
attr WEBtablet2 fwcompress 1
attr WEBtablet2 iconPath openautomation:default:dark:fhemSVG
attr WEBtablet2 longpoll 1
attr WEBtablet2 longpollSVG 0
attr WEBtablet2 plotfork 1
attr WEBtablet2 refresh 120
attr WEBtablet2 room System
attr WEBtablet2 roomIcons Batterien:general_ok
attr WEBtablet2 stylesheetPrefix dark
#
define WEBLenovo FHEMWEB 8087 global
attr WEBLenovo JavaScripts codemirror/switch.js
attr WEBLenovo confirmJSError 0
attr WEBLenovo csrfToken none
attr WEBLenovo iconPath openautomation:default:dark:fhemSVG
attr WEBLenovo longpoll 1
attr WEBLenovo longpollSVG 1
attr WEBLenovo plotsize 560,135
attr WEBLenovo refresh 180
attr WEBLenovo room System
attr WEBLenovo stylesheetPrefix neu1
define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
attr Logfile room Log
#
Debian Wheezy auf ZBOX nano/ Debian Bullseye auf 2.ter ZBOX nano F2F an 2x RaspiB
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu ,fhem5.8, CCU2,
ECMD an AVR-NET-IO mit DAC u. ADC an Junkers Stetigregelung, Siemens LOGO!8, JeeLink uvm...

DeeSPe

Zitat von: Chiemgauer am 30 April 2017, 13:52:23
Unknown module FHEMWEB
Unknown module FHEMWEB
Unknown module FHEMWEB
Unknown module FileLog
Unknown module autocreate
Unknown module eventTypes
Unknown module notify
Unknown module HMCCU
Unknown module FRITZBOX
Unknown module FRITZBOX
Unknown module telnet
Unknown module THINKINGCLEANER
Unknown module Weather
Unknown module Weather
Unknown module weblink
Unknown module FB_CALLMONITOR
Unknown module Calendar
Unknown module DENON_AVR
Unknown module DLNARenderer

Wo sind denn die Module die eigentlich unter /opt/fhem/FHEM sind?

Gruß
Dan
MAINTAINER: 22_HOMEMODE, 98_Hyperion, 98_FileLogConvert, 98_serviced

Als kleine Unterstützung für meine Programmierungen könnt ihr mir gerne einen Kaffee spendieren: https://buymeacoff.ee/DeeSPe

franky08

@DeeSPe

Darum meine Frage:
Zitatwo hast du es installiert, standartmäßig unter /opt/fhem oder wo?
Debian Wheezy auf ZBOX nano/ Debian Bullseye auf 2.ter ZBOX nano F2F an 2x RaspiB
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu ,fhem5.8, CCU2,
ECMD an AVR-NET-IO mit DAC u. ADC an Junkers Stetigregelung, Siemens LOGO!8, JeeLink uvm...

Chiemgauer

Fhem ist nach Standard installiert.
Hmm, und da war der Knoten: Ich habe anscheinend irgendwann zwischen meinen letzten beiden Backups den FHEM Ordner verschoben.
Habe immer nur zum vergleich das letzte Backup heraqngezogen, aber nie das vorletzte.
Das ganze korrigiert und läuft wieder. da habe ich den Wald vora lauter Bäumen nicht gesehen. Danke an alle!

franky08

Na super  ;)

Schreib noch ein gelöst dran.

VG
Frank
Debian Wheezy auf ZBOX nano/ Debian Bullseye auf 2.ter ZBOX nano F2F an 2x RaspiB
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu ,fhem5.8, CCU2,
ECMD an AVR-NET-IO mit DAC u. ADC an Junkers Stetigregelung, Siemens LOGO!8, JeeLink uvm...

ernst1024

Zitat von: franky08 am 27 April 2017, 08:33:05
Der Texteditor muss! Linux konform sein!!!!! Notepad++ unter Windows oder nimm unter Linux nano. Wenn du das unter Windows mit einem normalen Editor machst, zerschießt du dir die fhem.cfg.

VG
Frank

Natürlich kann man jeden beliebigen editor nehmen, wie kommst du darauf
Gruß Ernst

franky08

#24
@ernst1024
Weil es so ist

ZitatNatürlich kann man jeden beliebigen editor nehmen, wie kommst du darauf

Na dann noch schönes editieren!

Dann wird aus sowas:
return "wrong syntax: define <name> WS3600 \"</path/to/extprog [<options>]>\" [<readinterval in s>]" if(@a < 2 || @a > 3);

z.B. sowas:
return ,,wrong syntax: define<name>WS3600\"</path/to/extprog [<options>]>"[.........

return ,,wrong syntax

und schon sind die " unten

Wurde im Forum auch schon oft genug darauf hingewiesen!

Und WIKI:
ZitatExterner Editor
Das Editieren der Konfiguration kann auch mit einem externen Editor wie z. B.

Notepad++ (mit der nppFTP-Erweiterung)
nano in einer Telnet Sitzung
in wfftp integrierter / integrierbarer Editor

Kannst du auch hier nachlesen:
https://groups.google.com/forum/#!topic/fhem-users/77Ek-FMYrWQ

VG
Frank
Debian Wheezy auf ZBOX nano/ Debian Bullseye auf 2.ter ZBOX nano F2F an 2x RaspiB
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu ,fhem5.8, CCU2,
ECMD an AVR-NET-IO mit DAC u. ADC an Junkers Stetigregelung, Siemens LOGO!8, JeeLink uvm...

franky08

#25
@ernst1024
Der Abschnitt:
Zitatbernhard    
02.02.12


Hallo,
Dein Problem liegt vermutlich daran, dass das von Dir editierte und
gespeicherte *.cfg nicht im Unix-Format vorliegt,
also Zeilenende mit CR+LF (PC) oder CR (MAC) und nicht *nur* LF (Unix)
(0x0a)!!! Hab' da auch so meine Erfahrungen gemacht.

Schau mal, ob Dein Editor irgendwo eine entsprechende Einstellung hat
(Format oder so ...)
Debian Wheezy auf ZBOX nano/ Debian Bullseye auf 2.ter ZBOX nano F2F an 2x RaspiB
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu ,fhem5.8, CCU2,
ECMD an AVR-NET-IO mit DAC u. ADC an Junkers Stetigregelung, Siemens LOGO!8, JeeLink uvm...

ernst1024

Fhem ist da tolerant. Es spielt keine Rolle ob eine Zeile mit CR+LF oder nur LF endet.
Gruß Ernst

franky08

Siehe weiter oben die Sache mit den " und wenn du weiter der Ansicht bist dann wundere dich nicht über auftretende Fehler, im übrigen sollten Änderungen nur im Webfrontend gemacht werden. -habe fertig
Debian Wheezy auf ZBOX nano/ Debian Bullseye auf 2.ter ZBOX nano F2F an 2x RaspiB
22Zoll ViewSonic als Infodislay (WVC)
3xHMLAN mit vccu ,fhem5.8, CCU2,
ECMD an AVR-NET-IO mit DAC u. ADC an Junkers Stetigregelung, Siemens LOGO!8, JeeLink uvm...