LinHES Forums
http://forums.linhes.org/

autoexpire - keeps trying to delete a file that isn't there
http://forums.linhes.org/viewtopic.php?f=6&t=20143
Page 1 of 1

Author:  neutron68 [ Sun Jul 12, 2009 6:05 pm ]
Post subject:  autoexpire - keeps trying to delete a file that isn't there

My friend's KM R5.5 box keeps trying (over and over and over) to autoexpire a file that was already deleted.
Code:
2009-07-10 19:44:32.174 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2009-07-10 19:44:32.183 Expiring 315 MBytes for 1201 @ Sat Jun 20 00:00:00 2009 => The NewsHour With Jim Lehrer
2009-07-10 19:44:32.195 ERROR when trying to delete file: /GetPlaybackURL/UNABLE/TO/FIND/LOCAL/FILE/ON/mythtv/1201_20090620005714.mpg. File doesn't exist.  Database metadata will not be removed.
2009-07-10 19:44:32.205 mythbackend: Last message repeated 2 times: Running housekeeping thread
2009-07-10 19:44:32.218 mythbackend: Delete Recording: File /GetPlaybackURL/UNABLE/TO/FIND/LOCAL/FILE/ON/mythtv/1201_20090620005714.mpg does not exist for chanid 1201 at Sat Jun 20 00:57:14 2009 when trying to delete recording.

The file was deleted just before I did an upgrade on his box from R5F27 to R5.5.

Can I fix his database and have this problem solved, using these commands?
Code:
/etc/init.d/mythtv-backend stop
/etc/init.d/mysql stop
cd /var/lib/mysql/mythconverg
myisamchk -f *.MYI
myisamchk -r *.MYI
/etc/init.d/mysql start
/etc/init.d/mythtv-backend start

Author:  mihanson [ Mon Jul 13, 2009 10:58 am ]
Post subject: 

Code:
$ touch /path/to/mythtv/1201_20090620005714.mpg

and let autoexpire delete an empty file. :)

Author:  neutron68 [ Mon Jul 13, 2009 4:20 pm ]
Post subject:  tried it

Interesting approach :)

I just tried the 'touch' command and created the empty file in the /myth/tv directory. Then, I changed the user and owner to mythtv so it would match all the other files in there.
Code:
chown mythtv:mythtv 1201_20090620005714.mpg

tick tick tick

I just waited 15 minutes for the autoexpire job to run again. It seems to have worked - no errors this time! :D
Code:
2009-07-13 17:28:03.424 AutoExpire: CalcParams(): Max required Free Space: 3.0 GB w/freq: 15 min
2009-07-13 17:28:03.431 Expiring 315 MBytes for 1201 @ Sat Jun 20 00:00:00 2009 => The NewsHour With Jim Lehrer
2009-07-13 17:28:55.687 Reschedule requested for id 0.
2009-07-13 17:28:55.993 Scheduled 88 items in 0.3 = 0.00 match + 0.30 place
2009-07-13 17:28:56.009 scheduler: Scheduled items: Scheduled 88 items in 0.3 = 0.00 match + 0.30 place

THANKS! :)
Eric

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/