[FHZ] fhem.pl / line 300: die("Select error $nfound / $!\\n");

Begonnen von rudolfkoenig, 26 Oktober 2008, 13:52:32

Vorheriges Thema - Nächstes Thema

rudolfkoenig

Originally posted by: <email address deleted>

After exexuting of 'rereadcfg' command sometimes fhem.pl is dying.

fhem.pl / line 300:    die("Select error $nfound / $!\n");
logfile-Entry: Select error -1 / Bad file descriptor

@Rudi: since i'm not familar with this routine, which variables are
helpful to trace (e.g. $rin or $rout - but these are pointers to ??? )

Greets
Klaus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

rudolfkoenig

                                                   

> @Rudi: since i'm not familar with this routine, which variables are
> helpful to trace (e.g. $rin or $rout - but these are pointers to ??? )

Try to debug it in the 2 foreach loops before the select. Print out
the selectlist and the client members, perhaps it is obvious what's
wrong.
$rin and $rout are bitvectors, the position of each set bit
representing the filedescriptor.
One filedescriptor is closed, but the bit is still set. I don't think
that $rout is updated to show you the wrong fd.

Greetings,
  Rudi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

rudolfkoenig

Originally posted by: <email address deleted>

I think I could isolate the problem: rereadcfg fails only if pgm2 (web
interface) was loaded.
btw: rereadcfg just was executed without any changes in the cfg file!
----
1) starting fhem
2008.10.26 22:05:59 1: Loop1: WEB.8080
2008.10.26 22:05:59 1: Loop1: FHZ./dev/usb/tts/0
2008.10.26 22:05:59 1: Loop2: IO::Socket::INET=GLOB(0x105075b8)
2008.10.26 22:06:00 2: FHEMWEB port 8080 opened
2008.10.26 22:06:00 3: FHZ opening FHZ device /dev/usb/tts/0
2008.10.26 22:06:00 3: FHZ opened FHZ device /dev/usb/tts/0
2008.10.26 22:06:02 2: dummy set AlarmMsg off

2) rereadcfg : 1st trial - ok -
2008.10.26 22:06:57 1: Loop1: FHZ./dev/usb/tts/0
2008.10.26 22:07:11 1: Loop1: WEB.8080
2008.10.26 22:07:11 1: Loop1: FHZ./dev/usb/tts/0
2008.10.26 22:07:11 1: Loop2: IO::Socket::INET=GLOB(0x100276e4)
2008.10.26 22:07:12 2: FHEMWEB port 8080 opened
2008.10.26 22:07:12 3: FHZ opening FHZ device /dev/usb/tts/0
3) rereadcfg: 2nd trial - ok -
2008.10.26 22:08:56 1: Loop1: WEB.8080
2008.10.26 22:08:56 1: Loop1: FHEMWEB:192.168.1.105:1079
2008.10.26 22:08:56 1: Loop1: FHZ./dev/usb/tts/0
2008.10.26 22:08:56 1: Loop2: IO::Socket::INET=GLOB(0x104f3bf8)
2008.10.26 22:08:57 2: FHEMWEB port 8080 opened
2008.10.26 22:08:57 3: FHZ opening FHZ device /dev/usb/tts/0

4) load web interface with "http://192.168.1.9:8080/fhem"

5) rereadcfg: 3rd trial -fails-
2008.10.26 22:08:56 1: Loop1: WEB.8080
2008.10.26 22:08:56 1: Loop1: FHEMWEB:192.168.1.105:1079
2008.10.26 22:08:56 1: Loop1: FHZ./dev/usb/tts/0
2008.10.26 22:08:56 1: Loop2: IO::Socket::INET=GLOB(0x104f3bf8)
2008.10.26 22:08:57 2: FHEMWEB port 8080 opened
2008.10.26 22:08:57 3: FHZ opening FHZ device /dev/usb/tts/0
2008.10.26 22:08:57 3: FHZ opened FHZ device /dev/usb/tts/0
2008.10.26 22:08:59 2: dummy set AlarmMsg off
2008.10.26 22:08:59 2: dummy set Urlaub nein
2008.10.26 22:08:59 2: dummy set BatterieWarnung keine
...
2008.10.26 22:09:08 2: dummy set Abwesend off
2008.10.26 22:09:12 1: Loop1: WEB.8080
2008.10.26 22:09:12 1: Loop1: FHEMWEB:192.168.1.105:1079
2008.10.26 22:09:12 1: Loop1: FHZ./dev/usb/tts/0
Select error -1 / Bad file descriptor

