[mythtv-users] Maintenance script 'find-orphans.py' reports *all* recordings as having missing files.
Dan Wilga
mythtv-users2 at dwilga-linux1.amherst.edu
Tue May 8 21:12:48 UTC 2018
On 5/8/18 12:34 PM, George Poulson wrote:
> I have just come across a weird problem where the find-orphans.py
> script (which I'm in the habit of running periodically to keep things
> tidy) is strangely reporting all my recordings as having missing files...
>
> My Mythweb 'recorded programmes' screen shows:
> 7 programs, using 19 GB (8 hrs 49 mins) out of 913 GB (626 GB free).
>
> All of the thumbnails are there in the storage directory and all the
> file ownerships and permissions seem OK:
>
> george at tvbox:/raid/mythtv/recordings$ ls -l
> total 19762644
> -rw-r--r-- 1 mythtv mythtv 3322000608 May 6 21:05 21760_20180506185800.ts
> -rw-rw-rw- 1 mythtv mythtv 6104 May 7 07:50
> 21760_20180506185800.ts.-1.100x56.png
> -rw-rw-rw- 1 mythtv mythtv 13788 May 8 17:26
> 21760_20180506185800.ts.-1.-1x371.jpg
> -rw-rw-rw- 1 mythtv mythtv 1694 May 8 17:27
> 21760_20180506185800.ts.-1.-1x67.jpg
> -rw-rw-rw- 1 mythtv mythtv 967077 May 6 21:30
> 21760_20180506185800.ts.png
> -rw-r--r-- 1 mythtv mythtv 4210715712 May 8 06:05 53556_20180508025800.ts
> -rw-rw-rw- 1 mythtv mythtv 8435 May 8 08:07
> 53556_20180508025800.ts.-1.100x56.png
> -rw-rw-rw- 1 mythtv mythtv 24948 May 8 17:26
> 53556_20180508025800.ts.-1.-1x371.jpg
> -rw-rw-rw- 1 mythtv mythtv 2430 May 8 17:27
> 53556_20180508025800.ts.-1.-1x67.jpg
> -rw-rw-rw- 1 mythtv mythtv 238003 May 8 06:40
> 53556_20180508025800.ts.png
> ...... (listing snipped) .....
>
>
> find-orphans reports:
>
> george at tvbox:~$ ./find-orphans.py
> Recordings with missing files
> tvbox: Syria - The World's War 7940_20180503195800.ts
> tvbox: Syria - The World's War 7940_20180504195800.ts
> tvbox: The Durrells 21760_20180506185800.ts
> tvbox: The Road to Palmyra 9931_20180507195800.ts
> tvbox: World Rallycross - Catalunya -
> Barcelona 53556_20180508025800.ts
> tvbox: World's Most Dangerous Roads -
> Nepal 7506_20180505075800.ts
> tvbox: World's Most Dangerous Roads -
> Bolivia 7506_20180505065800.ts
> Count: 7
> Please select from the following
> 1. Delete orphaned recording entries
> 2. Refresh list
> >
>
> Everything othewise appears to be working fine, but this kind of
> renders the find-orphans script unusable as if I select option (1)
> then it really does delete *ALL* of my recordings!!
One important thing I've found about find-orphans.py is that you need to
give it your backend's hostname (as stored in the hostname column of the
settings table in MySQL) as an argument. If this is different from the
exact Linux hostname, it causes problems.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mythtv.org/pipermail/mythtv-users/attachments/20180508/93b7e6ff/attachment.html>
More information about the mythtv-users
mailing list