2011-01-14, 18:37
I've noticed the no database information happens sometimes when mythtv tries to delete a file but it does not have permissions to do so. It deletes it's database information but orphans the file. This happens under very specific conditions..eg... say.. User adam runs mythicalLibrarian on file1(owned by mythtv)
This creates a symlink:
"file1Symlink(owned by adam)->/Episodes/file1(owned by mythtv)"
MythTV attempts to delete file1Symlink(owned by adam) and it cannot do so because it does not have group "adam" permissions. It wrongly assumes the file is impossible to manage so it purges database information.
Linux filesystem permissions are very granular. Because of this, it can be difficult to have 2 or more users reading and writing to and from the same file. It may be a MythTV bug, I don't know. I attempted to make it easier by assigning read/write permissions to user/group/all on every file processed and cross-add users running mythicalSetup to the mythtv group and vice versa. I just run mythicalLibrarian as mythtv every time and it works great.
I did notice that you do not have a mythtv group on your system. Who runs mythtv on Arch? my ls -l /var/lib/mythtv/recordings/ results have all permissions set to mythtv:mythtv. I saw in the logs of mythicalSetup that there is no mythtv group. how does that work? Do you notice any wierd permission errors in the terminal when you're running it?
This creates a symlink:
"file1Symlink(owned by adam)->/Episodes/file1(owned by mythtv)"
MythTV attempts to delete file1Symlink(owned by adam) and it cannot do so because it does not have group "adam" permissions. It wrongly assumes the file is impossible to manage so it purges database information.
Linux filesystem permissions are very granular. Because of this, it can be difficult to have 2 or more users reading and writing to and from the same file. It may be a MythTV bug, I don't know. I attempted to make it easier by assigning read/write permissions to user/group/all on every file processed and cross-add users running mythicalSetup to the mythtv group and vice versa. I just run mythicalLibrarian as mythtv every time and it works great.
I did notice that you do not have a mythtv group on your system. Who runs mythtv on Arch? my ls -l /var/lib/mythtv/recordings/ results have all permissions set to mythtv:mythtv. I saw in the logs of mythicalSetup that there is no mythtv group. how does that work? Do you notice any wierd permission errors in the terminal when you're running it?