Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[vdr] Re: lock-vdr



Klaus Schmidinger wrote:
> 
> Helmut Auer wrote:
> >
> > Hello,
> > Today vdr was rebooted by watchdog ( set to 10 seconds ) several times.
> > In /var/log/messages I found the following:
> > ...
> > Sep  9 21:45:09 vdr1 vdr[1453]: ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!
> > Sep  9 21:45:29 vdr1 last message repeated 20 times
> > Sep  9 21:45:31 vdr1 vdr[1453]: ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!
> > Sep  9 21:45:51 vdr1 last message repeated 20 times
> > Sep  9 21:45:52 vdr1 vdr[1453]: ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!
> > Sep  9 21:46:12 vdr1 last message repeated 20 times
> > Sep  9 21:46:13 vdr1 vdr[1453]: ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!
> > Sep  9 21:46:15 vdr1 last message repeated 2 times
> > Sep  9 21:46:16 vdr1 vdr[1453]: ERROR: removing stale lock file
> > '/video/.lock-vdr'
> > Sep  9 21:46:16 vdr1 vdr[1453]: ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!
> > Sep  9 21:46:17 vdr1 vdr[1453]: removing recording
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del
> > Sep  9 21:46:18 vdr1 vdr[1453]: removing
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del/index.vdr
> > Sep  9 21:46:18 vdr1 vdr[1453]: removing
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del/summary.vdr
> > Sep  9 21:46:18 vdr1 vdr[1453]: removing
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del/002.vdr
> > Sep  9 21:46:23 vdr1 vdr[1453]: removing
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del/003.vdr
> > Sep  9 21:46:26 vdr1 vdr[1453]: PANIC: watchdog timer expired - exiting!
> > ....
> > Sep  9 21:50:27 vdr1 vdr[1634]: ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!
> > Sep  9 21:50:47 vdr1 last message repeated 20 times
> > Sep  9 21:50:49 vdr1 vdr[1634]: ERROR: channel 46 not sync'ed on DVB card 1!
> > Sep  9 21:50:49 vdr1 vdr[1634]: retrying
> > Sep  9 21:50:49 vdr1 vdr[1634]: ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!
> > Sep  9 21:51:09 vdr1 last message repeated 20 times
> > Sep  9 21:51:10 vdr1 vdr[1634]: ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!
> > Sep  9 21:51:24 vdr1 last message repeated 14 times
> > Sep  9 21:51:25 vdr1 vdr[1634]: removing recording
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del
> > Sep  9 21:51:25 vdr1 vdr[1634]: removing
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del/resume.vdr
> > Sep  9 21:51:25 vdr1 vdr[1634]: removing
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del/marks.vdr
> > Sep  9 21:51:25 vdr1 vdr[1634]: removing
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug/2002-09-08.20.10.99.99.del
> > Sep  9 21:51:25 vdr1 vdr[1634]: removing
> > /video/James_Bond_007_-_Die_Welt_ist_nicht_genug
> > ...
> >
> > After I deleted the file /video/.lock-vdr manually the problem was gone.
> > Any ideas what is the reason for that "ERROR: attempt to unlock
> > /video/.lock-vdr without holding a lock!"
> 
> This is actually a flaw in the cLockFile class. I guess I added this error
> message during development and never took it out any more. Please delete
> the lines
> 
>   else
>      esyslog("ERROR: attempt to unlock %s without holding a lock!", fileName);
> 
> from the function cLockFile::Unlock(void) in tools.c.
> 
> BTW: setting the watchdog to 10 seconds does seem a little short, though.

Well, to be more precise, the reboot happened because removing the files took longer
than the watchdog timeout of 10 seconds. I suggest you set the timeout to some 30-60
sevonds. The "attempt to unlock..." message is not directly related to the reboot
problem, but nevertheless I'll remove it.

Klaus
-- 
_______________________________________________________________

Klaus Schmidinger                       Phone: +49-8635-6989-10
CadSoft Computer GmbH                   Fax:   +49-8635-6989-40
Hofmark 2                               Email:   kls@cadsoft.de
D-84568 Pleiskirchen, Germany           URL:     www.cadsoft.de
_______________________________________________________________




Home | Main Index | Thread Index