You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Fabiano Sidler <fa...@swissonline.ch> on 2005/05/20 02:57:06 UTC

[users@httpd] httpd can't start because it's not yet running

Hi folks!

root@host $ httpd -k start
(20014)Error string not specified yet: Error retrieving pid file /var/run/httpd.pid
root@host $ ls -l /var/run/httpd.pid 
-rw-r--r--  1 root root 0 May 20 02:44 /var/run/httpd.pid

Same problem with httpd:httpd permissions. 'strace' says:

[...]
open("/var/run/httpd.pid", O_RDONLY)    = 3
read(3, "", 13)                         = 0
write(2, "(20014)Error string not specifie"..., 84) = 84
[...]

Where is the problem?
Greetings,
fips

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd can't start because it's not yet running

Posted by Fabiano Sidler <fa...@swissonline.ch>.
Whoa, thank you for answer that quickly!

dan wrote:
> Do you have a PidFile directive in httpd.conf?

$ cat /etc/httpd/httpd.conf | grep PidFile
PidFile "/var/run/httpd.pid"

> What about PIDFILE= in apachectl?  Does that point to the same place?

There is no "PIDFILE" in my apachectl.

Thank you anyway!
Greetings,
fips

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd can't start because it's not yet running

Posted by Fabiano Sidler <fa...@swissonline.ch>.
PEBKAC deluxe!
I forgot to use the Port directive! :-(

Please forgive me for bothering...
Greets,
fips

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd can't start because it's not yet running

Posted by Fabiano Sidler <fa...@swissonline.ch>.
Dick Davies wrote:
> * Fabiano Sidler <fa...@swissonline.ch> [0542 11:42]:
>> open("/var/run/httpd.pid", O_RDONLY)    = -1 ENOENT (No such file or 
>> directory)
> 
> That's screwed. It should create it when it starts.
> Are you using some Redhat monstrosity with SE extensions or something.

No, nothing like this...

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd can't start because it's not yet running

Posted by Dick Davies <ra...@hellooperator.net>.
* Fabiano Sidler <fa...@swissonline.ch> [0542 11:42]:
> Dick Davies schrieb:
> >Looks to me like Apache is reading the pidfile, but it's empty.
> >Try deleting it and trying again.
> 
> No, this never did work by now:
> 
> open("/var/run/httpd.pid", O_RDONLY)    = -1 ENOENT (No such file or 
> directory)

That's screwed. It should create it when it starts.
Are you using some Redhat monstrosity with SE extensions or something.

> write(2, "no listening sockets available, "..., 46) = 46
> write(2, "Unable to open logs\n", 20)   = 20

-- 
'common sense is what tells you that the world is flat.'
		-- Principia Discordia
Rasputin :: Jack of All Trades - Master of Nuns

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd can't start because it's not yet running

Posted by Fabiano Sidler <fa...@swissonline.ch>.
Dick Davies schrieb:
> Looks to me like Apache is reading the pidfile, but it's empty.
> Try deleting it and trying again.

No, this never did work by now:

open("/var/run/httpd.pid", O_RDONLY)    = -1 ENOENT (No such file or 
directory)
write(2, "no listening sockets available, "..., 46) = 46
write(2, "Unable to open logs\n", 20)   = 20

Any further hints?
Thanks,
fips

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd can't start because it's not yet running

Posted by Dick Davies <ra...@hellooperator.net>.
* dan <in...@hostinthebox.net> [0559 01:59]:
> Fabiano Sidler wrote:
> >Hi folks!
> >
> >root@host $ httpd -k start
> >(20014)Error string not specified yet: Error retrieving pid file 
> >/var/run/httpd.pid
> >root@host $ ls -l /var/run/httpd.pid -rw-r--r--  1 root root 0 May 20 
> >02:44 /var/run/httpd.pid
> >
> >Same problem with httpd:httpd permissions. 'strace' says:
> >
> >[...]
> >open("/var/run/httpd.pid", O_RDONLY)    = 3
> >read(3, "", 13)                         = 0
> >write(2, "(20014)Error string not specifie"..., 84) = 84
> >[...]
> >
> >Where is the problem?
> >Greetings,
> >fips
> >
> 
> Do you have a PidFile directive in httpd.conf?  Does it match up to 
> where Apache would expect it?

Well it looks like it, doesn't it? Did you see the strace output?

apache opens the file,
tries to read 13 bytes, and hits end of file
no error is thrown.


Looks to me like Apache is reading the pidfile, but it's empty.
Try deleting it and trying again.
 

-- 
'Robots don't have emotions, and that sometimes makes me feel sad.'
		-- Bender
Rasputin :: Jack of All Trades - Master of Nuns

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] httpd can't start because it's not yet running

Posted by dan <in...@hostinthebox.net>.
Fabiano Sidler wrote:
> Hi folks!
> 
> root@host $ httpd -k start
> (20014)Error string not specified yet: Error retrieving pid file 
> /var/run/httpd.pid
> root@host $ ls -l /var/run/httpd.pid -rw-r--r--  1 root root 0 May 20 
> 02:44 /var/run/httpd.pid
> 
> Same problem with httpd:httpd permissions. 'strace' says:
> 
> [...]
> open("/var/run/httpd.pid", O_RDONLY)    = 3
> read(3, "", 13)                         = 0
> write(2, "(20014)Error string not specifie"..., 84) = 84
> [...]
> 
> Where is the problem?
> Greetings,
> fips
> 

Do you have a PidFile directive in httpd.conf?  Does it match up to 
where Apache would expect it?

What about PIDFILE= in apachectl?  Does that point to the same place?

Thanks
-dant

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org