It seems to be that socket was gone.

N.B. I'm on holiday fm tomorrow on til nov.15 - so pls. don't worry if
next answer is coming late...

Greetings
Klaus

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

rudolfkoenig

Originally posted by: <email address deleted>

Hallo Rudi,
es ist reproduzierbar, wenn pgm2 aktiv ist UND ein rereadcfg gemacht
wird.

Nachfolgend zwei Beispiele, hier wurde jeweils ein "perl /usr/local/
bin/fhem.pl 7072 rereadcfg" abgesetzt.

1) Ohne pgm2, es läuft durch:
2008.11.12 21:46:51 4: FHT HeizKeller actuator: 76%
2008.11.12 21:46:51 4: P:WEBIF.8080, 6
2008.11.12 21:46:51 4: P:FHZ./dev/usb/tts/0, 7
2008.11.12 21:47:07 4: Connection accepted from 127.0.0.1:1112
2008.11.12 21:47:07 4: P:WEBIF.8080, 6
-> Log 4,"P:$p, $selectlist{$p}{FD}";)
2008.11.12 21:47:07 4: P:FHZ./dev/usb/tts/0, 7
2008.11.12 21:47:07 4: C:IO::Socket::INET=GLOB(0x105452b4), fileno
(IO::Socket::INET=GLOB(0x105452b4))
-> Log 4,"C:$c, fileno($client{$c}{fd})";)
2008.11.12 21:47:08 2: FHEMWEB port 8080 opened
2008.11.12 21:47:08 3: FHZ opening FHZ device /dev/usb/tts/0
2008.11.12 21:47:08 3: FHZ opened FHZ device /dev/usb/tts/0
...
2008.11.12 21:47:10 2: Asking the FHT device HeizGaeste/494b to send
its data
2008.11.12 21:47:10 2: FHT set HeizGaeste report1 255 report2 255
...
2008.11.12 21:47:24 4: Connection closed for 127.0.0.1:1112
2008.11.12 21:47:24 4: P:WEBIF.8080, 7
2008.11.12 21:47:24 4: P:FHZ./dev/usb/tts/0, 8
2008.11.12 21:47:24 4: Line 1635: I=102, Now=1226522844.06425, TT=
 1226522830.70958,FN=FHZ_HandleWriteQueue,ARG=HASH(0x10338bf8 )
2
...
2) pgm Web-IF gestartet
2008.11.12 21:49:54 4: FHT HeizKueche mode: auto
2008.11.12 21:49:55 2: FHEMWEB port 8080 opened
2008.11.12 21:49:55 3: FHZ opening FHZ device /dev/usb/tts/0
2008.11.12 21:49:55 3: FHZ opened FHZ device /dev/usb/tts/0
...
2008.11.12 21:49:58 2: Asking the FHT device HeizGaeste/494b to send
its data
2008.11.12 21:49:58 2: FHT set HeizGaeste report1 255 report2 255
...
2008.11.12 21:50:11 4: Connection closed for 127.0.0.1:1113
2008.11.12 21:50:11 4: P:FHEMWEB:88.254.171.xxx:1389, 29
2008.11.12 21:50:11 4: P:FHEMWEB:88.254.171.xxx:1388, 28
2008.11.12 21:50:11 4: P:WEBIF.8080, 6
2008.11.12 21:50:11 4: P:FHEMWEB:88.254.171.xxx:1387, 6
-> $selectlist{$p}{FD} ist jeweils 6. Ist das ok???
2008.11.12 21:50:11 4: P:FHEMWEB:88.254.171.xxx:1386, 4
2008.11.12 21:50:11 4: P:FHZ./dev/usb/tts/0, 7
2008.11.12 21:50:11 4: Line 1635: I=127, Now=1226523011.89429, TT=
 1226522998.31024,FN=FHZ_HandleWriteQueue,ARG=HASH(0x1015a618 )
