View unanswered posts    View active topics

All times are UTC - 6 hours





Post new topic Reply to topic  [ 7 posts ] 
Print view Previous topic   Next topic  
Author Message
Search for:
PostPosted: Sun Feb 05, 2012 11:21 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
Hi,
Last night I tried to access mythweb but it wouldn't load, so today I was investigating and found that lighttpd wasn't working. When I tried checking the logs I discovered that I seem to be missing a lot of logs on my system.

Code:
[root@mythtv log]# cd /var/log/
[root@mythtv log]# ls -l
total 368
drwxr-xr-x 2 root   root     4096 Jan 29 15:13 2012-01-20
drwxr-xr-x 2 root   root     4096 Jan 31 10:55 2012-01-21
drwxr-xr-x 2 root   root     4096 Jan 31 10:55 2012-01-22
drwxr-xr-x 2 root   root     4096 Feb  1 10:55 2012-01-23
drwxr-xr-x 2 root   root     4096 Feb  2 10:55 2012-01-24
-rw-r--r-- 1 root   root    55785 Feb  6 11:18 dmesg.log
-rw-r--r-- 1 mythtv mythtv  51774 Feb  6 16:13 fluxbox.log
drwxr-xr-x 2 http   http     4096 Feb  5 11:52 lighttpd
-rw-r--r-- 1 root   root     2892 Feb  6 13:54 lircd
-rw-r--r-- 1 root   root    19348 Feb  5 13:03 lircd.1
-rw-r--r-- 1 root   root    22977 Jan 29 16:33 lircd.2
-rw-r--r-- 1 root   root    26157 Jan 22 13:26 lircd.3
-rw-r--r-- 1 root   root    33929 Jan 15 10:06 lircd.4
-rw-r--r-- 1 mysql  root        0 Jan 11 12:05 mysqld.log
drwxr-xr-x 2 mythtv pturpie  4096 Jan  5 07:47 mythtv
-rw-r--r-- 1 root   root      234 Feb  6 11:18 network.init
-rw-r--r-- 1 root   root        0 Feb  6 11:18 network.init.error
drwxr-xr-x 2 root   root     4096 Jan 11 11:10 old_sysng
-rw-r--r-- 1 root   root     4780 Feb  6 16:11 pacman.log
drwxr-xr-x 2 root   root     4096 Feb  6 14:52 sa
drwxr-xr-x 3 root   root     4096 Feb  5 11:52 samba
-rw-r--r-- 1 root   root      360 Feb  6 10:41 wake_alarm
drwx------ 2 root   bin      4096 Nov 22 19:32 webmin
-rw-r--r-- 1 root   root    39795 Feb  6 11:36 Xorg.0.log
-rw-r--r-- 1 root   root    39634 Feb  6 10:43 Xorg.0.log.old
[root@mythtv log]#


Also the logs in the lighttpd directory are all empty.
Code:
[root@mythtv log]# ls -l /var/log/lighttpd/
total 0
-rw-r--r-- 1 http http 0 Feb  5 11:52 access.log
-rw-r--r-- 1 http http 0 Jan 29 15:13 access.log.1
-rw-r--r-- 1 http http 0 Jan 22 11:51 access.log.2
-rw-r--r-- 1 http http 0 Jan 15 07:51 access.log.3
-rw-r--r-- 1 http http 0 Jan  8 07:48 access.log.4
-rw-r--r-- 1 http http 0 Feb  5 11:52 error.log
-rw-r--r-- 1 http http 0 Jan 29 15:13 error.log.1
-rw-r--r-- 1 http http 0 Jan 22 11:51 error.log.2
-rw-r--r-- 1 http http 0 Jan 15 07:51 error.log.3
-rw-r--r-- 1 http http 0 Jan  8 07:48 error.log.4


Any ideas?

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Last edited by turpie on Tue Feb 07, 2012 4:35 pm, edited 1 time in total.


Top
 Profile  
 
 Post subject:
PostPosted: Sun Feb 05, 2012 11:35 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
I noticed this entry which contains all of the logs prior to January 11th when I did a 'pacman -Syu'.
Code:
drwxr-xr-x 2 root   root     4096 Jan 11 11:10 old_sysng


How can I find out what going wrong with my system?

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2012 11:04 am 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
turpie.
it looks like rsyslog is working. The location changed and the logs are now stored by date /var/log/$current_date/

for lighttpd it's best to run the lighttpd command by hand and see what it's complaining about.


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2012 4:16 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
Code:
[root@mythtv 2012-02-06]# cd /var/log/2012-02-06/

[root@mythtv 2012-02-06]# ls -la
total 84
drwxr-xr-x  2 root root  4096 Feb  6 16:33 .
drwxr-xr-x 11 root root  4096 Feb  8 11:52 ..
-rw-r--r--  1 root root 67146 Feb  6 16:35 mythtv_messages.log
-rw-r--r--  1 root root   422 Feb  6 16:35 mythtv_su.log

[root@mythtv 2012-02-06]# sv status rsyslog
down: rsyslog: 0s, normally up, want up

[root@mythtv 2012-02-06]# ps -ef |grep rsyslog
root      1062     1  0 Feb07 ?        00:03:37 runsvdir -P /service log: 12-02-09 09:16:47: (configfile.c.912) source: /etc/lighttpd/conf.include line: 2 pos: 1 parser failed somehow near here: (EOL) ?2012-02-09 09:16:47: (configfile.c.912) source: /etc/lighttpd/lighttpd.conf line: 354 pos: 8 parser failed somehow near here: (EOL) ?lighttpd-angel.c.140: child (pid=30422) exited normally with exitcode: 255?runsv rsyslog: fatal: unable to start ./run: access denied?
root      1078  1062  0 Feb07 ?        00:01:53 runsv rsyslog
root     30425 15927  0 09:16 pts/1    00:00:00 grep rsyslog


Does this look right?

The other dated log directories dont contain anything.

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Feb 08, 2012 4:31 pm 
Offline
Site Admin
Joined: Fri Jun 11, 2004 7:58 am
Posts: 507
rsyslog is NOT running , niether is lighttpd.

Your best bet is to look at each "run" file and then exec each command from the console. You will probably get more debugging output that way.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2012 11:03 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
Thanks for the suggestions jams.

The lighttpd problem was caused by the mythexport configuration entries.
Code:
$HTTP["url"] =~ "/mythexport/" {
        cgi.assign = ( ".cgi" => "/usr/bin/perl" )
      }
Under previous versions of LinHES I had to manually insert an entry for mythexport into the lighttpd.conf file. However that entry is now included via /etc/lighttpd/conf.include which includes /etc/mythexport/mythexport.lighttpd.include, so lighttpd was complaining about the duplication and exiting. I couldn't see this particular message until I ran /service/lighttpd/run.


The rsyslog problem may have been due to permissions on the /service/rsyslog/run file not having the execute bit set.

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 09, 2012 11:04 pm 
Offline
Joined: Wed Apr 28, 2004 10:42 pm
Posts: 405
Location: Bendigo, Victoria, Australia
I would fix the instructions for mythexport but the wiki isn't working yet.
http://www.linhes.org/bugs/projects/lin ... t_for_iPod

_________________
Paul Turpie
-------------
<--Is your location in your profile? Why not?


Top
 Profile  
 

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


All times are UTC - 6 hours




Who is online

Users browsing this forum: No registered users and 147 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