Failed to create Ring Buffer

Have a MythTV related problem? Ask for help from other MythTV users here.

Moderator: Forum Moderators

Post Reply
Jeff42
Newcomer
Posts: 9
Joined: Sun Sep 22, 2019 12:46 am
Canada

Failed to create Ring Buffer

Post by Jeff42 »

Oct 08 17:01:54 mythbackend mythbackend[31717]: mythbackend[31717]: I TVRecEvent tv_rec.cpp:1091 (HandleStateChange) TVRec[1]: Changing from None to WatchingLiveTV

Oct 08 17:01:54 mythbackend mythbackend[31717]: mythbackend[31717]: I TVRecEvent tv_rec.cpp:3682 (TuningFrequency) TVRec[1]: TuningFrequency

Oct 08 17:01:54 mythbackend mythbackend[31717]: mythbackend[31717]: I TVRecEvent recorders/hdhrstreamhandler.cpp:378 (Connect) HDHRSH[1](104FD004): Added 2 devices from 104FD004

Oct 08 17:01:54 mythbackend mythbackend[31717]: mythbackend[31717]: I TVRecEvent recorders/hdhrstreamhandler.cpp:396 (Connect) HDHRSH[1](104FD004): Connected to device(104FD004-0)

Oct 08 17:01:55 mythbackend mythbackend[31717]: mythbackend[31717]: E CoreContext autoexpire.cpp:158 (CalcParams) AutoExpire: Filesystem Info cache is empty, unable to calculate necessary parameters

Oct 08 17:01:55 mythbackend mythbackend[31717]: mythbackend[31717]: E TVRecEvent threadedfilewriter.cpp:126 (Open) TFW(/media/pi/USB/default/10901_20191008220155.ts:-1): Opening file '/media/pi/USB/
eno: Permission denied (13)

Oct 08 17:01:55 mythbackend mythbackend[31717]: mythbackend[31717]: E TVRecEvent tv_rec.cpp:4647 (GetProgramRingBufferForLiveTV) TVRec[1]: RingBuffer '/media/pi/USB/default/10901_20191008220155.ts'

Oct 08 17:01:55 mythbackend mythbackend[31717]: mythbackend[31717]: E TVRecEvent tv_rec.cpp:4680 (CreateLiveTVRingBuffer) TVRec[1]: CreateLiveTVRingBuffer(9_1) failed

Oct 08 17:01:55 mythbackend mythbackend[31717]: mythbackend[31717]: E TVRecEvent tv_rec.cpp:3809 (TuningFrequency) TVRec[1]: Failed to create RingBuffer 1

Oct 08 17:01:55 mythbackend mythbackend[31717]: mythbackend[31717]: I TVRecEvent tv_rec.cpp:1091 (HandleStateChange) TVRec[1]: Changing from WatchingLiveTV to None


What is this trying to tell me? Are there file permissions I need to set? I just have the one storage directory set, going to my USB drive using the automatic /media/pi/USB/default which is where I set the directory to.
User avatar
bill6502
Developer
Posts: 2325
Joined: Fri Feb 07, 2014 5:28 pm
United States of America

Re: Failed to create Ring Buffer

Post by bill6502 »

Yes, the threaded file writer can't open a directory in order to get to the 'default' directory
and create the file.:

Code: Select all

... TFW(/media/pi/USB/default/10901_20191008220155.ts:-1): Opening file '/media/pi/USB/
eno: Permission denied (13)
I'd try ls -ld /media/pi/USB . It must have read/search permission for the user running the backend.
Something like:

Code: Select all

sudo chmod ugo+rx /media/pi/USB
The directory named 'default' under USB must have read/write/search permissions and is typically user/group mythtv/mythtv.
Again, assuming the backend is running as that user/group.

Code: Select all

sudo chown mythtv:mythtv /media/pi/USB/default
sudo chmod ug=rwx,o=rx /media/pi/USB/default
Post Reply