[mythtv-users] SVN trunk: frontend thinks DB schema is old?

Michael T. Dean mtdean at thirdcontact.com
Sun Sep 20 02:25:24 UTC 2009


On 09/19/2009 08:40 PM, Tom Lichti wrote:
> On Sat, Sep 19, 2009 at 7:31 PM, Jean-Yves Avenard wrote:
>   
>> You have permissions issues on your machine to start with. It is
>> unable to perform a backup.
>> You've setup a storage group for backup, but you have:
>> '/xxx/db-backup' does not exist!
>>     
> Permissions seem fine:
>
> [mythtv at xxx db-backup]$ pwd
> /xxx/db-backup
> [mythtv at xxx db-backup]$ touch test
> [mythtv at xxx db-backup]$ rm test
> [mythtv at xxx db-backup]$ touch test
> [mythtv at xxx db-backup]$ ls -l
> -rw-rw-r-- 1 33 65534        0 2009-09-05 15:38 test
> [mythtv at xxx db-backup]$ rm test
>   

ACL's?

> And it did create a backup file:
>
> [mythtv at xxx~]$ ls -l /xxx/db-backup/
> -rw-rw-r-- 1 33 65534 10057341 2009-09-05 15:41
> mythconverg-1244-20090919203347.sql.gz
>
> Not sure why it is saying it didn't.
>   

It actually said it did...

>>> 2009-09-19 19:12:19.853 Backing up database to file:
>>> '/xxx/db-backup/mythconverg-1244-20090919191219.sql'
>>> 2009-09-19 19:12:39.294 Compressing database backup file.
>>> 2009-09-19 19:12:50.826 Database Backup filename:
>>> '/xxx/db-backup/mythconverg-1244-20090919191219.sql.gz'
>>> 2009-09-19 19:12:50.826 Database Backup complete.

Of course, that was after the script failed and after both (in-MythTV) 
checks of the DB Backups directory said it doesn't exist:

>>> 2009-09-19 19:12:19.302 SG(DB Backups) Error: FindNextDirMostFree:
>>> '/xxx/db-backup' does not exist!
>>>
...
>>> 2009-09-19 19:12:19.850 SG(DB Backups) Error: FindNextDirMostFree:
>>> '/xxx/db-backup' does not exist!

The only reasons I could think of for that to happen are if a) the 
directory doesn't exist, b) we don't have permissions to get to the 
directory to see if it exists, or c) the directory isn't a directory, 
but is a normal file.  But, since it seemed to actually work, I'm 
guessing it's b) where the "have permissions" is complicated by ACL's or 
some SELinux stuff or whatever.

What's exceptionally strange is that we won't use the directory found to 
not exist--even if it's the only directory in the DB Backups storage 
group.  We'd actually fall back to /tmp.  For some reason, even though 
it complained the directory didn't exist, it used it.  Something about 
that directory is fooling the Qt QDir::exists() function.  Any chance 
you could post the output of:

ls -ld /xxx/db-backup

Thanks,
Mike


More information about the mythtv-users mailing list