FHEM Forum

FHEM => Anfängerfragen => Thema gestartet von: manuelb am 23 März 2015, 13:57:19

Titel: Nach Update startet Hem nicht mehr (richtig)
Beitrag von: manuelb am 23 März 2015, 13:57:19
Habe grad ein Update von Hem auf meinem RasPi durchlaufen lassen. Nun startet Fhem nicht mehr (richtig) und ich komme nicht ins Webfrontend. Wenn ich es über das Terminal öffne, dann startet es zunächst (über Terminalbefehl "Status" zu sehen). Möchte ich nun aber im Browser auf 8083 zugreifen, bekomme ich die Seite entweder nicht richtig angezeigt, oder sie fliegt nach kurzer Zeit direkt raus und im Terminal erscheint:


Undefined subroutine &main::TcpServer_WriteBlocking called at ./FHEM/01_FHEMWEB.pm line 1537.
Can't use an undefined value as a symbol reference at FHEM/Blocking.pm line 135.
Can't use an undefined value as a symbol reference at FHEM/Blocking.pm line 135.
Can't use an undefined value as a symbol reference at FHEM/Blocking.pm line 135.
Can't use an undefined value as a symbol reference at FHEM/Blocking.pm line 135.


Was könnte das sein?
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: PeMue am 03 April 2015, 16:36:31
Hallo zusammen,

nach einem Update habe ich etwas ähnliches:
2015.04.03 16:28:35 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at FHEM/Blocking.pm line 107.
2015.04.03 16:28:35 1: CallBlockingFn: Can't connect to localhost:: IO::Socket::INET: Cannot determine remote port
Can't use an undefined value as a symbol reference at FHEM/Blocking.pm line 125.


Ich komme aber ins Frontend rein, nur die Logdatei wird halt größer ...

Danke + Gruß

PeMue
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: aeronaut am 06 Juli 2015, 13:57:20
Hallo PeMue, hast du das Problem gelöst?

Mein Logfile wird damit minütlich gefüllt seit ich am 5.7. aktualisiert habe.

Edit: Bei mir siehts leicht anders aus:
2015.07.06 13:30:49 1: PERL WARNING: Use of uninitialized value in concatenation (.) or string at FHEM/Blocking.pm line 107.
2015.07.06 13:30:49 1: CallBlockingFn: Can't connect to localhost:: IO::Socket::INET: Bad hostname 'localhost:'
Can't use an undefined value as a symbol reference at FHEM/Blocking.pm line 125.



lg
aeronaut
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: JoWiemann am 06 Juli 2015, 14:34:16
Hallo,

poste doch bitte einmal Deine fhem.cfg.

Grüße Jörg
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: aeronaut am 06 Juli 2015, 17:38:59
Moin Jörg,

hier die globalen Bereiche der fhem.cfg:

attr global userattr cmdIcon devStateIcon devStateStyle fp_Grundriss icon sortby webCmd widgetOverride
attr global archivedir ./archiveLog/
attr global autoload_undefined_devices 1
attr global backup_before_update 1
attr global backupdir /backup/fhem_backup/
attr global exclude_from_update 98_HTTPMOD.pm
attr global holiday2we hamburg
attr global latitude 1
attr global logfile ./log/fhem-%Y-%m.log
attr global longitude 1
attr global modpath .
attr global nrarchive 1
attr global room Admin
attr global sendStatistics onUpdate
attr global statefile ./log/fhem.save
attr global title Wohnung
attr global uniqueID ./FHEM/FhemUtils/uniqueID
attr global updateInBackground 1
attr global verbose 2

define telnetPort telnet 7072 global
attr telnetPort allowfrom 192.168.10.(1|44)|127.0.0.1
attr telnetPort globalpassword *dasistgeheim*
attr telnetPort room Serverraum