Line 300: Select error -1 / Bad file descriptor

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

Guest

Originally posted by: <email address deleted>

... und hier nochmal ein zusätzlicher Check mit lsof. Es sieht nach
einem Channel-Konflikt aus

2008.11.12 22:45:11 4: P:FHEMWEB:88.254.171.xxx:1439, 6
2008.11.12 22:45:11 4: P:FHEMWEB:88.254.171.xxx:1438, 4
2008.11.12 22:45:11 4: P:WEBIF.8080, 6
2008.11.12 22:45:11 4: P:FHEMWEB:88.254.171.xxx:1440, 28
2008.11.12 22:45:11 4: P:FHEMWEB:88.254.171.xxx:1441, 29
2008.11.12 22:45:11 4: P:FHZ./dev/usb/tts/0, 7

Vor rereadcfg sieht die open files table so aus:
perl      27431 root    0r      CHR        1,3                  6 /dev/
null
perl      27431 root    1w      REG        8,1   35687      79223 /usr/
local/bin/fhem.log
perl      27431 root    2w      REG        8,1   35687      79223 /usr/
local/bin/fhem.log
perl      27431 root    3w      REG        8,1   35687      79223 /usr/
local/bin/fhem.log
perl      27431 root    4u     IPv4    2348958                TCP
192.168.1.9:8080->88.254.171.xxx:1438 (ESTABLISHED)
perl      27431 root    5u     IPv4    2343365                TCP
localhost:7072 (LISTEN)
perl      27431 root    6u     IPv4    2348965                TCP
192.168.1.9:8080->88.254.171.xxx:1439 (ESTABLISHED)
perl      27431 root    7u     IPv4    2347015                TCP *:
8080 (LISTEN)
perl      27431 root    8u      CHR      188,0                323 /dev/
usb/tts/0
perl      27431 root    9w      REG        8,1    1071       1311 /tmp/
tmp/FHZTimeout.log
perl      27431 root   10w      REG        8,1    6861       1520 /tmp/
tmp/emStrom.log
perl      27431 root   11w      REG        8,1    3179       1818 /tmp/
tmp/emGas.log
perl      27431 root   12w      REG        8,1   35687      79223 /usr/
local/bin/fhem.log
perl      27431 root   13w      REG        8,1 7500809       1328 /tmp/
tmp/HeizGaeste.log
perl      27431 root   14w      REG        8,1 7207902       1519 /tmp/
tmp/HeizBuero.log
perl      27431 root   15w      REG        8,1 7055097       1533 /tmp/
tmp/HeizKueche.log
perl      27431 root   16w      REG        8,1 6731469       1333 /tmp/
tmp/HeizKeller.log
perl      27431 root   17w      REG        8,1  279019       1817 /tmp/
tmp/UGWasser.log
perl      27431 root   18w      REG        8,1  253171       1528 /tmp/
tmp/EGTuerEingang.log
perl      27431 root   19w      REG        8,1  191303       1525 /tmp/
tmp/EGFensterKueche.log
perl      27431 root   20w      REG        8,1  173166       1526 /tmp/
tmp/EGFensterWC.log
perl      27431 root   21w      REG        8,1 1251162       1537 /tmp/
tmp/UGHygro.log
perl      27431 root   22w      REG        8,1  759531       1522 /tmp/
tmp/AussenHygro.log
perl      27431 root   23w      REG        8,1 2281029       1332 /tmp/
tmp/AussenWetterH.log
perl      27431 root   24w      REG        8,1    8422       1331 /tmp/
tmp/AWavglog.log
perl      27431 root   25w      REG        8,1   72431       1535 /tmp/
tmp/KellerFenster.log
perl      27431 root   26w      REG        8,1    1240       1536 /tmp/
tmp/Klingel.log
perl      27431 root   27w      REG        8,1   16213       1534 /tmp/
tmp/Heizung.log
perl      27431 root   28u     IPv4    2348971                TCP
192.168.1.9:8080->88.254.171.xxx:1440 (ESTABLISHED)
perl      27431 root   29u     IPv4    2348972                TCP
192.168.1.9:8080->88.254.171.xxx:1441 (ESTABLISHED)

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

