[SOLVED] 0.29 Recordings Storage Directories

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

Moderator: Forum Moderators

Post Reply
jiminorris
Newcomer
Posts: 11
Joined: Sun May 29, 2016 3:52 pm
Great Britain

[SOLVED] 0.29 Recordings Storage Directories

Post by jiminorris » Sat Nov 23, 2019 9:59 am

Forgive me if this has been asked/answered before, but apparently searching is impossible as my keywords are, "too common," (understandably.)

Having finally started over with a new database with 0.29 (from an old .17 install) I find a lot of things have moved or been removed completely. Even when storage directories came along, I just left them at default and now I seem to be regretting it!

Right now, I'm unable to record any TV, as there doesn't appear to be a storage directory for recordings. I've set all of my others to the standard location, but recordings don't (can't?) have one set and so it's falling back to the default location (which isn't available on my system)

Code: Select all

Nov 23 09:49:38 MemoryAlpha mythbackend: mythbackend[4877]: I Scheduler scheduler.cpp:2469 (HandleReschedule) Scheduled 44 items in 0.0 = 0.01 match + 0.00 check + 0.02 place
Nov 23 09:49:38 MemoryAlpha mythbackend: mythbackend[4877]: E Scheduler storagegroup.cpp:187 (Init) SG(Default): Unable to find any Storage Group Directories.  Using hardcoded default value of '/mnt/store'
<snip>
Nov 23 09:49:42 MemoryAlpha mythbackend: mythbackend[4877]: E TVRecEvent threadedfilewriter.cpp:129 (Open) TFW(/mnt/store/3001_20191123095000.ts:-1): Opening file '/mnt/store/3001_20191123095000.ts'.#012#011#011#011eno: No such file or directory (2)
Nov 23 09:49:42 MemoryAlpha mythbackend: mythbackend[4877]: E TVRecEvent tv_rec.cpp:4210 (TuningNewRecorder) TVRec[1]: RingBuffer '/mnt/store/3001_20191123095000.ts' not open...
Nov 23 09:49:42 MemoryAlpha mythbackend: mythbackend[4877]: I CoreContext scheduler.cpp:734 (UpdateRecStatus) Updating status for Breakfast on cardid [1] (Recording => Recorder Failed)
Nov 23 09:49:42 MemoryAlpha mythbackend: mythbackend[4877]: I TVRecEvent tv_rec.cpp:1090 (HandleStateChange) TVRec[1]: Changing from RecordingOnly to None
I suppose that I could set a symlink from /mnt/store to /var/lib/mythtv/recordings, but I'm not sure what else would be sent from the 'store' and I'd rather have a proper fix than a hacked workaround.

What have I missed?
Last edited by jiminorris on Sun Nov 24, 2019 9:57 am, edited 1 time in total.

MikeB2013
Senior
Posts: 433
Joined: Mon Jul 25, 2016 4:16 pm
Great Britain

Re: 0.29 Recordings Storage Directories

Post by MikeB2013 » Sat Nov 23, 2019 7:22 pm

The default of '/mnt/store' does not work on later versions of mythtv, unless you explicitly create it.

For the packaged versions of mythtv running under *ubuntu, a series of default directories are created in /var/lib/mythtv/ see https://www.mythtv.org/wiki/Setup_Storage_Directories

As a minimum, the Default directory needs to be assigned, typically using /var/lib/mythtv/recordings/. If no other directories are assigned /var/lib/mythtv/recordings/ will be used for everything.

You can create directories anywhere you like, as long as they are owned by mythtv (sudo chown mythtv:mythtv <directory_name>) and have the appropriate permissions of 2775 (sudo chmod 2775 <directory_name>). Do not use space character in directory names. Once the directories have been created, use mythtv-setup>Storage Directories to assign them.

Mike

jiminorris
Newcomer
Posts: 11
Joined: Sun May 29, 2016 3:52 pm
Great Britain

Re: 0.29 Recordings Storage Directories

Post by jiminorris » Sun Nov 24, 2019 9:56 am

MikeB2013 wrote:
Sat Nov 23, 2019 7:22 pm
As a minimum, the Default directory needs to be assigned, typically using /var/lib/mythtv/recordings/. If no other directories are assigned /var/lib/mythtv/recordings/ will be used for everything.
Thanks,

I have a feeling this was previously done automatically many years ago and I was nervous that setting it as default would override the other storage directories - the Wiki wasn't entirely clear.

In the end I created a new one called recordings and found a setting for default recording profiles to use the new storage location. If I ever come around to reinstalling again, I'll just go with the default option as your suggestion is a lot cleaner than my workaround.

Post Reply