Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache server runs only once per system boot [SOLVED]
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
CodAv
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 170
Location: Essen, Germany

PostPosted: Wed Mar 29, 2006 10:57 pm    Post subject: Apache server runs only once per system boot [SOLVED] Reply with quote

Hi,,

after many, many other weird Gentoo problems, there is another one which I never had before and I cannot explain. Simply, on two servers with a nearly identical software configuration (basic Stage3 installation with some minor updates), apache2 will only run once. Then, no matter how you restart it (reload, restart, stop/start), it won't run anymore. Reloading it, the running handler threads go defunct. Stopping and restarting it, the main thread spawns and hangs, no errors in the logfiles. Have to kill it with "kill -9". This is the output of "ps auxf" after doing an "/etc/init.d/apache2 reload":

Code:
root      6360  0.0  0.3  13808  6856 ?        Ss   Mar29   0:00 /usr/sbin/apache2 -D DEFAU[cut long cmd line]
apache    6429  0.0  0.0      0     0 ?        Z    Mar29   0:08  \_ [apache2] <defunct>
apache    6431  0.1  0.0      0     0 ?        Z    Mar29   0:13  \_ [apache2] <defunct>


If I reboot the machine, apache comes up and runs perfectly, until I restart it. As one of the servers will act as a mass hosting machine, this behaviour is inacceptable - I would have to restart the server multiple times an hour. Anyone there who has a similar or the same problem?

Additional info:

net-www/apache-2.0.55-r1, compiled with USE flags "apache2 ssl threads", the problem remains even without the "threads" or "ssl" flags.
dev-lang/php-4.4.2, compiled with USE flags "apache2 berkdb bzip2 cli crypt ctype curl exif expat fastbuild force-cgi-redirect ftp gd gdbm ipv6 memlimit mysql ncurses nls pcre posix readline session sharedext sockets spell ssl threads tokenizer truetype xml xsl zlib", the problem remains without php.

I suspect glibc to be the source of those problems, as these two machines are the first I compiled with the "nptl" USE flag. But before taking hours of compiling, I'll ask the community if this problem could be caused by other things. I have glibc-2.3.6-r3 installed.
_________________
Debian is available in three different versions: rusty, stale and broken.


Last edited by CodAv on Wed Mar 29, 2006 11:43 pm; edited 1 time in total
Back to top
View user's profile Send private message
badchien
Guru
Guru


Joined: 16 Feb 2004
Posts: 415
Location: doghouse

PostPosted: Wed Mar 29, 2006 11:15 pm    Post subject: Reply with quote

It's probably this:

http://gentoo-wiki.com/Apache2_Install#Not_Enough_Entropy

I solve it with rng-tools.
Back to top
View user's profile Send private message
CodAv
Apprentice
Apprentice


Joined: 09 May 2004
Posts: 170
Location: Essen, Germany

PostPosted: Wed Mar 29, 2006 11:44 pm    Post subject: Reply with quote

That's it... installed rng-tools-2, and now it starts as intended. Thanks, you saved me a lot of unnecessary compile time! :)
_________________
Debian is available in three different versions: rusty, stale and broken.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum