Mailing List Archive

Bizarre recording error trying to put recording in root directory
One recording today failed. It has this in the log

 rec->GetPathname(): '/3930_20210419070000.ts'

and then cannot write to the file.

On every other recording I see things like rec->GetPathname():
'/srv/mythtv/video4/recordings/3714_20210419150000.ts

I checked my storage directories, they are set to
/srv/mythtv/video1/recordings through /srv/mythtv/video4/recordings.
Nowhere is root directory specified.

It is supposed to choose the recording group with most space. video4 has
3200 GB, video 1-3 have around 1100 GB each. Root has 21 GB, much less,
even if it was specified.

This is the first time it has happened. The next recording to start was
fine.

Some more log messages below:

Apr 19 02:59:46 backend mythbackend: mythbackend[1458]: I Scheduler
scheduler.cpp:2882 (HandleRecordingStatusChange) Tuning recording:
"Cagney & Lacey":"Different Drummer": channel 3930
 on cardid [15], sourceid 3
Apr 19 02:59:46 backend mythbackend: mythbackend[1458]: I
CetonStreamHandler recorders/cetonrtsp.cpp:397 (Setup) CetonRTSP:
Transport: RTP/AVP;unicast;client_port=58472-58473
Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: N
CetonStreamHandler recorders/dtvsignalmonitor.cpp:362 (HandlePMT)
DTVSigMon[15](192.168.0.193-RTP.0): PMT says program 21 is en
crypted
Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: I CoreContext
scheduler.cpp:706 (UpdateRecStatus) Updating status for "Cagney &
Lacey":"Different Drummer" on cardid [15] (Tuning
 => Recording)
Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: I TVRecEvent
tv_rec.cpp:4209 (TuningNewRecorder) TVRec[15]: rec->GetPathname():
'/3930_20210419070000.ts'
Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: E TVRecEvent
threadedfilewriter.cpp:106 (Open) TFW(/3930_20210419070000.ts:-1):
Opening file '/3930_20210419070000.ts'.#012#011#011#011eno: Permission
denied (13)
Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: E TVRecEvent
tv_rec.cpp:4214 (TuningNewRecorder) TVRec[15]: RingBuffer
'/3930_20210419070000.ts' not open...
Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: I CoreContext
scheduler.cpp:706 (UpdateRecStatus) Updating status for "Cagney &
Lacey":"Different Drummer" on cardid [15] (Recording => Recorder Failed)

Peter

_______________________________________________
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: Bizarre recording error trying to put recording in root directory [ In reply to ]
Hoi Peter,

Monday, April 19, 2021, 5:43:23 PM, you wrote:

> One recording today failed. It has this in the log

>  rec->GetPathname(): '/3930_20210419070000.ts'

> and then cannot write to the file.

> On every other recording I see things like rec->GetPathname():
> '/srv/mythtv/video4/recordings/3714_20210419150000.ts

> I checked my storage directories, they are set to
> /srv/mythtv/video1/recordings through /srv/mythtv/video4/recordings.
> Nowhere is root directory specified.

> It is supposed to choose the recording group with most space. video4 has
> 3200 GB, video 1-3 have around 1100 GB each. Root has 21 GB, much less,
> even if it was specified.

> This is the first time it has happened. The next recording to start was
> fine.

> Some more log messages below:

> Apr 19 02:59:46 backend mythbackend: mythbackend[1458]: I Scheduler
> scheduler.cpp:2882 (HandleRecordingStatusChange) Tuning recording:
> "Cagney & Lacey":"Different Drummer": channel 3930
>  on cardid [15], sourceid 3
> Apr 19 02:59:46 backend mythbackend: mythbackend[1458]: I
> CetonStreamHandler recorders/cetonrtsp.cpp:397 (Setup) CetonRTSP:
> Transport: RTP/AVP;unicast;client_port=58472-58473
> Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: N
> CetonStreamHandler recorders/dtvsignalmonitor.cpp:362 (HandlePMT)
> DTVSigMon[15](192.168.0.193-RTP.0): PMT says program 21 is en
> crypted
> Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: I CoreContext
> scheduler.cpp:706 (UpdateRecStatus) Updating status for "Cagney &
> Lacey":"Different Drummer" on cardid [15] (Tuning
>  => Recording)
> Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: I TVRecEvent
> tv_rec.cpp:4209 (TuningNewRecorder) TVRec[15]: rec->GetPathname():
> '/3930_20210419070000.ts'
> Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: E TVRecEvent
> threadedfilewriter.cpp:106 (Open) TFW(/3930_20210419070000.ts:-1):
> Opening file '/3930_20210419070000.ts'.#012#011#011#011eno: Permission
> denied (13)
> Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: E TVRecEvent
> tv_rec.cpp:4214 (TuningNewRecorder) TVRec[15]: RingBuffer
> '/3930_20210419070000.ts' not open...
> Apr 19 02:59:49 backend mythbackend: mythbackend[1458]: I CoreContext
> scheduler.cpp:706 (UpdateRecStatus) Updating status for "Cagney &
> Lacey":"Different Drummer" on cardid [15] (Recording => Recorder Failed)

> Peter

Does your system log mention any filesystem related errors?


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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: Bizarre recording error trying to put recording in root directory [ In reply to ]
On 4/19/21 12:02 PM, Hika van den Hoven wrote:
> Hoi Peter,
>
> Monday, April 19, 2021, 5:43:23 PM, you wrote:
>
>> One recording today failed. It has this in the log
>>  rec->GetPathname(): '/3930_20210419070000.ts'
>> and then cannot write to the file.
>
>> Peter
> Does your system log mention any filesystem related errors?
>
>
> Tot mails,
> Hika mailto:hikavdh@gmail.com
>
This happened again, and it seems to have been caused by a database
problem. A string of "Unable to connect to database" occurred before
this. It happened after a suspend and resume, and the IP address had not
yet been re-assigned by DHCP. I have now changed the config.xml to use
localhost instead of the Ethernet ip address. Hopefully this will solve it

Peter

_______________________________________________
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: Bizarre recording error trying to put recording in root directory [ In reply to ]
Hoi Peter,

Friday, April 23, 2021, 2:17:11 PM, you wrote:


> On 4/19/21 12:02 PM, Hika van den Hoven wrote:
>> Hoi Peter,
>>
>> Monday, April 19, 2021, 5:43:23 PM, you wrote:
>>
>>> One recording today failed. It has this in the log
>>>  rec->GetPathname(): '/3930_20210419070000.ts'
>>> and then cannot write to the file.
>>
>>> Peter
>> Does your system log mention any filesystem related errors?
>>
>>
>> Tot mails,
>> Hika mailto:hikavdh@gmail.com
>>
> This happened again, and it seems to have been caused by a database
> problem. A string of "Unable to connect to database" occurred before
> this. It happened after a suspend and resume, and the IP address had not
> yet been re-assigned by DHCP. I have now changed the config.xml to use
> localhost instead of the Ethernet ip address. Hopefully this will solve it

> Peter

Things to consider if it happened right after a resume:
- Is the filesystem the recording should be happening on dismounted
on suspension and remounted again on resume. This can be set for
especially network filesystems.
- What nic do you have. Especially Realtec can get unstable. I then
see syslog entries about promiscuous mode. I have never really
investigated it, I just replaced with another brand.


Tot mails,
Hika mailto:hikavdh@gmail.com

"Zonder hoop kun je niet leven
Zonder leven is er geen hoop
Het eeuwige dilemma
Zeker als je hoop moet vernietigen om te kunnen overleven!"

De lerende Mens

_______________________________________________
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