This forum is in archive mode. You will not be able to post new content.

Author Topic: Apache Fails at Boot  (Read 5421 times)

0 Members and 1 Guest are viewing this topic.

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Apache Fails at Boot
« on: 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.
Code: [Select]
      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:

Code: [Select]
[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.
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Apache Fails at Boot
« Reply #1 on: February 06, 2013, 04:36:22 AM »
Alright how about starting it manually with some more verbosity?
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Apache Fails at Boot
« Reply #2 on: 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?
>>>import this
-----------------------------

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Apache Fails at Boot
« Reply #3 on: 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?
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Apache Fails at Boot
« Reply #4 on: 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.
>>>import this
-----------------------------

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Apache Fails at Boot
« Reply #5 on: February 06, 2013, 06:28:47 AM »
 :-\

Eh well at least I found a half-fix.
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline techb

  • Soy Sauce Feeler
  • Global Moderator
  • King
  • *
  • Posts: 2350
  • Cookies: 345
  • Aliens do in fact wear hats.
    • View Profile
    • github
Re: Apache Fails at Boot
« Reply #6 on: 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.
« Last Edit: February 06, 2013, 06:33:35 AM by techb »
>>>import this
-----------------------------

Offline fluxdaemon

  • Peasant
  • *
  • Posts: 104
  • Cookies: -7
  • Galatians 2:20
    • View Profile
Re: Apache Fails at Boot
« Reply #7 on: February 06, 2013, 03:13:03 PM »
You could always run nginx instead
I haven't had any problems with it in Arch
« Last Edit: February 06, 2013, 03:13:53 PM by fluxdaemon »

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Apache Fails at Boot
« Reply #8 on: 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 ?
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Apache Fails at Boot
« Reply #9 on: 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.
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

Offline proxx

  • Avatarception
  • Global Moderator
  • Titan
  • *
  • Posts: 2803
  • Cookies: 256
  • ФФФ
    • View Profile
Re: Apache Fails at Boot
« Reply #10 on: February 06, 2013, 09:17:33 PM »
*The burden of a bleeding edge lover*
Wtf where you thinking with that signature? - Phage.
This was another little experiment *evillaughter - Proxx.
Evilception... - Phage

Offline lucid

  • #Underground
  • Titan
  • **
  • Posts: 2683
  • Cookies: 243
  • psychonaut
    • View Profile
Re: Apache Fails at Boot
« Reply #11 on: February 06, 2013, 09:23:07 PM »
Word
"Hacking is at least as much about ideas as about computers and technology. We use our skills to open doors that should never have been shut. We open these doors not only for our own benefit but for the benefit of others, too." - Brian the Hacker

Quote
15:04  @Phage : I'm bored of Python

 



Want to be here? Contact Ande, Factionwars or Kulverstukas on the forum or at IRC.