rudolfkoenig

                                                   

Hallo Klaus!

Danke fuer den schoenen Debug-Log.

Das Problem ist, dass beim rereadcfg zwar die Ports geschlossen
werden, aber die Verbindungen nicht aus dem neulich geschaffenene
%selectlist entfernt werden. Kannst Du bitte in CommandRereadCfg
zusaetzlich ein "%selectlist = ();" einfuegen neben den anderen =()
Zeilen, und es dann erneut testen?

Gruss,
  Rudi
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

rudolfkoenig

Originally posted by: <email address deleted>

Hallo Rudi,

Problem gelöst. Danke!

Nur der Form halber, der Code sieht jetzt so aus:
  %attr = ();
  %selectlist = ();
  doGlobalDef($cfgfile);
------------
P.S. Kannst Du nachvollziehen, ob folgender Fehler auch aus der
fehlenden Initialisierung von %selectlist resultiert?

2008.11.12 23:00:02 4: FHT set HeizGaeste desired-temp 12.0
Use of uninitialized value in numeric le (<=) at /usr/local/bin/
fhem.pl line 1637.
Use of uninitialized value in concatenation (.) or string at /usr/
local/bin/fhem.pl line 1638.
Use of uninitialized value in concatenation (.) or string at /usr/
local/bin/fhem.pl line 1638.
Use of uninitialized value in concatenation (.) or string at /usr/
local/bin/fhem.pl line 1638.
2008.11.12 23:00:03 4: 1635: I=81, Now=1226527200.23829, TT= ,FN=,ARG=
->   Log 4,"1635: I=$i, Now=$now, TT= $intAt{$i}{TRIGGERTIME},FN=$intAt
{$i}{FN}
Use of uninitialized value in subroutine entry at /usr/local/bin/
fhem.pl line 1640.
Undefined subroutine &main:: called at /usr/local/bin/fhem.pl line
1640.
Fhem Absturz. Reload Fhem
->   Hier hab' ich mir nen kleinen Daemon gebaut, der kontrolliert ob
fhem.pl noch aktiv ist :-)

Nachfolgende Shell stellt sicher, dass perl (fhem) auf jeden Fall
läuft, vielleicht als Startup nicht nur fuer heavy user wie mich
nutzbar:
Datei "startfhem"
while true; do
  if [ $(ps|grep perl|wc -l) -eq 1 ]
     then
          echo "Fhem Absturz. Reload Fhem" >> /usr/local/bin/fhem.log
          /usr/local/bin/startfhem2&
  fi
  sleep 30
done

Datei "startfhem2"
#Logfile sichern
if [ -f fhem.log ]
then
  mv fhem.log fhem.log.save`date +%y%m%d-%H%M`
fi
#fhem starten
perl /usr/local/bin/fhem.pl /usr/local/bin/fhem.cfg


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

rudolfkoenig

                                                   

> P.S. Kannst Du nachvollziehen, ob folgender Fehler auch aus der
> fehlenden Initialisierung von %selectlist resultiert?

Ziemlich sicher hat dies nichts zu tun mit dem selectlist Bug. Kannst
Du mir sagen, aus welchem fhem Version die Zeilennummer stammen? Wenn
das ein von Dir modifizierter fhem ist, dann braeuchte ich den ganzen
Quelltext.

Gruss,
  Rudi

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

rudolfkoenig

Originally posted by: <email address deleted>

On 13 Nov., 14:23, Rudolf Koenig wrote:
> > P.S. Kannst Du nachvollziehen, ob folgender Fehler auch aus der
> > fehlenden Initialisierung von %selectlist resultiert?
>
> Ziemlich sicher hat dies nichts zu tun mit dem selectlist Bug. Kannst
> Du mir sagen, aus welchem fhem Version die Zeilennummer stammen? Wenn
> das ein von Dir modifizierter fhem ist, dann braeuchte ich den ganzen
> Quelltext.

