[mythtv-users] Inconsistent file deletions from the backend.

Zarthan South zarthan at gmail.com
Wed Mar 21 23:13:04 UTC 2012


I am baffled by what appears to be a totally inconsistent behavior. After a
recording I use a user job to convert recordings to mp4 and then add them
back into the database. As part of the conversion I use mythlink to create
a directory structure for myth upnp. When I delete the file from mythweb I
use a system event to find and remove the broken links that were created
with mythlink. Perhaps up to 20% of the file deletions fail and even though
the database is updated and I no longer show the program in mythweb the
actual mp4 files are still on the disk.  I set the logs to only show
file,extra to see if I could see what is happening.
Looking at the logs it seems like in spite of the fact that the mp4 file is
found, the delete function is against the mpg file.

Can someone help me understand this?


MythTV Version   : v0.24.1-80-g1de0431
MythTV Branch    : fixes/0.24
Network Protocol : 63
Library API      : 0.24.20110505-1
One that didn't work:

2012-03-21 17:58:50.692 MainServer::ANN Monitor
2012-03-21 17:58:50.716 adding: dgsws as a client (events: 2)
2012-03-21 17:58:50.761 MainServer::ANN Monitor
2012-03-21 17:58:50.791 adding: dgsws as a client (events: 2)
2012-03-21 17:58:50.841 MythSystemEventHandler: SubstituteMatches: BEFORE:
/usr/sbin/stale_links.sh
2012-03-21 17:58:50.879 SG(Default): FindRecordingFile: Searching for
'1041_20120321165100.mp4'
2012-03-21 17:58:50.908 SG(Default): FindRecordingDir: Checking '/tv' for
'/tv/1041_20120321165100.mp4'
2012-03-21 17:58:50.933 SG(Default): FindRecordingFile: Found
'/tv/1041_20120321165100.mp4'
2012-03-21 17:58:50.958 ProgramInfo(1041_20120321165100.mp4):
GetPlaybackURL: File is local: '/tv/1041_20120321165100.mp4'
2012-03-21 17:58:50.983 MythSystemEventHandler: SubstituteMatches: AFTER :
/usr/sbin/stale_links.sh
2012-03-21 17:58:51.008 Launching: /usr/sbin/stale_links.sh
2012-03-21 17:58:51.038 PID 22564: launched
2012-03-21 17:58:53.848 About to delete file: /tv/1041_20120321165100.mpg
2012-03-21 17:58:56.077 About to delete file:
/tv/1041_20120321165100.mpg.-1.100x56.png
2012-03-21 17:58:56.107 About to delete file:
/tv/1041_20120321165100.mpg.png


And One that did:

2012-03-21 18:07:12.644 MythSystemEventHandler: SubstituteMatches: BEFORE:
/usr/sbin/stale_links.sh
2012-03-21 18:07:12.671 SG(Default): FindRecordingFile: Searching for
'1041_20120304080000.mp4'
2012-03-21 18:07:12.716 SG(Default): FindRecordingDir: Checking '/tv' for
'/tv/1041_20120304080000.mp4'
2012-03-21 18:07:12.741 SG(Default): FindRecordingDir: Checking
'/tv/Shows/_Series_' for '/tv/Shows/_Series_/1041_20120304080000.mp4'
2012-03-21 18:07:12.766 SG(Default): FindRecordingFile: Found
'/tv/Shows/_Series_/1041_20120304080000.mp4'
2012-03-21 18:07:12.792 ProgramInfo(1041_20120304080000.mp4):
GetPlaybackURL: File is local: '/tv/Shows/_Series_/1041_20120304080000.mp4'
2012-03-21 18:07:12.825 MythSystemEventHandler: SubstituteMatches: AFTER :
/usr/sbin/stale_links.sh
2012-03-21 18:07:12.850 Launching: /usr/sbin/stale_links.sh
2012-03-21 18:07:12.886 PID 22697: launched
2012-03-21 18:07:15.652 About to delete file:
/tv/Shows/_Series_/1041_20120304080000.mp4
2012-03-21 18:07:18.486 About to delete file:
/tv/Shows/_Series_/1041_20120304080000.mp4.-1.100x56.png
2012-03-21 18:07:18.517 About to delete file:
/tv/Shows/_Series_/1041_20120304080000.mp4.png
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.mythtv.org/pipermail/mythtv-users/attachments/20120321/7e0e19ab/attachment.html 


More information about the mythtv-users mailing list