define WEB FHEMWEB 8083 global
attr WEB HTTPS 1
attr WEB JavaScripts codemirror/fhem_codemirror.js
attr WEB codemirrorParam { "theme":"blackboard", "lineNumbers":true }
attr WEB editConfig 1
attr WEB hiddenroom Select style,Remote doc,DashboardRoom
attr WEB longpoll 1
attr WEB menuEntries Update,cmd=updatefhem,Update Check,cmd=update+check,Edit Utils,cmd=style%20edit%2099_myUtils.pm,Reload Utils,cmd=reload+99_myUtils,Edit RSS,cmd=style%20edit%20rss.layout,Reload RSS,cmd=set%20myrss%20rereadcfg,Pair 120,cmd=set+CUL+hmPairForSec+120,Restart,cmd=shutdown+restart,Backup,cmd=backup
attr WEB refresh 300
attr WEB room Admin
attr WEB stylesheetPrefix dark

define Logfile FileLog ./log/fhem-%Y-%m.log fakelog
attr Logfile archivedir ./archiveLog/
attr Logfile nrarchive 2
attr Logfile room Logfiles

define autocreate autocreate
attr autocreate autosave 1
attr autocreate device_room Unsorted
attr autocreate disable 0
attr autocreate filelog /var/log/fhem/%NAME-%Y-m.log
attr autocreate room Admin
attr autocreate weblink 1
attr autocreate weblink_room Plots

define eventTypes eventTypes ./log/eventTypes.txt
attr eventTypes room Admin


Kann das was mit dem Telnet-Port zu tun haben? Brauchst du mehr aus der cfg?

Edit: Es läuft kein FHEM2FHEM und kein DBLOG
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: JoWiemann am 06 Juli 2015, 17:45:10
Hallo,

nimm doch mal attr telnetPort allowfrom ... raus. Wenn das Log dann sauber ist hätten wir schon mal einen Anhaltspunkt.

Grüße Jörg
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: aeronaut am 06 Juli 2015, 17:53:20
Nach Entfernen von allowfrom ändert sich was. Jetzt landet jede Minute nur noch folgendes im Log:
Can't use an undefined value as a symbol reference at FHEM/Blocking.pm line 125.

Ein "Bad hostname 'localhost:'" tritt nicht mehr auf.
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: JoWiemann am 06 Juli 2015, 18:18:37
Hallo,

hätte jetzt zwei Vorgehensweisen:

- Telnet komplett löschen, Fhem neu starten und dann über das FhemWeb neu definieren
- ein update force machen. Vielleicht besteht ja eine Inkonsistenz von Modulen.

Grüße Jörg
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: aeronaut am 06 Juli 2015, 19:42:31
Danke, Jörg, leider bringt keine von beiden Ideen eine Veränderung.