Es ist die aktuelle fhem.pl (von letzter Woche). Habe ausschliesslich
nur einige Logs für den Debug eingebaut, deshalb  leichte
Zeilenverschiebungen.

Der Quellcode ab Zeile 1638:
    my $tim = $intAt{$i}{TRIGGERTIME};
    if($tim <= $now) {
      Log 4,"1635: I=$i, Now=$now, TT= $intAt{$i}{TRIGGERTIME},FN=
$intAt{$i}{FN}
      no strict "refs";
      &{$intAt{$i}{FN}}($intAt{$i}{ARG});
      use strict "refs";

$i zeigt wohl auf ein leeres Array. Ergebnis: $tim ist leer, daher
Warning bei der <= Abfrage. Beim Unterprogramm Aufruf dann der
Absturz, da sowohl FN alsauch ARG leer ist.

Vielleicht hilft erstmal eine Sicherheitsabfrage ob $i leer ist, für
diesen Fall eine definierte Fehlermeldung ausgeben damit das Programm
nicht zum Absturz kommt. Und den UP Aufruf mit "use Error" absichern?
--------------------------------------
Übrigens, nachfolgenden Absturz (nach FHZ Timeout wird via Watchdog
ein reopen angetriggert) hatte ich auch schon des öfteren, und gerade
heute abend wieder. Was hier interessant ist, dass nicht einmal meine
eingebauten Logs
-> Log 4,"P:$p, $selectlist{$p}{FD}";)
-> Log 4,"C:$c, fileno($client{$c}{fd})";)
vor dem Select Befehl anziehen, scheinbar sind in diesem Fall sowohl
%selectlist als auch %client leer.

2008.11.13 17:37:49 3: Watchdog waHG triggered
2008.11.13 17:37:49 2: dummy set FHZTimeout HeizGaeste
2008.11.13 17:37:50 1: Timeout HeizGaeste, set FHZ reopen wird
gestartet
2008.11.13 17:37:50 1: USB device /dev/usb/tts/0 closed
2008.11.13 17:37:55 1: USB device /dev/usb/tts/0 reopened
2008.11.13 17:37:58 1: Trying again get FHZ init2 (2 out of 3)
Line 300: Select error -1 / Bad file descriptor
        (in cleanup) Can't call method "opened" on an undefined value
at /usr/lib/perl5/5.8/Device/SerialPort.pm line 2020 during global
destruction.
Fhem Absturz. Reload Fhem
-------------
Der zugehörige Quellcode (bis auf die Log 4 unverändert :-) )
  vec($rin, $server->fileno(), 1) = 1;
  foreach my $p (keys %selectlist) {
    Log 4,"P:$p, $selectlist{$p}{FD}";
    vec($rin, $selectlist{$p}{FD}, 1) = 1
  }
  foreach my $c (keys %client) {
    Log 4,"C:$c, fileno($client{$c}{fd})";
    vec($rin, fileno($client{$c}{fd}), 1) = 1;
  }

  my $timeout = HandleTimeout();
  $timeout = 0.1 if(!defined($timeout) && keys %readyfnlist);
  my $nfound = select($rout=$rin, undef, undef, $timeout);

  CommandShutdown(undef, undef) if($sig_term);

  if($nfound < 0) {
    next if ($! == 0);
    die("Line 300: Select error $nfound / $!\n");
  }

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

Dr. Boris Neubert

                                             

Hallo,

Am Donnerstag, 13. November 2008 schrieb klaus:
> $i zeigt wohl auf ein leeres Array. Ergebnis: $tim ist leer, daher
> Warning bei der <= Abfrage. Beim Unterprogramm Aufruf dann der
> Absturz, da sowohl FN alsauch ARG leer ist.

