<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
</head>
<body text="#000000" bgcolor="#FFFFFF">
On 5/8/18 12:34 PM, George Poulson wrote:<br>
<blockquote type="cite"
cite="mid:CACgjHiKo5StxhABnRCWktD-_Rcgyw2TjbsY8GNBk840QiabjJw@mail.gmail.com">
<div dir="ltr">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...<br>
<div class="gmail_default" style="font-size:small"><br>
</div>
<div class="gmail_default" style="font-size:small">My Mythweb
'recorded programmes' screen shows: <br>
<span id="gmail-programcount">7</span> programs, using <span
id="gmail-diskused">19 GB</span> (<span id="gmail-totaltime">8
hrs 49 mins</span>) out of <span id="gmail-disksize">913 GB</span>
(<span id="gmail-diskfree">626 GB</span> free).<br>
<br>
</div>
<div class="gmail_default" style="font-size:small">All of the
thumbnails are there in the storage directory and all the file
ownerships and permissions seem OK:<br>
<br>
george@tvbox:/raid/mythtv/recordings$ ls -l<br>
total 19762644<br>
-rw-r--r-- 1 mythtv mythtv 3322000608 May 6 21:05
21760_20180506185800.ts<br>
-rw-rw-rw- 1 mythtv mythtv 6104 May 7 07:50
21760_20180506185800.ts.-1.100x56.png<br>
-rw-rw-rw- 1 mythtv mythtv 13788 May 8 17:26
21760_20180506185800.ts.-1.-1x371.jpg<br>
-rw-rw-rw- 1 mythtv mythtv 1694 May 8 17:27
21760_20180506185800.ts.-1.-1x67.jpg<br>
-rw-rw-rw- 1 mythtv mythtv 967077 May 6 21:30
21760_20180506185800.ts.png<br>
-rw-r--r-- 1 mythtv mythtv 4210715712 May 8 06:05
53556_20180508025800.ts<br>
-rw-rw-rw- 1 mythtv mythtv 8435 May 8 08:07
53556_20180508025800.ts.-1.100x56.png<br>
-rw-rw-rw- 1 mythtv mythtv 24948 May 8 17:26
53556_20180508025800.ts.-1.-1x371.jpg<br>
-rw-rw-rw- 1 mythtv mythtv 2430 May 8 17:27
53556_20180508025800.ts.-1.-1x67.jpg<br>
-rw-rw-rw- 1 mythtv mythtv 238003 May 8 06:40
53556_20180508025800.ts.png<br>
</div>
<div class="gmail_default" style="font-size:small">......
(listing snipped) .....<br>
</div>
<div class="gmail_default" style="font-size:small"><br>
<br>
</div>
<div class="gmail_default" style="font-size:small">find-orphans
reports:<br>
<br>
george@tvbox:~$ ./find-orphans.py<br>
Recordings with missing files<br>
tvbox: Syria - The World's
War
7940_20180503195800.ts<br>
tvbox: Syria - The World's
War
7940_20180504195800.ts<br>
tvbox: The
Durrells
21760_20180506185800.ts<br>
tvbox: The Road to
Palmyra
9931_20180507195800.ts<br>
tvbox: World Rallycross - Catalunya -
Barcelona 53556_20180508025800.ts<br>
tvbox: World's Most Dangerous Roads -
Nepal 7506_20180505075800.ts<br>
tvbox: World's Most Dangerous Roads -
Bolivia 7506_20180505065800.ts<br>
Count: 7<br>
Please select from the following<br>
1. Delete orphaned recording entries<br>
2. Refresh list<br>
> <br>
<br>
</div>
<div class="gmail_default" style="font-size:small">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!!<br>
</div>
</div>
</blockquote>
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.<br>
</body>
</html>