Habe den Loglevel mal hochgedreht:
2015.07.06 19:31:45 5: myJeeLink dispatch OK 24 4 4 15 164 223 1 6 251 0 75
2015.07.06 19:31:45 5: Triggering wz.arbeitsplatz.energie1 (0 changes)
2015.07.06 19:31:49 5: exec at command a.UhrzeitUpdate
2015.07.06 19:31:49 5: Cmd: >{ fhem 'set Uhrzeit '.strftime('%H:%M', localtime).' Uhr' }<
2015.07.06 19:31:49 5: Cmd: >set Uhrzeit 19:31 Uhr<
2015.07.06 19:31:49 4: dummy set Uhrzeit 19:31 Uhr
2015.07.06 19:31:49 5: redefine at command a.UhrzeitUpdate as +*00:00:10 { fhem 'set Uhrzeit '.strftime('%H:%M', localtime).' Uhr' }
2015.07.06 19:31:49 5: Triggering a.UhrzeitUpdate (1 changes)
2015.07.06 19:31:49 5: Notify loop for a.UhrzeitUpdate Next: 19:31:59
2015.07.06 19:31:49 5: statistics bz.temp.statistics: Notify.262 Notification of 'a.UhrzeitUpdate' received. Device not monitored.
2015.07.06 19:31:49 5: statistics flur.temp.statistics: Notify.262 Notification of 'a.UhrzeitUpdate' received. Device not monitored.
2015.07.06 19:31:49 5: statistics sz.humidity.statistics: Notify.262 Notification of 'a.UhrzeitUpdate' received. Device not monitored.
2015.07.06 19:31:49 5: statistics sz.temp.statistics: Notify.262 Notification of 'a.UhrzeitUpdate' received. Device not monitored.
2015.07.06 19:31:49 5: statistics wz.thermostat.statistics: Notify.262 Notification of 'a.UhrzeitUpdate' received. Device not monitored.
2015.07.06 19:31:50 5: exec at command a.anwesenheit.bluetooth
2015.07.06 19:31:50 5: Cmd: >{checkPresenceViaBluetooth()}<
2015.07.06 19:31:50 5: Cmd: >set anwesenheit.bluetooth off<
2015.07.06 19:31:50 4: dummy set anwesenheit.bluetooth off
2015.07.06 19:31:50 5: Triggering anwesenheit.bluetooth (1 changes)
2015.07.06 19:31:50 5: Notify loop for anwesenheit.bluetooth off
2015.07.06 19:31:50 5: statistics bz.temp.statistics: Notify.262 Notification of 'anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: statistics flur.temp.statistics: Notify.262 Notification of 'anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: statistics sz.humidity.statistics: Notify.262 Notification of 'anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: statistics sz.temp.statistics: Notify.262 Notification of 'anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: statistics wz.thermostat.statistics: Notify.262 Notification of 'anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: Triggering n.anwesenheit.sammler
2015.07.06 19:31:50 4: n.anwesenheit.sammler exec {updateGlobalAnwesenheit("$NAME", "$EVENT");;;;}
2015.07.06 19:31:50 5: Cmd: >{updateGlobalAnwesenheit("$NAME", "$EVENT");;}<
2015.07.06 19:31:50 5: redefine at command a.anwesenheit.bluetooth as +*00:00:30 {checkPresenceViaBluetooth()}
2015.07.06 19:31:50 5: Triggering a.anwesenheit.bluetooth (1 changes)
2015.07.06 19:31:50 5: Notify loop for a.anwesenheit.bluetooth Next: 19:32:20
2015.07.06 19:31:50 5: statistics bz.temp.statistics: Notify.262 Notification of 'a.anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: statistics flur.temp.statistics: Notify.262 Notification of 'a.anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: statistics sz.humidity.statistics: Notify.262 Notification of 'a.anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: statistics sz.temp.statistics: Notify.262 Notification of 'a.anwesenheit.bluetooth' received. Device not monitored.
2015.07.06 19:31:50 5: statistics wz.thermostat.statistics: Notify.262 Notification of 'a.anwesenheit.bluetooth' received. Device not monitored.
Can't use an undefined value as a symbol reference at FHEM/Blocking.pm line 125.
2015.07.06 19:31:57 5: CUL/RAW: /A0DF784101C5874F112340601270022


Die Meldung scheint durch das at "a.anwesenheit.bluetooth" getriggert zu werden. Das at ruft eine Funktion in MyUtils auf. Dort wird eine Datei eingelesen und anhand des Inhalts ein dummy gesetzt. Mehr nicht. Eigentlich unverdächtig.

Edit: Vielleicht auch nur Zufall, dass sie nach dem at auftaucht, weil irgendwas mit Telnet hat die BlockingFN.pm ja schon zu tun ....

Weißt du was BlockingFN.pm genau ist?

lg
aeronaut
Titel: Antw:Nach Update startet Hem nicht mehr (richtig)
Beitrag von: aeronaut am 06 Juli 2015, 20:04:16
Nach einem Neustart des Cubietrucks tauchen beide Logmeldungen nicht mehr auf.

Irgendwie unbefriedigend  :o

lg aeronaut