ich habe wohl genau das gleiche Problem beim Einsatz vom Watchdogs, weswegen
ich Watchdogs derzeit nicht einsetze (siehe mein Posting "watchdog related
crashes?" vom 27.10.).

> Vielleicht hilft erstmal eine Sicherheitsabfrage ob $i leer ist, für
> diesen Fall eine definierte Fehlermeldung ausgeben damit das Programm
> nicht zum Absturz kommt. Und den UP Aufruf mit "use Error" absichern?

M.E. ist es besser, die Ursache der nicht initialisierten Variablen zu
beseitigen als die Folgen zu mindern. Meine Vermutung ist, daß die
Buchhaltung bei den at-Kommandos durcheinander kommt. Habe mich allerdings ob
der Komplexität noch nicht befleißigt, der Sache im Detail nachzugehen. Ich
hoffte, daß Rudi schneller sagen kann, an welcher Stelle die leeren Elemente
nicht abgeräumt werden.

Viele Grüße,
Boris



--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-
Globaler Moderator, Developer, aktives Mitglied des FHEM e.V. (Marketing, Verwaltung)
Bitte keine unaufgeforderten privaten Nachrichten!

Guest

Originally posted by: <email address deleted>

Fehler ist immer noch da, denke hängt mit Boris' "watchdog releated
crashes" zusammen.
Passiert immer nach watchdog trigger, der bei mir einen FHZ reopen
auslöst.

@Rudi, soll ich nochmal nen Trace einbauen?

Log:
2008.12.21 20:30:30 3: Watchdog waHG triggered
2008.12.21 20:30:30 2: dummy set FHZTimeout HeizGaeste
2008.12.21 20:30:31 1: Timeout HeizGaeste, set FHZ reopen wird
gestartet
2008.12.21 20:30:31 1: USB device /dev/usb/tts/1 closed
2008.12.21 20:30:36 1: USB device /dev/usb/tts/1 reopened
Select error -1 / Bad file descriptor
        (in cleanup) Can't call method "opened" on an undefined value
at /usr/lib/perl5/5.8/Device/SerialPort.pm line 2020 during global
destruction.

Fehlerhäufigkeit siehe hier:
fhem.log.save081215-1707:Select error -1 / Bad file descriptor
fhem.log.save081215-1718:Select error -1 / Bad file descriptor
fhem.log.save081215-1732:Select error -1 / Bad file descriptor
fhem.log.save081215-2136:Select error -1 / Bad file descriptor
fhem.log.save081216-1420:Select error -1 / Bad file descriptor
fhem.log.save081216-1517:Select error -1 / Bad file descriptor
fhem.log.save081217-1750:Select error -1 / Bad file descriptor
fhem.log.save081218-1447:Select error -1 / Bad file descriptor
fhem.log.save081218-2344:Select error -1 / Bad file descriptor
fhem.log.save081219-1754:Select error -1 / Bad file descriptor
fhem.log.save081219-1858:Select error -1 / Bad file descriptor
fhem.log.save081220-0016:Select error -1 / Bad file descriptor
fhem.log.save081220-1806:Select error -1 / Bad file descriptor
fhem.log.save081220-2004:Select error -1 / Bad file descriptor
fhem.log.save081220-2153:Select error -1 / Bad file descriptor
fhem.log.save081221-0227:Select error -1 / Bad file descriptor
fhem.log.save081221-2030:Select error -1 / Bad file descriptor

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-

rudolfkoenig

                                                   

> @Rudi, soll ich nochmal nen Trace einbauen?

Erst mal bitte ueberpruefen, dass Du die neueste Version von fhem.pl
und allen Modulen verwendest (auch 01_FHEMWEB, wenn Du den auch
verwendest). Wenn das der Fall ist, dann bitte trace einbauen, und
irgenwie lokalisieren, woran das Problem liegt.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "FHZ1000 users on Linux" group.
To post to this group, send email to FHZ1000-users-on-unix@googlegroups.com
To unsubscribe from this group, send email to FHZ1000-users-on-unix+unsubscribe@googlegroups.com
For more options, visit this group at http://groups.google.com/group/FHZ1000-users-on-unix?hl=en
-~----------~----~----~----~------~----~------~--~-