View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 3 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Fri Apr 11, 2008 4:31 pm 
Offline
Joined: Wed Mar 07, 2007 9:34 am
Posts: 28
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


Top
 Profile  
 
 Post subject:
PostPosted: Fri Apr 11, 2008 5:25 pm 
Offline
Joined: Thu Mar 25, 2004 11:00 am
Posts: 9551
Location: Arlington, MA
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


Top
 Profile  
 
 Post subject:
PostPosted: Sat Apr 12, 2008 10:10 am 
Offline
Joined: Wed Mar 07, 2007 9:34 am
Posts: 28
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


Top
 Profile  
 

Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 3 posts ] 


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 57 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Jump to:  
Powered by phpBB® Forum Software © phpBB Group

Theme Created By ceyhansuyu