1 |
> On Thu, 2010-07-29 at 14:24 -0700, Kevin O'Gorman wrote: |
2 |
> > As of today, my apache2 web server seems to refuse to start. I've |
3 |
> > tried a system reboot, to no avail -- |
4 |
> > connections are refused on port 80. |
5 |
> > |
6 |
> > In /etc/init.d it looks like this: if I try to start it, it says it's |
7 |
> > already started. netstat says there's no listener |
8 |
> > on port 80. If I try to restart it, it cannot start a listener. I'm |
9 |
> > really bummed. |
10 |
> > |
11 |
> > Any ideas how to get this going again? |
12 |
> > |
13 |
> > Here's a short look at what I was doing in /etc/init.d |
14 |
> > |
15 |
> > treat init.d # ./apache2 start |
16 |
> > * WARNING: apache2 has already been started. |
17 |
> > treat init.d # ./apache2 restart |
18 |
> > * Stopping apache2 ... |
19 |
> > httpd (no pid file) not running |
20 |
> > [ ok ] |
21 |
> > * Starting apache2 ... |
22 |
> > (98)Address already in use: make_sock: could not bind to address |
23 |
> > 64.166.164.49:80 |
24 |
> > no listening sockets available, shutting down |
25 |
> > Unable to open logs |
26 |
> > [ ok ] |
27 |
> |
28 |
> |
29 |
> |
30 |
> On Thu, Jul 29, 2010 at 4:27 PM, William Kenworthy <billk@×××××××××.au>wrote: |
31 |
There is an "Unable to open logs" in there ... are you doing some fancy |
32 |
remote logging that cant start? - I cant see anything that says its |
33 |
specifically port 80 thats causing the problem, just no listening |
34 |
sockets available. |
35 |
|
36 |
syslog is udp port 514, and then there is ssl on 443. |
37 |
|
38 |
BillK |
39 |
|
40 |
I'm doing nothing fancy, but I did have a nearly full root directory. I |
41 |
flushed out some |
42 |
old portage stuff an I'm back to 19 GB free. I still get the same result |
43 |
messages during |
44 |
a reboot. |
45 |
|
46 |
It is true I modified the local apache config |
47 |
/etc/apache2/kosmanor/hexDirs.conf slightly just before. I added a /HexData |
48 |
alias, like |
49 |
a few others that I have. I've attached the config file in case you can |
50 |
find any unintended |
51 |
change. |
52 |
|
53 |
Looking at the logs, there does not seem to be logging going on since July |
54 |
16, and things |
55 |
were working then, I thought. List of log directory follows. I do seem to |
56 |
have two different styles of log rotation going on simultaneously, but that |
57 |
seems to have been the case for |
58 |
quite a while now; I'll find that later. |
59 |
|
60 |
treat apache2 # ls -l |
61 |
total 4368 |
62 |
-rw-rw-rw- 1 root root 0 Jul 16 03:10 access_log |
63 |
-rw-rw-rw- 1 root root 191438 Jun 15 2009 access_log.1.gz |
64 |
-rw-rw-rw- 1 root root 678879 Jun 25 03:10 access_log-20100625.gz |
65 |
-rw-rw-rw- 1 root root 693424 Jul 2 03:10 access_log-20100702.gz |
66 |
-rw-rw-rw- 1 root root 701307 Jul 9 03:10 access_log-20100709.gz |
67 |
-rw-rw-rw- 1 root root 840730 Jul 16 03:10 access_log-20100716.gz |
68 |
-rw-rw-rw- 1 root root 234663 Jun 8 2009 access_log.2.gz |
69 |
-rw-rw-rw- 1 root root 270349 Jun 1 2009 access_log.3.gz |
70 |
-rw-rw-rw- 1 root root 277761 May 25 2009 access_log.4.gz |
71 |
-rw-rw-rw- 1 root root 0 Jul 16 03:10 error_log |
72 |
-rw-rw-rw- 1 root root 117611 Jun 15 2009 error_log.1.gz.out |
73 |
-rw-rw-rw- 1 root root 61608 Jun 25 03:10 error_log-20100625.gz |
74 |
-rw-rw-rw- 1 root root 69397 Jul 2 03:10 error_log-20100702.gz |
75 |
-rw-rw-rw- 1 root root 118085 Jul 9 03:10 error_log-20100709.gz |
76 |
-rw-rw-rw- 1 root root 114433 Jul 16 03:10 error_log-20100716.gz |
77 |
-rw-rw-rw- 1 root root 5706 Jun 8 2009 error_log.2.gz |
78 |
-rw-rw-rw- 1 root root 5628 Jun 1 2009 error_log.3.gz |
79 |
-rw-rw-rw- 1 root root 6344 May 25 2009 error_log.4.gz |
80 |
-rw-rw-rw- 1 root root 0 Feb 3 2008 ssl_access_log |
81 |
-rw-rw-rw- 1 root root 0 Feb 3 2008 ssl_error_log |
82 |
-rw-rw-rw- 1 root root 0 Feb 3 2008 ssl_request_log |
83 |
treat apache2 # pwd |
84 |
/var/log/apache2 |
85 |
treat apache2 # |
86 |
|
87 |
|
88 |
The ownership may seem odd, but agrees with backups. That July 16 log ends |
89 |
with |
90 |
something familiar: |
91 |
|
92 |
[Fri Jul 16 03:10:07 2010] [notice] SIGUSR1 received. Doing graceful |
93 |
restart |
94 |
(98)Address already in use: make_sock: could not bind to address 0.0.0.0:80 |
95 |
no listening sockets available, shutting down |
96 |
Unable to open logs |
97 |
treat apache2 # |
98 |
|
99 |
So I guess my page has been down for a while. A nuisance at most because |
100 |
it's just my |
101 |
personal stuff, which a handful of people care about. But I want it back |
102 |
up, not to mention the logging. |
103 |
|
104 |
|
105 |
|
106 |
-- |
107 |
Kevin O'Gorman, PhD |