LinHES Forums
http://forums.linhes.org/

mythbackend not making log files
http://forums.linhes.org/viewtopic.php?f=11&t=18164
Page 1 of 1

Author:  john.lofgren [ Fri Apr 11, 2008 4:31 pm ]
Post subject:  mythbackend not making log files

I just noticed that my mythtv-backend process has not been making log files for a few months. All the mythbackend.log files in /var/log/mythtv are from November. I don't know what changed at that time. I have the backend process running as:
/usr/bin/mythbackend --daemon --logfile /var/log/mythtv/mythbackend.log --pidfile /var/run/mythtv/mythbackend.pid

So, what would be causing it to not make log files?

Thanks,
John

Author:  tjc [ Fri Apr 11, 2008 5:25 pm ]
Post subject: 

Most likely the directory ownership and/or permissions.

It sounds like you're running mythbackend as the mythtv user (which is good) so you just need to make sure that the /var/log/mythtv/ directory is owned by mythtv and has setgid permissions.
Code:
root@black2:~# ls -al /var/log/mythtv/
total 296
drwxrwsr-x  2 mythtv mythtv  4096 Apr 11 07:39 .
drwxr-xr-x 11 root   root    4096 Apr 11 06:27 ..
-rw-r--r--  1 mythtv mythtv  5020 Apr  3 21:44 KnoppMyth-run.log
-rw-r--r--  1 mythtv mythtv   802 Apr 11 07:40 mythbackend.log
-rw-r--r--  1 mythtv mythtv  1900 Apr 11 06:27 mythbackend.log.1
-rw-r--r--  1 mythtv mythtv  8939 Apr 10 06:27 mythbackend.log.2
-rw-r--r--  1 mythtv mythtv  9669 Apr  9 06:27 mythbackend.log.3
-rw-r--r--  1 mythtv mythtv 25413 Apr  8 06:27 mythbackend.log.4
-rw-r--r--  1 mythtv mythtv  6645 Apr  7 06:27 mythbackend.log.5
-rw-r--r--  1 mythtv mythtv 25023 Apr  6 06:27 mythbackend.log.6
-rw-r--r--  1 mythtv mythtv  4636 Apr  5 06:26 mythbackend.log.7
-rw-r--r--  1 mythtv mythtv    64 Apr 11 07:40 mythfrontend.log
-rw-r--r--  1 mythtv mythtv  6110 Apr 11 06:27 mythfrontend.log.1
-rw-r--r--  1 mythtv mythtv  1150 Apr 10 06:27 mythfrontend.log.2
-rw-r--r--  1 mythtv mythtv 29282 Apr  9 06:27 mythfrontend.log.3
-rw-r--r--  1 mythtv mythtv 65072 Apr  8 06:27 mythfrontend.log.4
-rw-r--r--  1 mythtv mythtv  4714 Apr  7 06:27 mythfrontend.log.5
-rw-r--r--  1 mythtv mythtv 22725 Apr  6 06:27 mythfrontend.log.6
-rw-r--r--  1 mythtv mythtv  1508 Apr  4 06:27 mythfrontend.log.7

Running the following as root should fix any problems there:
Code:
chown -R mythtv:mythtv /var/log/mythtv
chmod u=rwx,g=rwxs,o=rx /var/log/mythtv

Author:  john.lofgren [ Sat Apr 12, 2008 10:10 am ]
Post subject: 

Thanks for the suggestion. It was the right idea. Actually, though, the directory was owned by mythtv, but somehow mythbackend.log and one of the other files was owned by root. Now that I've chowned them, it looks like I'm back in business.

Thanks!
John

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/