Mailing List Archive

Orphans
Can anyone suggest a method of removing orphaned db entries / video files
when running multiple backends?

I've tried the dryrun option and am concerned that many of the records that
would be removed are located on the secondary backend.


Paul
Re: Orphans [ In reply to ]
On 11/4/2010 00:39, Paul Buchanan wrote:
> Can anyone suggest a method of removing orphaned db entries / video
> files when running multiple backends?

http://mythtv.org/wiki/Find_orphans.py

It exists for informative purposes only, and will not delete any files,
however it will use Myth Protocol for directory listings on remote
backends, allowing you to scan an entire MythTV system, rather than just
one machine.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: Orphans [ In reply to ]
Brilliant. I'm so glad I finally joined this mailing list

On Thu, Nov 4, 2010 at 3:53 PM, Raymond Wagner <raymond@wagnerrp.com> wrote:

> On 11/4/2010 00:39, Paul Buchanan wrote:
>
>> Can anyone suggest a method of removing orphaned db entries / video files
>> when running multiple backends?
>>
>
> http://mythtv.org/wiki/Find_orphans.py
>
> It exists for informative purposes only, and will not delete any files,
> however it will use Myth Protocol for directory listings on remote backends,
> allowing you to scan an entire MythTV system, rather than just one machine.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
>
Re: Orphans [ In reply to ]
On 11/4/2010 01:01, Paul Buchanan wrote:
> On Thu, Nov 4, 2010 at 3:53 PM, Raymond Wagner <raymond@wagnerrp.com
> <mailto:raymond@wagnerrp.com>> wrote:
>
> On 11/4/2010 00:39, Paul Buchanan wrote:
>
> Can anyone suggest a method of removing orphaned db entries /
> video files when running multiple backends?
>
>
> http://mythtv.org/wiki/Find_orphans.py
>
> It exists for informative purposes only, and will not delete any
> files, however it will use Myth Protocol for directory listings on
> remote backends, allowing you to scan an entire MythTV system,
> rather than just one machine.
>
>
> Brilliant. I'm so glad I finally joined this mailing list

I forgot to mention, that will only work against the python bindings
shipped with trunk and 0.24.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://mythtv.org/cgi-bin/mailman/listinfo/mythtv-users
Re: orphans [ In reply to ]
On 9/28/20 7:31 AM, Daryl McDonald wrote:
> I'm getting an error when I run "./find_orphans.pl
> <http://find_orphans.pl>" :
>
> the following recordings will be deleted
>   trieli: Council of Dads - The Sixth Stage                  
> 1321_20200514235900.ts
>   trieli: Council of Dads - Heart Medicine                
>  1321_20200604235900.ts
>   trieli: Fruitvale Station                   1002_20200706025900.ts
>   trieli: NFL Football - Carolina Panthers at Tampa Bay Buccaneers    
>        1171_20200920165900.ts
>   trieli: The Code                  1503_20200711235900.ts
>   trieli: The Good, the Bad and the Ugly                
>  1322_20200607205900.ts
>                       Count:           6
> Are you sure you want to continue?
> > yes
> Traceback (most recent call last):
>   File "./find_orphans.py", line 230, in <module>
>     main()
>   File "./find_orphans.py", line 214, in main
>     opt[1](opt[2])
>   File "./find_orphans.py", line 129, in delete_recs
>     rec.delete(True, True)
>   File "/usr/lib/python3/dist-packages/MythTV/dataheap.py", line 377,
> in delete
>     return self.getProgram().delete(force, rerecord)
>   File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 972,
> in delete
>     res = int(be.deleteRecording(self, force=force))
>   File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 668,
> in deleteRecording
>     [command,program.toString()]))
>   File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 962,
> in toString
>     return BACKEND_SEP.join(self._deprocess())
>   File "/usr/lib/python3/dist-packages/MythTV/altdict.py", line 178,
> in _deprocess
>     data[i] = self._inv_trans[self._field_type[i]](v)
>   File "/usr/lib/python3/dist-packages/MythTV/altdict.py", line 113,
> in <lambda>
>     lambda x: str(int(x.timestamp())),
>   File "/usr/lib/python3/dist-packages/MythTV/utility/dt.py", line
> 481, in timestamp
>     return ((utc_naive - utc_epoch).total_seconds())
> TypeError: can't subtract offset-naive and offset-aware datetime
>
> Do I need to "touch" these files then re-try?
>
> If so, would that be "sudo touch
> /drives/storage1/mythtv/recordings/1321_20200514235900.ts" and so on
> for each?
>
> TIA  Daryl


