Re: [gentoo-user] Apache is running but its log is not

2011-05-04 Thread Joost Roeleveld
On Wednesday 04 May 2011 13:48:48 Adam Carter wrote:
  Well, 2.2.17 is indeed my server, but I decided to stop it and start it
  again.  Current log files showed up.
  Problem solved, by brute force again, and without any epiphanies of
  understanding.
 
 Last guess - logrotate is managing the log files but not reloading apache
 afterwards. Check that the entries in /etc/logrotate.d/apache2 have a line
 in there that runs /etc/init.d/apache2 reload.

Adam,

I think you got a really good guess. :)
Especially as the log-files listed by lsof have status deleted:
**
apache25288   root9w  REG   8,44  57327591 204998
/var/log/apache2/access_log-20110204 (deleted)
**

Interesting things happen when a file is deleted while a process still has 
access.

--
Joost



Re: [gentoo-user] Apache is running but its log is not

2011-05-04 Thread Kevin O'Gorman
On Tue, May 3, 2011 at 11:15 PM, Joost Roeleveld jo...@antarean.org wrote:

 On Wednesday 04 May 2011 13:48:48 Adam Carter wrote:
   Well, 2.2.17 is indeed my server, but I decided to stop it and start it
   again.  Current log files showed up.
   Problem solved, by brute force again, and without any epiphanies of
   understanding.
 
  Last guess - logrotate is managing the log files but not reloading apache
  afterwards. Check that the entries in /etc/logrotate.d/apache2 have a
 line
  in there that runs /etc/init.d/apache2 reload.

 Adam,

 I think you got a really good guess. :)
 Especially as the log-files listed by lsof have status deleted:
 **
 apache25288   root9w  REG   8,44  57327591 204998
 /var/log/apache2/access_log-20110204 (deleted)
 **

 Interesting things happen when a file is deleted while a process still has
 access.

 --
 Joost

 Indeed they do.  I used to teach it to my students as a technique for
getting
a *really* temporary private file (combined with O_EXCL).

I'm about to try this, and I may change it a bit because when I restarted
apache,
reload didn't work.  I had to stop it and restart it.  Maybe I'll submit a
bug if I
can make sense out of what happens with 'reload' and it always happens.

-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] Apache is running but its log is not

2011-05-04 Thread Alan McKinnon
Apparently, though unproven, at 08:15 on Wednesday 04 May 2011, Joost 
Roeleveld did opine thusly:

 On Wednesday 04 May 2011 13:48:48 Adam Carter wrote:
   Well, 2.2.17 is indeed my server, but I decided to stop it and start it
   again.  Current log files showed up.
   Problem solved, by brute force again, and without any epiphanies of
   understanding.
  
  Last guess - logrotate is managing the log files but not reloading apache
  afterwards. Check that the entries in /etc/logrotate.d/apache2 have a
  line in there that runs /etc/init.d/apache2 reload.
 
 Adam,
 
 I think you got a really good guess. :)
 Especially as the log-files listed by lsof have status deleted:
 **
 apache25288   root9w  REG   8,44  57327591 204998
 /var/log/apache2/access_log-20110204 (deleted)
 **
 
 Interesting things happen when a file is deleted while a process still has
 access.

You mean like as in it's name goes away and absolutely nothing else changes 
whatsoever?

The only trouble you can run into is that new process that did not have the 
file open now cannot find it. 

-- 
alan dot mckinnon at gmail dot com



Re: [gentoo-user] Apache is running but its log is not

2011-05-04 Thread kashani

On 5/4/2011 7:38 AM, Alan McKinnon wrote:

Apparently, though unproven, at 08:15 on Wednesday 04 May 2011, Joost
Roeleveld did opine thusly:


On Wednesday 04 May 2011 13:48:48 Adam Carter wrote:

Well, 2.2.17 is indeed my server, but I decided to stop it and start it
again.  Current log files showed up.
Problem solved, by brute force again, and without any epiphanies of
understanding.


Last guess - logrotate is managing the log files but not reloading apache
afterwards. Check that the entries in /etc/logrotate.d/apache2 have a
line in there that runs /etc/init.d/apache2 reload.


Adam,

