EvilZone

General Tech => Operating System => : lucid February 05, 2013, 10:19:48 PM

: Apache Fails at Boot
: lucid February 05, 2013, 10:19:48 PM
This happened absolutely randomly. I've already asked my Infinity buddies but they are busy as am I and I don't want to give them other shit to think about. So here's the problem.

When I startup I see a error message saying Apache failed to start.
:
      Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled)
      Active: failed (Result: exit-code) since Tue 2013-02-05 11:09:11 UTC; 4h 6min ago
     Process: 402 ExecStart=/usr/sbin/apachectl start (code=exited, status=1/FAILURE)

Not really sure exactly what to do there. So I checked the logs at /var/log/httpd/error_logs and this is what I get:

:
[Mon Feb 04 17:16:17 2013] [notice] caught SIGWINCH, shutting down gracefully
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Mon Feb 04 17:16:17 2013] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)

Which...also doesn't really let me know what I can do about it. Anyone got any ideas? I've tried reinstalling and I also cleared the logs(somehow fixed it for one boot). Otherwise every time I try to connect firefox just gives me this:

Unable to connect
_____________________________________________________________________
     Firefox can't establish a connection to the server at localhost.
: Re: Apache Fails at Boot
: proxx February 06, 2013, 04:36:22 AM
Alright how about starting it manually with some more verbosity?
: Re: Apache Fails at Boot
: techb February 06, 2013, 05:55:20 AM
Verbose would help. Other than than nothing really to work on. Are you doing manual installs or going with LAMP?
: Re: Apache Fails at Boot
: lucid February 06, 2013, 06:03:47 AM
I'm working with LAMP. Plus I noticed that after the system is started running:

systemctl stop httpd.service
systemctl start httpd.service

Works. So it works fine if I start it manually, but allowing systemd to start it during boot doesn't seem to want to work. I wouldn't call it a fix but at least there's something. Maybe it's a bug?
: Re: Apache Fails at Boot
: techb February 06, 2013, 06:27:53 AM
I'm working with LAMP. Plus I noticed that after the system is started running:

systemctl stop httpd.service
systemctl start httpd.service

Works. So it works fine if I start it manually, but allowing systemd to start it during boot doesn't seem to want to work. I wouldn't call it a fix but at least there's something. Maybe it's a bug?

Since systemctl is so FUCKING new with little docs, I would say it's a bug. Not many people want to run apache with Arch.
: Re: Apache Fails at Boot
: lucid February 06, 2013, 06:28:47 AM
 :-\

Eh well at least I found a half-fix.
: Re: Apache Fails at Boot
: techb February 06, 2013, 06:32:11 AM
 
:-\

Eh well at least I found a half-fix.

Half-fix maybe, at least it works. I would suggets going to Arch forums or Apache forums. There may be a bug submission in order. Or maybe there is any eaiser fix, idk.
: Re: Apache Fails at Boot
: fluxdaemon February 06, 2013, 03:13:03 PM
You could always run nginx instead
I haven't had any problems with it in Arch
: Re: Apache Fails at Boot
: proxx February 06, 2013, 03:15:41 PM
I have a feeling it has to do with run levels.
You can start it as SU right?
Is there any additional information in your bootlog ?
: Re: Apache Fails at Boot
: lucid February 06, 2013, 06:52:15 PM
No actually there isn't anything of any use it seems. Btw today when I turned on my compter Apache started fine. It just randomly fails every other time or something. I have no idea why at this point.
: Re: Apache Fails at Boot
: proxx February 06, 2013, 09:17:33 PM
*The burden of a bleeding edge lover*
: Re: Apache Fails at Boot
: lucid February 06, 2013, 09:23:07 PM
Word