I recently had issues with the find_orphan script after upgrading to
v31.  If it's the same issue then... The script was identifying all my
programs as orphans.  It's a script problem. I found this edit note in
my version of the script.

#!/usr/bin/python3
# modified from v31 original from wiki
https://www.mythtv.org/wiki/Find_orphans.py
# I replaced 2 occurances of BackendServerIP with BackendServerAddr

look at the archive(https://lists.archive.carbon60.com/mythtv/users/)
and search for BackendServerAddr for a discussion on it.

Jim A
Re: orphans [ In reply to ]
On Mon, 28 Sep 2020 07:31:30 -0400, you wrote:

>I'm getting an error when I run "./find_orphans.pl" :
>
>the following recordings will be deleted
> trieli: Council of Dads - The Sixth Stage
> 1321_20200514235900.ts
> trieli: Council of Dads - Heart Medicine
> 1321_20200604235900.ts
> trieli: Fruitvale Station
> 1002_20200706025900.ts
> trieli: NFL Football - Carolina Panthers at Tampa Bay Buccaneers
> 1171_20200920165900.ts
> trieli: The Code
> 1503_20200711235900.ts
> trieli: The Good, the Bad and the Ugly
> 1322_20200607205900.ts
>
> Count: 6
>Are you sure you want to continue?
>> yes
>Traceback (most recent call last):
> File "./find_orphans.py", line 230, in <module>
> main()
> File "./find_orphans.py", line 214, in main
> opt[1](opt[2])
> File "./find_orphans.py", line 129, in delete_recs
> rec.delete(True, True)
> File "/usr/lib/python3/dist-packages/MythTV/dataheap.py", line 377, in
>delete
> return self.getProgram().delete(force, rerecord)
> File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 972, in
>delete
> res = int(be.deleteRecording(self, force=force))
> File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 668, in
>deleteRecording
> [command,program.toString()]))
> File "/usr/lib/python3/dist-packages/MythTV/mythproto.py", line 962, in
>toString
> return BACKEND_SEP.join(self._deprocess())
> File "/usr/lib/python3/dist-packages/MythTV/altdict.py", line 178, in
>_deprocess
> data[i] = self._inv_trans[self._field_type[i]](v)
> File "/usr/lib/python3/dist-packages/MythTV/altdict.py", line 113, in
><lambda>
> lambda x: str(int(x.timestamp())),
> File "/usr/lib/python3/dist-packages/MythTV/utility/dt.py", line 481, in
>timestamp
> return ((utc_naive - utc_epoch).total_seconds())
>TypeError: can't subtract offset-naive and offset-aware datetime
>
>Do I need to "touch" these files then re-try?
>
>If so, would that be "sudo touch
>/drives/storage1/mythtv/recordings/1321_20200514235900.ts" and so on for
>each?
>
>TIA Daryl

My guess is that you have found a bug resulting from the MythTV Python
bindings having recently been converted from Python 2 to Python 3. I
think you will be the first person to get them to execute that
particular line of code after the conversion, and it does not work in
Python 3. This is one of the hazards of doing Python 2 to Python 3
conversions - you have to be able to get the code to run all parts of
itself somehow, otherwise you do not find things like this. It is an
incredibly difficult task to ensure that you have managed to get every
line of code to run, and even more difficult to ensure that you have
tested with every possible input value.

I have had a quick look at the code for "def timestamp" in dt.py where
this happens and it looks like the author has done the right things to
make both the utc_naive and utc_epoch variables into naive datetime
variables, so I am not sure why you are getting this error. You
should probably file a bug report. Note that bug reports now need to
be done on the github page instead of via Trac:

https://github.com/MythTV/mythtv/issues
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: orphans [ In reply to ]
On Mon, Sep 28, 2020 at 1:56 PM Stephen Worthington
<stephen_agent@jsw.gen.nz> wrote:

> You should probably file a bug report.