I think you got a really good guess. :)
Especially as the log-files listed by lsof have status deleted:
**
apache25288   root9w  REG   8,44  57327591 204998
/var/log/apache2/access_log-20110204 (deleted)
**

Interesting things happen when a file is deleted while a process still has
access.


You mean like as in it's name goes away and absolutely nothing else changes
whatsoever?

The only trouble you can run into is that new process that did not have the
file open now cannot find it.



	If you're doing it poorly enough, you can fill the filesystem with 
deleted files. The other fun one is having a daemon grow larger and 
larger because it's not letting go of files that were deleted while it 
had them open.


kashani



Re: [gentoo-user] Apache is running but its log is not

2011-05-04 Thread Mick
On Wednesday 04 May 2011 18:14:49 kashani wrote:
 On 5/4/2011 7:38 AM, Alan McKinnon wrote:
  Apparently, though unproven, at 08:15 on Wednesday 04 May 2011, Joost
  
  Roeleveld did opine thusly:
  On Wednesday 04 May 2011 13:48:48 Adam Carter wrote:
  Well, 2.2.17 is indeed my server, but I decided to stop it and start
  it again.  Current log files showed up.
  Problem solved, by brute force again, and without any epiphanies of
  understanding.
  
  Last guess - logrotate is managing the log files but not reloading
  apache afterwards. Check that the entries in /etc/logrotate.d/apache2
  have a line in there that runs /etc/init.d/apache2 reload.
  
  Adam,
  
  I think you got a really good guess. :)
  Especially as the log-files listed by lsof have status deleted:
  **
  apache25288   root9w  REG   8,44  57327591
  204998 /var/log/apache2/access_log-20110204 (deleted)
  **
  
  Interesting things happen when a file is deleted while a process still
  has access.
  
  You mean like as in it's name goes away and absolutely nothing else
  changes whatsoever?
  
  The only trouble you can run into is that new process that did not have
  the file open now cannot find it.
 
   If you're doing it poorly enough, you can fill the filesystem with
 deleted files. The other fun one is having a daemon grow larger and
 larger because it's not letting go of files that were deleted while it
 had them open.

Does your /etc/logrotate.d/apache2 script contain something like this:

/var/log/apache2/*log {
  missingok
  notifempty
  sharedscripts
  postrotate
  /etc/init.d/apache2 reload  /dev/null 21 || true
  endscript
}

-- 
Regards,
Mick


signature.asc
Description: This is a digitally signed message part.


Re: [gentoo-user] Apache is running but its log is not

2011-05-03 Thread Kevin O'Gorman
On Mon, May 2, 2011 at 8:30 PM, Adam Carter adamcart...@gmail.com wrote:



 Okay, there was already a thread about that, and my Python problem seems
 solved.  I still have no log entries.


 Ok, as root, try lsof | grep apache and see if there are any open log
 files. You may need to emerge lsof first if you dont already have it.

 IIRC apache fails to start if it cant write to the log directory - could be
 wrong on that tho.


Well, the results are sort of consistent with what I'm seeing, but I have a
hard time making sense of it.  There were so many files open that I grepped
on log as well

treat ~ # lsof|grep apache|grep log
apache24096 apache  DEL   REG   8,44  1008213
/var/tmp/portage/www-servers/apache-2.2.17/image/usr/lib/apache2/modules/mod_log_config.so
apache24096 apache  DEL   REG   8,44  1008230
/var/tmp/portage/www-servers/apache-2.2.17/image/usr/lib/apache2/modules/mod_logio.so
apache24096 apache2w  REG   8,44  16957886 204999
/var/log/apache2/error_log-20110204 (deleted)
apache24096 apache8w  REG   8,44  7694 206327
/var/log/apache2/ssl_error_log-20110207 (deleted)
apache24096 apache9w  REG   8,44  57327591 204998
/var/log/apache2/access_log-20110204 (deleted)
apache24096 apache   10w  REG   8,44  6696 206326
/var/log/apache2/ssl_access_log-20110206 (deleted)
apache24096 apache   11w  REG   8,44  7864 206328
/var/log/apache2/ssl_request_log-20110206 (deleted)
apache25288   root  DEL   REG   8,44  1008213
/var/tmp/portage/www-servers/apache-2.2.17/image/usr/lib/apache2/modules/mod_log_config.so
apache25288   root  DEL   REG   8,44  1008230
/var/tmp/portage/www-servers/apache-2.2.17/image/usr/lib/apache2/modules/mod_logio.so
apache25288   root2w  REG   8,44  16957886 204999
/var/log/apache2/error_log-20110204 (deleted)
apache25288   root8w  REG   8,44  7694 206327
/var/log/apache2/ssl_error_log-20110207 (deleted)
apache25288   root9w  REG   8,44  57327591 204998
/var/log/apache2/access_log-20110204 (deleted)
apache25288   root   10w  REG   8,44  6696 206326
/var/log/apache2/ssl_access_log-20110206 (deleted)
apache25288   root   11w  REG   8,44  7864 206328
/var/log/apache2/ssl_request_log-20110206 (deleted)
apache25290 apache  DEL   REG   8,44  1008213
/var/tmp/portage/www-servers/apache-2.2.17/image/usr/lib/apache2/modules/mod_log_config.so
apache25290 apache  DEL   REG   8,44  1008230
/var/tmp/portage/www-servers/apache-2.2.17/image/usr/lib/apache2/modules/mod_logio.so
apache25290 apache2w  REG   8,44  16957886 204999
/var/log/apache2/error_log-20110204 (deleted)
apache25290 apache8w  REG   8,44  7694 206327
/var/log/apache2/ssl_error_log-20110207 (deleted)
apache25290 apache9w  REG   8,44  57327591 204998
/var/log/apache2/access_log-20110204 (deleted)
apache25290 apache   10w  REG   8,44  6696 206326
/var/log/apache2/ssl_access_log-20110206 (deleted)
apache25290 apache   11w  REG   8,44  7864 206328
/var/log/apache2/ssl_request_log-20110206 (deleted)
apache2   23596 apache  DEL   REG   8,44  1008213
/var/tmp/portage/www-servers/apache-2.2.17/image/usr/lib/apache2/modules/mod_log_config.so
apache2   23596 apache  DEL   REG   8,44  1008230
/var/tmp/portage/www-servers/apache-2.2.17/image/usr/lib/apache2/modules/mod_logio.so
apache2   23596 apache2w  REG   8,44  16957886 204999
/var/log/apache2/error_log-20110204 (deleted)
apache2   23596 apache8w  REG   8,44  7694 206327
/var/log/apache2/ssl_error_log-20110207 (deleted)
apache2   23596 apache9w  REG   8,44  57327591 204998
/var/log/apache2/access_log-20110204 (deleted)
apache2   23596 apache   10w  REG   8,44  6696 206326
/var/log/apache2/ssl_access_log-20110206 (deleted)
apache2   23596 apache   11w  REG   8,44  7864 206328
/var/log/apache2/ssl_request_log-20110206 (deleted)
treat ~ #

Why is everything being deleted?


In 00_mod_log_config.conf I have
IfModule log_config_module
# The following directives define some format nicknames for use with
# a CustomLog directive (see below).
LogFormat %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
combined
LogFormat %h %l %u %t \%r\ %s %b common

LogFormat %{Referer}i - %U referer
LogFormat %{User-Agent}i agent
LogFormat %v %h %l %u %t \%r\ %s %b %T script
LogFormat %v %h %l %u %t \%r\ %s %b \%{Referer}i\ \%{User-Agent}i\
VLOG=%{VLOG}e vhost

IfModule logio_module
# You need to enable mod_logio.c to use %I and %O

Re: [gentoo-user] Apache is running but its log is not

2011-05-03 Thread Kevin O'Gorman
On Tue, May 3, 2011 at 8:19 PM, Kevin O'Gorman kogor...@gmail.com wrote:

 On Mon, May 2, 2011 at 8:30 PM, Adam Carter adamcart...@gmail.com wrote:



 Okay, there was already a thread about that, and my Python problem seems
 solved.  I still have no log entries.


 Ok, as root, try lsof | grep apache and see if there are any open log
 files. You may need to emerge lsof first if you dont already have it.

 IIRC apache fails to start if it cant write to the log directory - could
 be wrong on that tho.



 So there should be an access_log, and there is, but it has not been touched
 in a while:
 treat apache2 # ls -l

 total 1584
 -rw-rw-rw- 1 apache apache  0 Feb  4 03:10 access_log
 -rw-rw-rw- 1 apache apache 191438 Jun 15  2009 access_log.1.gz
 -rw-rw-rw- 1 apache apache 111538 Dec 26 03:10 access_log-20101226.gz
 -rw-rw-rw- 1 apache apache  15152 Jan 18 03:10 access_log-20110118.gz
 -rw-rw-rw- 1 apache apache 179611 Jan 25 03:10 access_log-20110125.gz
 -rw-rw-rw- 1 apache apache  16844 Feb  4 03:10 access_log-20110204.gz
 -rw-rw-rw- 1 apache apache 234663 Jun  8  2009 access_log.2.gz
 -rw-rw-rw- 1 apache apache 270349 Jun  1  2009 access_log.3.gz
 -rw-rw-rw- 1 apache apache 277761 May 25  2009 access_log.4.gz
 -rw-rw-rw- 1 apache apache  0 Feb  4 03:10 error_log
 -rw-rw-rw- 1 apache apache 117611 Jun 15  2009 error_log.1.gz.out
 -rw-rw-rw- 1 apache apache  33793 Dec 26 03:10 error_log-20101226.gz
 -rw-rw-rw- 1 apache apache   3729 Jan 18 03:10 error_log-20110118.gz
 -rw-rw-rw- 1 apache apache  34184 Jan 25 03:10 error_log-20110125.gz
 -rw-rw-rw- 1 apache apache   4350 Feb  4 03:10 error_log-20110204.gz
 -rw-rw-rw- 1 apache apache   5706 Jun  8  2009 error_log.2.gz
 -rw-rw-rw- 1 apache apache   5628 Jun  1  2009 error_log.3.gz
 -rw-rw-rw- 1 apache apache   6344 May 25  2009 error_log.4.gz
 -rw-rw-rw- 1 apache apache  0 Feb  6 03:10 ssl_access_log
 -rw-rw-rw- 1 apache apache 89 Dec 31 03:10 ssl_access_log-20101231.gz
 -rw-rw-rw- 1 apache apache137 Jan 22 03:10 ssl_access_log-20110122.gz
 -rw-rw-rw- 1 apache apache182 Jan 30 03:10 ssl_access_log-20110130.gz
 -rw-rw-rw- 1 apache apache 89 Feb  6 03:10 ssl_access_log-20110206.gz
 -rw-rw-rw- 1 apache apache  0 Feb  7 03:10 ssl_error_log
 -rw-rw-rw- 1 apache apache122 Dec 20 03:10 ssl_error_log-20101220.gz
 -rw-rw-rw- 1 apache apache122 Jan 18 03:10 ssl_error_log-20110118.gz
 -rw-rw-rw- 1 apache apache208 Jan 30 03:10 ssl_error_log-20110130.gz
 -rw-rw-rw- 1 apache apache203 Feb  7 03:10 ssl_error_log-20110207.gz
 -rw-rw-rw- 1 apache apache  0 Feb  6 03:10 ssl_request_log
 -rw-rw-rw- 1 apache apache102 Dec 31 03:10 ssl_request_log-20101231.gz
 -rw-rw-rw- 1 apache apache158 Jan 22 03:10 ssl_request_log-20110122.gz
 -rw-rw-rw- 1 apache apache197 Jan 30 03:10 ssl_request_log-20110130.gz
 -rw-rw-rw- 1 apache apache103 Feb  6 03:10 ssl_request_log-20110206.gz
 treat apache2 #

 --
 Kevin O'Gorman, PhD


Well, 2.2.17 is indeed my server, but I decided to stop it and start it
again.  Current log files showed up.
Problem solved, by brute force again, and without any epiphanies of
understanding.

Thanks for your help.


-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] Apache is running but its log is not

2011-05-03 Thread Adam Carter


 Well, 2.2.17 is indeed my server, but I decided to stop it and start it
 again.  Current log files showed up.
 Problem solved, by brute force again, and without any epiphanies of
 understanding.


Last guess - logrotate is managing the log files but not reloading apache
afterwards. Check that the entries in /etc/logrotate.d/apache2 have a line
in there that runs /etc/init.d/apache2 reload.


Re: [gentoo-user] Apache is running but its log is not

2011-05-02 Thread Kevin O'Gorman
On Sat, Apr 30, 2011 at 11:37 PM, Adam Carter adamcart...@gmail.com wrote:


 How do I find out where/if Apache thinks its logging things?


 In /etc/apache check httpd.conf and modules.d/00_mod_log_config.conf


in /etc/apache2, I find
   ServerRoot /usr/lib/apache2
but no log files, and no special logfile paths, so it seems it must use the
default.

However in /var/log/apache2 I find log files that have not been touched
since February.


-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] Apache is running but its log is not

2011-05-02 Thread Kevin O'Gorman
On Sun, May 1, 2011 at 1:39 AM, Neil Bothwick n...@digimed.co.uk wrote:

 On Sat, 30 Apr 2011 23:04:35 -0700, Kevin O'Gorman wrote:

  I just noticed a failure in a dynamic web page that I haven't touched
  in years.  So I looked in
  /var/log/apache2 and found that no files have been touched since
  February.

 Are permissions correct for the apache user to created and write to
 files? Does syslog show any messages from Apache?

 Permissions are generous:

treat apache2 # ls -lad /var
drwxr-xr-x 17 root root 4096 Apr 30 23:06 /var
treat apache2 # ls -lad /var/log
drwxr-xr-x 17 root root 4096 May  2 03:14 /var/log
treat apache2 # ls -lad /var/log/apache2
drwxrwxrwx 2 apache apache 4096 Apr 30 22:16 /var/log/apache2
treat apache2 # ls -l /var/log/apache2
total 1584
-rw-rw-rw- 1 apache apache  0 Feb  4 03:10 access_log
-rw-rw-rw- 1 apache apache 191438 Jun 15  2009 access_log.1.gz
-rw-rw-rw- 1 apache apache 111538 Dec 26 03:10 access_log-20101226.gz
-rw-rw-rw- 1 apache apache  15152 Jan 18 03:10 access_log-20110118.gz
-rw-rw-rw- 1 apache apache 179611 Jan 25 03:10 access_log-20110125.gz
-rw-rw-rw- 1 apache apache  16844 Feb  4 03:10 access_log-20110204.gz
-rw-rw-rw- 1 apache apache 234663 Jun  8  2009 access_log.2.gz
-rw-rw-rw- 1 apache apache 270349 Jun  1  2009 access_log.3.gz
-rw-rw-rw- 1 apache apache 277761 May 25  2009 access_log.4.gz
-rw-rw-rw- 1 apache apache  0 Feb  4 03:10 error_log
-rw-rw-rw- 1 apache apache 117611 Jun 15  2009 error_log.1.gz.out
-rw-rw-rw- 1 apache apache  33793 Dec 26 03:10 error_log-20101226.gz
-rw-rw-rw- 1 apache apache   3729 Jan 18 03:10 error_log-20110118.gz
-rw-rw-rw- 1 apache apache  34184 Jan 25 03:10 error_log-20110125.gz
-rw-rw-rw- 1 apache apache   4350 Feb  4 03:10 error_log-20110204.gz
-rw-rw-rw- 1 apache apache   5706 Jun  8  2009 error_log.2.gz
-rw-rw-rw- 1 apache apache   5628 Jun  1  2009 error_log.3.gz
-rw-rw-rw- 1 apache apache   6344 May 25  2009 error_log.4.gz
-rw-rw-rw- 1 apache apache  0 Feb  6 03:10 ssl_access_log
-rw-rw-rw- 1 apache apache 89 Dec 31 03:10 ssl_access_log-20101231.gz
-rw-rw-rw- 1 apache apache137 Jan 22 03:10 ssl_access_log-20110122.gz
-rw-rw-rw- 1 apache apache182 Jan 30 03:10 ssl_access_log-20110130.gz
-rw-rw-rw- 1 apache apache 89 Feb  6 03:10 ssl_access_log-20110206.gz
-rw-rw-rw- 1 apache apache  0 Feb  7 03:10 ssl_error_log
-rw-rw-rw- 1 apache apache122 Dec 20 03:10 ssl_error_log-20101220.gz
-rw-rw-rw- 1 apache apache122 Jan 18 03:10 ssl_error_log-20110118.gz
-rw-rw-rw- 1 apache apache208 Jan 30 03:10 ssl_error_log-20110130.gz
-rw-rw-rw- 1 apache apache203 Feb  7 03:10 ssl_error_log-20110207.gz
-rw-rw-rw- 1 apache apache  0 Feb  6 03:10 ssl_request_log
-rw-rw-rw- 1 apache apache102 Dec 31 03:10 ssl_request_log-20101231.gz
-rw-rw-rw- 1 apache apache158 Jan 22 03:10 ssl_request_log-20110122.gz
-rw-rw-rw- 1 apache apache197 Jan 30 03:10 ssl_request_log-20110130.gz
-rw-rw-rw- 1 apache apache103 Feb  6 03:10 ssl_request_log-20110206.gz
treat apache2 #

There is one syslog entry for apache in the last 7 days:
May  1 08:44:13 treat named[5150]: error (unexpected RCODE SERVFAIL)
resolving 'maven.apache.org/A/IN': 199.19.57.1#53

This does not seem to have anything to do with the problem, which is that my
CGI script associated with hex.kosmanor.com/hex/bin/newdump was failing.

In the meanwhile, I'll be opening a different thread because things got lots
worse when I did a --depclean, which deleted the one copy of python that
everything seems to use: my CGI scripts are now the least of my problems.  I
can no longer run portage, vim or even untar my extensive collection of
binary packages.

-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] Apache is running but its log is not

2011-05-02 Thread Kevin O'Gorman
On Mon, May 2, 2011 at 9:36 AM, Kevin O'Gorman kogor...@gmail.com wrote:



 On Sun, May 1, 2011 at 1:39 AM, Neil Bothwick n...@digimed.co.uk wrote:

 On Sat, 30 Apr 2011 23:04:35 -0700, Kevin O'Gorman wrote:

  I just noticed a failure in a dynamic web page that I haven't touched
  in years.  So I looked in
  /var/log/apache2 and found that no files have been touched since
  February.

 Are permissions correct for the apache user to created and write to
 files? Does syslog show any messages from Apache?

 Permissions are generous:

 treat apache2 # ls -lad /var
 drwxr-xr-x 17 root root 4096 Apr 30 23:06 /var
 treat apache2 # ls -lad /var/log
 drwxr-xr-x 17 root root 4096 May  2 03:14 /var/log
 treat apache2 # ls -lad /var/log/apache2
 drwxrwxrwx 2 apache apache 4096 Apr 30 22:16 /var/log/apache2
 treat apache2 # ls -l /var/log/apache2
 total 1584
 -rw-rw-rw- 1 apache apache  0 Feb  4 03:10 access_log
 -rw-rw-rw- 1 apache apache 191438 Jun 15  2009 access_log.1.gz
 -rw-rw-rw- 1 apache apache 111538 Dec 26 03:10 access_log-20101226.gz
 -rw-rw-rw- 1 apache apache  15152 Jan 18 03:10 access_log-20110118.gz
 -rw-rw-rw- 1 apache apache 179611 Jan 25 03:10 access_log-20110125.gz
 -rw-rw-rw- 1 apache apache  16844 Feb  4 03:10 access_log-20110204.gz
 -rw-rw-rw- 1 apache apache 234663 Jun  8  2009 access_log.2.gz
 -rw-rw-rw- 1 apache apache 270349 Jun  1  2009 access_log.3.gz
 -rw-rw-rw- 1 apache apache 277761 May 25  2009 access_log.4.gz
 -rw-rw-rw- 1 apache apache  0 Feb  4 03:10 error_log
 -rw-rw-rw- 1 apache apache 117611 Jun 15  2009 error_log.1.gz.out
 -rw-rw-rw- 1 apache apache  33793 Dec 26 03:10 error_log-20101226.gz
 -rw-rw-rw- 1 apache apache   3729 Jan 18 03:10 error_log-20110118.gz
 -rw-rw-rw- 1 apache apache  34184 Jan 25 03:10 error_log-20110125.gz
 -rw-rw-rw- 1 apache apache   4350 Feb  4 03:10 error_log-20110204.gz
 -rw-rw-rw- 1 apache apache   5706 Jun  8  2009 error_log.2.gz
 -rw-rw-rw- 1 apache apache   5628 Jun  1  2009 error_log.3.gz
 -rw-rw-rw- 1 apache apache   6344 May 25  2009 error_log.4.gz
 -rw-rw-rw- 1 apache apache  0 Feb  6 03:10 ssl_access_log
 -rw-rw-rw- 1 apache apache 89 Dec 31 03:10 ssl_access_log-20101231.gz
 -rw-rw-rw- 1 apache apache137 Jan 22 03:10 ssl_access_log-20110122.gz
 -rw-rw-rw- 1 apache apache182 Jan 30 03:10 ssl_access_log-20110130.gz
 -rw-rw-rw- 1 apache apache 89 Feb  6 03:10 ssl_access_log-20110206.gz
 -rw-rw-rw- 1 apache apache  0 Feb  7 03:10 ssl_error_log
 -rw-rw-rw- 1 apache apache122 Dec 20 03:10 ssl_error_log-20101220.gz
 -rw-rw-rw- 1 apache apache122 Jan 18 03:10 ssl_error_log-20110118.gz
 -rw-rw-rw- 1 apache apache208 Jan 30 03:10 ssl_error_log-20110130.gz
 -rw-rw-rw- 1 apache apache203 Feb  7 03:10 ssl_error_log-20110207.gz
 -rw-rw-rw- 1 apache apache  0 Feb  6 03:10 ssl_request_log
 -rw-rw-rw- 1 apache apache102 Dec 31 03:10 ssl_request_log-20101231.gz
 -rw-rw-rw- 1 apache apache158 Jan 22 03:10 ssl_request_log-20110122.gz
 -rw-rw-rw- 1 apache apache197 Jan 30 03:10 ssl_request_log-20110130.gz
 -rw-rw-rw- 1 apache apache103 Feb  6 03:10 ssl_request_log-20110206.gz
 treat apache2 #

 There is one syslog entry for apache in the last 7 days:
 May  1 08:44:13 treat named[5150]: error (unexpected RCODE SERVFAIL)
 resolving 'maven.apache.org/A/IN': 199.19.57.1#53

 This does not seem to have anything to do with the problem, which is that
 my CGI script associated with hex.kosmanor.com/hex/bin/newdump was
 failing.

 In the meanwhile, I'll be opening a different thread because things got
 lots worse when I did a --depclean, which deleted the one copy of python
 that everything seems to use: my CGI scripts are now the least of my
 problems.  I can no longer run portage, vim or even untar my extensive
 collection of binary packages.

 --
 Kevin O'Gorman, PhD

 Okay, there was already a thread about that, and my Python problem seems
solved.  I still have no log entries.


-- 
Kevin O'Gorman, PhD


Re: [gentoo-user] Apache is running but its log is not

2011-05-02 Thread Adam Carter

 Okay, there was already a thread about that, and my Python problem seems
 solved.  I still have no log entries.


Ok, as root, try lsof | grep apache and see if there are any open log files.
You may need to emerge lsof first if you dont already have it.

IIRC apache fails to start if it cant write to the log directory - could be
wrong on that tho.


Re: [gentoo-user] Apache is running but its log is not

2011-05-01 Thread Adam Carter
 How do I find out where/if Apache thinks its logging things?


In /etc/apache check httpd.conf and modules.d/00_mod_log_config.conf


Re: [gentoo-user] Apache is running but its log is not

2011-05-01 Thread Neil Bothwick
On Sat, 30 Apr 2011 23:04:35 -0700, Kevin O'Gorman wrote:

 I just noticed a failure in a dynamic web page that I haven't touched
 in years.  So I looked in
 /var/log/apache2 and found that no files have been touched since
 February.

Are permissions correct for the apache user to created and write to
files? Does syslog show any messages from Apache?


-- 
Neil Bothwick

War does not determine who is right -- only who is left.


signature.asc
Description: PGP signature