[mythtv-users] mythmusic & filesystem permissions

Vincent McIntyre vincent.mcintyre at gmail.com
Sat Mar 9 00:33:49 UTC 2019


Hi all

(ubuntu 16.04, 29.1+fixes.201902191821.8f37aa3~ubuntu16.04.1)

I have a strange issue with permissions.
I think I need more logging info, but read on and let me know what
you think.


I was trying to rescan a CD that I already had in my collection.
I removed the directory and rescanned ('scan for new music').
Then inserted the CD and ran 'import cd' as normal.

It scans the first track (creates the album subdir below the right
artist, and the first track in a .flac) and then stops with this popup:

"The encoder failed to create the file.
 Do you have write permissions for the music directory?"


In the log I get

Mar  9 11:15:27 mtv mythbackend: mythbackend[2868]: I ProcessRequest mainserver.cpp:1738 (HandleAnnounce) MainServer: MainServer::ANN Playback
Mar  9 11:15:27 mtv mythbackend: mythbackend[2868]: I ProcessRequest mainserver.cpp:1743 (HandleAnnounce) MainServer: adding: mtv(24c5650) as a client (events: 0)
Mar  9 11:15:27 mtv mythbackend: mythbackend[2868]: W ProcessRequest ringbuffer.cpp:700 (Start) RingBuf(/var/lib/mythtv/music//My_Friend_the_Chocolate_Cake/My_Friend_the_Chocolate_Cake/01-A_Midlife_s_Tale.flac): Not starting read ahead thread, this is a write only RingBuffer
Mar  9 11:15:27 mtv mythbackend: mythbackend[2868]: I MythSocketThread(72) mainserver.cpp:7674 (connectionClosed) Playback sock(24c5650) 'mtv' disconnected
Mar  9 11:15:27 mtv mythbackend: mythbackend[2868]: I MythSocketThread(74) mainserver.cpp:7712 (connectionClosed) FileTransfer sock(25f9f00) disconnected


Retrying the rip gives the same result.

On my system the backend runs as user 'mythtv'.
The frontend runs as 'frontend'. Both are in the 'mythtv' group.

$ ls -l /var/lib/mythtv/music//My_Friend_the_Chocolate_Cake/
total 23280
-rw-r--r-- 1 mythtv mythtv 23835694 Mar  9 11:13 01-A_Midlife_s_Tale.flac

$ ls -ld /var/lib/mythtv/music//My_Friend_the_Chocolate_Cake
drwxr-sr-x 3 mythtv mythtv 4096 Mar  9 11:13 /var/lib/mythtv/music//My_Friend_the_Chocolate_Cake/

$ ls -ld /var/lib/mythtv/music
drwxrwsr-x 277 mythtv mythtv 20480 Mar  9 11:13 /var/lib/mythtv/music/
$ ls -ld /var/lib/mythtv/
drwxrwsr-x 17 mythtv mythtv 4096 Jun  2  2018 /var/lib/mythtv/

I do have other directories in the music storage group but they
have the same permissions and are unused.

So everything looks in order.
How can I get more logging out of the ripping process?

One other clue. The new file is one byte shorter than the old one.
The file name changed (a typo was corrected in the upstream metadata)
This is the entry in the tar file backup I made.

-rw-r--r-- mythtv/mythtv 23835695 2011-09-03 11:00 My_Friend_the_Chocolate_Cake/My_Friend_the_Chocolate_Cake/01-A_Midwife_s_Tale.flac

Kind regards
Vince


More information about the mythtv-users mailing list