And note that as a user contributed script
(and not part of the project's code base),
the bug report would need to be made to
the author (and/or the last updater) as
documented on the wiki.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: orphans [ In reply to ]
On Mon, 28 Sep 2020 14:14:25 +0000, you wrote:

>On Mon, Sep 28, 2020 at 1:56 PM Stephen Worthington
><stephen_agent@jsw.gen.nz> wrote:
>
>> You should probably file a bug report.
>
>And note that as a user contributed script
>(and not part of the project's code base),
>the bug report would need to be made to
>the author (and/or the last updater) as
>documented on the wiki.

The bug is in the MythTV Python bindings, not in find_orphans.py.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: orphans [ In reply to ]
On Mon, Sep 28, 2020 at 10:39 AM Stephen Worthington <
stephen_agent@jsw.gen.nz> wrote:

> On Mon, 28 Sep 2020 14:14:25 +0000, you wrote:
>
> >On Mon, Sep 28, 2020 at 1:56 PM Stephen Worthington
> ><stephen_agent@jsw.gen.nz> wrote:
> >
> >> You should probably file a bug report.
> >
> >And note that as a user contributed script
> >(and not part of the project's code base),
> >the bug report would need to be made to
> >the author (and/or the last updater) as
> >documented on the wiki.
>
> The bug is in the MythTV Python bindings, not in find_orphans.py.
>
> This also could be a little different (maybe) because most of the files in
question have been zero byte recordings or recordings that were deleted,
but not backed up by mythconverg, then a system rebuild and mythconverg
restore.
Re: orphans [ In reply to ]
On Mon, 28 Sep 2020 11:44:19 -0400, you wrote:

>On Mon, Sep 28, 2020 at 10:39 AM Stephen Worthington <
>stephen_agent@jsw.gen.nz> wrote:
>
>> On Mon, 28 Sep 2020 14:14:25 +0000, you wrote:
>>
>> >On Mon, Sep 28, 2020 at 1:56 PM Stephen Worthington
>> ><stephen_agent@jsw.gen.nz> wrote:
>> >
>> >> You should probably file a bug report.
>> >
>> >And note that as a user contributed script
>> >(and not part of the project's code base),
>> >the bug report would need to be made to
>> >the author (and/or the last updater) as
>> >documented on the wiki.
>>
>> The bug is in the MythTV Python bindings, not in find_orphans.py.
>>
>> This also could be a little different (maybe) because most of the files in
>question have been zero byte recordings or recordings that were deleted,
>but not backed up by mythconverg, then a system rebuild and mythconverg
>restore.

Those situations are exactly what find_orphans.py is all about fixing.
I have used it for both those problems in the past.
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: orphans [ In reply to ]
Daryl,
this was fixed on June 15th (#13622).
Please try to update your local installation of MythTV.
And ensure that you are using the latest file find_orphans.py from the wiki.
In case this does not not help, please file a bug report as Stephen
suggested.
Please include in the bug report
- the output of 'mythbackend --version'
- the output of 'python3 --version'
- the output of 'mythpython --version'
- the traceback itself.

Regards,
Roland
Re: orphans [ In reply to ]
On Mon, Sep 28, 2020 at 1:19 PM Roland Ernst <rcrernst@gmail.com> wrote:

>
> Daryl,
> this was fixed on June 15th (#13622).
> Please try to update your local installation of MythTV.
> And ensure that you are using the latest file find_orphans.py from the
> wiki.
> In case this does not not help, please file a bug report as Stephen
> suggested.
> Please include in the bug report
> - the output of 'mythbackend --version'
> - the output of 'python3 --version'
> - the output of 'mythpython --version'
> - the traceback itself.
>
> Regards,
> Roland
>
>
> daryl@trieli:~$ mythbackend --version
Please attach all output as a file in bug reports.
MythTV Version : v31.0-v31.0
MythTV Branch : fixes/31
Network Protocol : 91
Library API : 31.20200101-1
QT Version : 5.12.5

daryl@trieli:~$ python3 --version
Python 3.8.2
daryl@trieli:~$ mythpython --version
MythTV Python Bindings
local versions
bindings version: 31.0.-1.0
ttvdb version: 2.0-dev
tmdb version: v0.7.0
external versions
lxml version: 4.5.0
MySQLdb version: 1.4.4.final.0
protocol versions
backend: 91
schema: 1361
music schema: 1024
netvision schema: 1007

I just rebuilt this system a week ago.
Re: orphans [ In reply to ]
On Mon, Sep 28, 2020 at 7:37 PM Daryl McDonald <darylangela@gmail.com>
wrote:

>
>
> On Mon, Sep 28, 2020 at 1:19 PM Roland Ernst <rcrernst@gmail.com> wrote:
>
>>
>> Daryl,
>> this was fixed on June 15th (#13622).
>> Please try to update your local installation of MythTV.
>> And ensure that you are using the latest file find_orphans.py from the
>> wiki.
>> In case this does not not help, please file a bug report as Stephen
>> suggested.
>> Please include in the bug report
>> - the output of 'mythbackend --version'
>> - the output of 'python3 --version'
>> - the output of 'mythpython --version'
>> - the traceback itself.
>>
>> Regards,
>> Roland
>>
>>
>> daryl@trieli:~$ mythbackend --version
> Please attach all output as a file in bug reports.
> MythTV Version : v31.0-v31.0
> MythTV Branch : fixes/31
> Network Protocol : 91
> Library API : 31.20200101-1
> QT Version : 5.12.5
>
> daryl@trieli:~$ python3 --version
> Python 3.8.2
> daryl@trieli:~$ mythpython --version
> MythTV Python Bindings
> local versions
> bindings version: 31.0.-1.0
> ttvdb version: 2.0-dev
> tmdb version: v0.7.0
> external versions
> lxml version: 4.5.0
> MySQLdb version: 1.4.4.final.0
> protocol versions
> backend: 91
> schema: 1361
> music schema: 1024
> netvision schema: 1007
>
> I just rebuilt this system a week ago.
>
>
By 'rebuilt this system' you mean that you
- compiled MythTV from source
or
- installed MythTV on a fresh setup of the OS using default package
manager ?
What OS and version are you using?
Re: orphans [ In reply to ]
On Mon, Sep 28, 2020 at 2:08 PM Roland Ernst <rcrernst@gmail.com> wrote:

>
>
> On Mon, Sep 28, 2020 at 7:37 PM Daryl McDonald <darylangela@gmail.com>
> wrote:
>
>>
>>
>> On Mon, Sep 28, 2020 at 1:19 PM Roland Ernst <rcrernst@gmail.com> wrote:
>>
>>>
>>> Daryl,
>>> this was fixed on June 15th (#13622).
>>> Please try to update your local installation of MythTV.
>>> And ensure that you are using the latest file find_orphans.py from the
>>> wiki.
>>> In case this does not not help, please file a bug report as Stephen
>>> suggested.
>>> Please include in the bug report
>>> - the output of 'mythbackend --version'
>>> - the output of 'python3 --version'
>>> - the output of 'mythpython --version'
>>> - the traceback itself.
>>>
>>> Regards,
>>> Roland
>>>
>>>
>>> daryl@trieli:~$ mythbackend --version
>> Please attach all output as a file in bug reports.
>> MythTV Version : v31.0-v31.0
>> MythTV Branch : fixes/31
>> Network Protocol : 91
>> Library API : 31.20200101-1
>> QT Version : 5.12.5
>>
>> daryl@trieli:~$ python3 --version
>> Python 3.8.2
>> daryl@trieli:~$ mythpython --version
>> MythTV Python Bindings
>> local versions
>> bindings version: 31.0.-1.0
>> ttvdb version: 2.0-dev
>> tmdb version: v0.7.0
>> external versions
>> lxml version: 4.5.0
>> MySQLdb version: 1.4.4.final.0
>> protocol versions
>> backend: 91
>> schema: 1361
>> music schema: 1024
>> netvision schema: 1007
>>
>> I just rebuilt this system a week ago.
>>
>>
> By 'rebuilt this system' you mean that you
> - compiled MythTV from source
> or
> - installed MythTV on a fresh setup of the OS using default package
> manager ?
> What OS and version are you using?
>
>
> _______________________________________________
>
> the latter, Ubuntu Focal, Mythtv version 31.
Re: orphans [ In reply to ]
Daryl.
it seems like you have installed MythTV from pristine Ubuntu 20.04 packages
Have you installed the corresponding MythTV ppa? See
https://launchpad.net/~mythbuntu/+archive/ubuntu/31
for installation instructions.

If my assumption is correct, please try installing that ppa.

Roland


On Mon, Sep 28, 2020 at 8:59 PM Daryl McDonald <darylangela@gmail.com>
wrote:

>
>
> On Mon, Sep 28, 2020 at 2:08 PM Roland Ernst <rcrernst@gmail.com> wrote:
>
>>
>>
>> On Mon, Sep 28, 2020 at 7:37 PM Daryl McDonald <darylangela@gmail.com>
>> wrote:
>>
>>>
>>>
>>> On Mon, Sep 28, 2020 at 1:19 PM Roland Ernst <rcrernst@gmail.com> wrote:
>>>
>>>>
>>>> Daryl,
>>>> this was fixed on June 15th (#13622).
>>>> Please try to update your local installation of MythTV.
>>>> And ensure that you are using the latest file find_orphans.py from the
>>>> wiki.
>>>> In case this does not not help, please file a bug report as Stephen
>>>> suggested.
>>>> Please include in the bug report
>>>> - the output of 'mythbackend --version'
>>>> - the output of 'python3 --version'
>>>> - the output of 'mythpython --version'
>>>> - the traceback itself.
>>>>
>>>> Regards,
>>>> Roland
>>>>
>>>>
>>>> daryl@trieli:~$ mythbackend --version
>>> Please attach all output as a file in bug reports.
>>> MythTV Version : v31.0-v31.0
>>> MythTV Branch : fixes/31
>>> Network Protocol : 91
>>> Library API : 31.20200101-1
>>> QT Version : 5.12.5
>>>
>>> daryl@trieli:~$ python3 --version
>>> Python 3.8.2
>>> daryl@trieli:~$ mythpython --version
>>> MythTV Python Bindings
>>> local versions
>>> bindings version: 31.0.-1.0
>>> ttvdb version: 2.0-dev
>>> tmdb version: v0.7.0
>>> external versions
>>> lxml version: 4.5.0
>>> MySQLdb version: 1.4.4.final.0
>>> protocol versions
>>> backend: 91
>>> schema: 1361
>>> music schema: 1024
>>> netvision schema: 1007
>>>
>>> I just rebuilt this system a week ago.
>>>
>>>
>> By 'rebuilt this system' you mean that you
>> - compiled MythTV from source
>> or
>> - installed MythTV on a fresh setup of the OS using default package
>> manager ?
>> What OS and version are you using?
>>
>>
>> _______________________________________________
>>
>> the latter, Ubuntu Focal, Mythtv version 31.
> _______________________________________________
> mythtv-users mailing list
> mythtv-users@mythtv.org
> http://lists.mythtv.org/mailman/listinfo/mythtv-users
> http://wiki.mythtv.org/Mailing_List_etiquette
> MythTV Forums: https://forum.mythtv.org
>
Re: orphans [ In reply to ]
On Mon, Sep 28, 2020 at 3:38 PM Roland Ernst <rcrernst@gmail.com> wrote:

> Daryl.
> it seems like you have installed MythTV from pristine Ubuntu 20.04 packages
> Have you installed the corresponding MythTV ppa? See
> https://launchpad.net/~mythbuntu/+archive/ubuntu/31
> for installation instructions.
>
> If my assumption is correct, please try installing that ppa.
>
> Roland
>
>
> On Mon, Sep 28, 2020 at 8:59 PM Daryl McDonald <darylangela@gmail.com>
> wrote:
>
>>
>>
>> On Mon, Sep 28, 2020 at 2:08 PM Roland Ernst <rcrernst@gmail.com> wrote:
>>
>>>
>>>
>>> On Mon, Sep 28, 2020 at 7:37 PM Daryl McDonald <darylangela@gmail.com>
>>> wrote:
>>>
>>>>
>>>>
>>>> On Mon, Sep 28, 2020 at 1:19 PM Roland Ernst <rcrernst@gmail.com>
>>>> wrote:
>>>>
>>>>>
>>>>> Daryl,
>>>>> this was fixed on June 15th (#13622).
>>>>> Please try to update your local installation of MythTV.
>>>>> And ensure that you are using the latest file find_orphans.py from the
>>>>> wiki.
>>>>> In case this does not not help, please file a bug report as Stephen
>>>>> suggested.
>>>>> Please include in the bug report
>>>>> - the output of 'mythbackend --version'
>>>>> - the output of 'python3 --version'
>>>>> - the output of 'mythpython --version'
>>>>> - the traceback itself.
>>>>>
>>>>> Regards,
>>>>> Roland
>>>>>
>>>>>
>>>>> daryl@trieli:~$ mythbackend --version
>>>> Please attach all output as a file in bug reports.
>>>> MythTV Version : v31.0-v31.0
>>>> MythTV Branch : fixes/31
>>>> Network Protocol : 91
>>>> Library API : 31.20200101-1
>>>> QT Version : 5.12.5
>>>>
>>>> daryl@trieli:~$ python3 --version
>>>> Python 3.8.2
>>>> daryl@trieli:~$ mythpython --version
>>>> MythTV Python Bindings
>>>> local versions
>>>> bindings version: 31.0.-1.0
>>>> ttvdb version: 2.0-dev
>>>> tmdb version: v0.7.0
>>>> external versions
>>>> lxml version: 4.5.0
>>>> MySQLdb version: 1.4.4.final.0
>>>> protocol versions
>>>> backend: 91
>>>> schema: 1361
>>>> music schema: 1024
>>>> netvision schema: 1007
>>>>
>>>> I just rebuilt this system a week ago.
>>>>
>>>>
>>> By 'rebuilt this system' you mean that you
>>> - compiled MythTV from source
>>> or
>>> - installed MythTV on a fresh setup of the OS using default package
>>> manager ?
>>> What OS and version are you using?
>>>
>>>
>>> _______________________________________________
>>>
>>> the latter, Ubuntu Focal, Mythtv version 31.
>>
>
Thanks, that solved the orphaned recordings error, so going further I am
unable to delete orphaned videos. Out of four files, five attempts to
delete and four still remain?
Re: orphans [ In reply to ]
On 09/28/2020 04:37 PM, Daryl McDonald wrote:
>
> Thanks, that solved the orphaned recordings error, so going further I
> am unable to delete orphaned videos. Out of four files, five attempts
> to delete and four still remain?

With find_orphans.py, the script simply tells the backend to delete the
recordings, then the backend deletes them when it deletes them
(generally very soon, but could be up to 5min later depending on a bunch
of factors/settings). So, if you run find_orphans.py right after you
told it to delete, it almost always says that they're all (or at least
most) still there.

Are you actually seeing them elsewhere, like in the frontend or
MythWeb? Have they disappeared after some time?

Mike
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org
Re: orphans [ In reply to ]
On Mon, Sep 28, 2020 at 5:48 PM Michael T. Dean <mtdean@thirdcontact.com>
wrote:

> On 09/28/2020 04:37 PM, Daryl McDonald wrote:
> >
> > Thanks, that solved the orphaned recordings error, so going further I
> > am unable to delete orphaned videos. Out of four files, five attempts
> > to delete and four still remain?
>
> With find_orphans.py, the script simply tells the backend to delete the
> recordings, then the backend deletes them when it deletes them
> (generally very soon, but could be up to 5min later depending on a bunch
> of factors/settings). So, if you run find_orphans.py right after you
> told it to delete, it almost always says that they're all (or at least
> most) still there.
>
> Are you actually seeing them elsewhere, like in the frontend or
> MythWeb? Have they disappeared after some time?
>
> Mike
>
> No, and no. I only noticed them by running the script, and upon running
again today four orphaned video files persist.
Re: orphans [ In reply to ]
On 9/29/20 8:05 AM, Daryl McDonald wrote:
> On Mon, Sep 28, 2020 at 5:48 PM Michael T. Dean <mtdean@thirdcontact.com>
> wrote:
>
>> On 09/28/2020 04:37 PM, Daryl McDonald wrote:
>>>
>>> Thanks, that solved the orphaned recordings error, so going further I
>>> am unable to delete orphaned videos. Out of four files, five attempts
>>> to delete and four still remain?
>>
>> With find_orphans.py, the script simply tells the backend to delete the
>> recordings, then the backend deletes them when it deletes them
>> (generally very soon, but could be up to 5min later depending on a bunch
>> of factors/settings). So, if you run find_orphans.py right after you
>> told it to delete, it almost always says that they're all (or at least
>> most) still there.
>>
>> Are you actually seeing them elsewhere, like in the frontend or
>> MythWeb? Have they disappeared after some time?
>>
>> Mike
>>
>> No, and no. I only noticed them by running the script, and upon running
> again today four orphaned video files persist.

Probably worth it to mention that you've checked the directories and files
involved to see that user mythtv has read/write (and search for directories)
permissions.

--
Bill
_______________________________________________
mythtv-users mailing list
mythtv-users@mythtv.org
http://lists.mythtv.org/mailman/listinfo/mythtv-users
http://wiki.mythtv.org/Mailing_List_etiquette
MythTV Forums: https://forum.mythtv.org