View previous topic :: View next topic |
Author |
Message |
rburcham Apprentice

Joined: 20 Mar 2003 Posts: 249
|
Posted: Mon Dec 01, 2003 6:14 pm Post subject: Apache2 mod_auth_digest.so hangs |
|
|
I am pretty regularly seeing Apache2 hang on startup. Relevant detail to follow:
# uname -a
Code: | Linux monkeysparc1 2.4.21-sparc-r0 #8 SMP Tue Jul 8 19:57:54 CDT 2003 sparc64 sun4u TI UltraSparc II (BlackBird) GNU/Linux
|
# emerge -s apache
Code: | * net-www/apache
Latest version available: 2.0.48-r1
Latest version installed: 2.0.48-r1
Size of downloaded files: 6,111 kB
Homepage: http://www.apache.org/
Description: Apache Web Server, Version 2.0.x
|
# /etc/init.d/apache2 start
Code: | * Starting apache2...
apache2: Could not determine the server's fully qualified domain name, using 192.168.100.31 for ServerName [ ok ] |
# tail /etc/apache2/logs/error_log
Code: | [Mon Dec 01 10:59:51 2003] [notice] Digest: generating secret for digest authentication ...
|
Note that it never says "Done." Also, the process table only shows a single apache process:
# ps ax | grep apache
Code: | 28963 ? S 0:00 /usr/sbin/apache2 -k start
|
# netstat -tupan | grep apache
Code: | tcp 0 0 0.0.0.0:80 0.0.0.0:* LISTEN 28963/apache2
|
However any connecting clients just hang. I did a search here on the forums and found another fellow who had the same problem on Nov 1. He indicated he was able to get apache to start if he commented out the loading of the module in apache2.conf. I did this and I was able to get apache to start.
We should get this fixed though. I searched the bugs site and found no references. If someone can confirm my observations I will log a bug. |
|
Back to top |
|
 |
dholm Retired Dev


Joined: 11 Aug 2003 Posts: 35 Location: Sweden
|
Posted: Mon Feb 02, 2004 9:55 am Post subject: |
|
|
I have the exact same problem
Please bugreport it as it's very serious. |
|
Back to top |
|
 |
meyerm Veteran


Joined: 27 Jun 2002 Posts: 1311 Location: Munich / Germany
|
Posted: Mon Feb 02, 2004 10:22 am Post subject: Re: Apache2 mod_auth_digest.so hangs |
|
|
rburcham wrote: | We should get this fixed though. I searched the bugs site and found no references. If someone can confirm my observations I will log a bug. |
Search further The only bug found at bugs.gentoo.org searching for "apache2" and "mod_auth_digest" ist the following:
https://bugs.gentoo.org/show_bug.cgi?id=37039
The more practical resolution than commenting out the module is compiling apache like that: MY_BUILTINS="--with-devrandom=/dev/urandom" emerge apache
hth
Marcel |
|
Back to top |
|
 |
dholm Retired Dev


Joined: 11 Aug 2003 Posts: 35 Location: Sweden
|
Posted: Mon Feb 02, 2004 10:31 am Post subject: |
|
|
Thank you for the help. I really should find someone to talk care of all my server stuff for me . |
|
Back to top |
|
 |
starachna Tux's lil' helper


Joined: 17 Apr 2003 Posts: 104 Location: south africa
|
Posted: Mon Feb 02, 2004 7:43 pm Post subject: has this been fixed yet? |
|
|
hello all, many thanks for this post, i was about to really, really, brake my pc
has this been resolved yet ? _________________ http://www.3am.co.za - za psy trance |
|
Back to top |
|
 |
Deebster Tux's lil' helper


Joined: 16 Nov 2003 Posts: 126
|
Posted: Sun Feb 29, 2004 1:27 pm Post subject: |
|
|
I had this problem a while back. The problem isn't with apache as such, more that your system isn't random enough...
At start, apache reads /dev/random to get data to generate the digest for mod_auth_digest. If /dev/random hasn't got enough random data in it, it blocks until it does, which is why apache appears to hang.
/dev/random gets data from entropy in the machine (random events like interrupts). I was running downstairs to the machine and mashing the keyboard to give it enough data until I just commented out the mod_auth_digest module.
The reason why "MY_BUILTINS="--with-devrandom=/dev/urandom" emerge apache" works is that /dev/urandom does not block, so it will return the contents even if less than requested, at a cost to randomness. |
|
Back to top |
|
 |
pvincent n00b


Joined: 02 Aug 2003 Posts: 29
|
Posted: Thu Mar 04, 2004 6:37 am Post subject: apache2 hangs with /dev/random |
|
|
Thanks for this post.
I was wondering why my apache could not start.
I'm busing re-emerging apache with
Code: | MY_BUILTINS="--with-devrandom=/dev/urandom" emerge apache |
Hoping it works...
Anyway it makes sense, I was able to launch apache2 before.
Then, I stored the machine into a bay, deconnecting the mouse and keyboard and trying launching apache2 from a SSH connection.
Trouble into /var/log/apache2/error.log
Quote: | Digest: generating secret for digest authentication ... |
and never done...
I suppose /dev/random could not get enough entropy and then hangs due to mouse and keyboard off.
Does it sound right ?
I'm not pretty sure... |
|
Back to top |
|
 |
geta Apprentice

Joined: 10 May 2003 Posts: 153
|
Posted: Sat Mar 06, 2004 12:18 am Post subject: |
|
|
Thanks for that posting. Explains my problem. Same symptoms. Haven't re-emerged yet and probably won't.
But I will try those methods explained in the bug. Seems fairly interesting that a "du -h /anypath" can produce some entropy for the digest key...
Greetz, geta _________________ geta - pronounced: "djetta" |
|
Back to top |
|
 |
HaloBoy n00b

Joined: 31 May 2003 Posts: 3
|
Posted: Sun Apr 04, 2004 7:03 am Post subject: It worked for me too... |
|
|
I had the same problem and the /dev/urandom fixed it! |
|
Back to top |
|
 |
meyerm Veteran


Joined: 27 Jun 2002 Posts: 1311 Location: Munich / Germany
|
Posted: Sun Apr 04, 2004 10:49 am Post subject: |
|
|
geta wrote: | Seems fairly interesting that a "du -h /anypath" can produce some entropy for the digest key... |
The random source uses all "almost random" events on your computer to generate new values. These events are everything a user can cause: keyboard or mouse, disk access and even network traffic. |
|
Back to top |
|
 |
Roderik n00b


Joined: 06 Jun 2002 Posts: 55 Location: Belgium
|
Posted: Wed Jun 23, 2004 2:09 pm Post subject: |
|
|
i had the same symptoms described here. After trying eveything discussed here it still didn't work.
Fixed it though for ppl with the same problem, i emerged php 4.3.7 yesterday and it broke after reboot. without php it worked fine. Seems you have to re-emerge turcks-mmcache if you have that installed. Probaby dbg also if used. _________________ "Never argue with an idiot, they'll drag you down to their level and beat you with experience." |
|
Back to top |
|
 |
zsek n00b

Joined: 25 Nov 2005 Posts: 4
|
Posted: Fri Nov 25, 2005 10:49 am Post subject: |
|
|
Hello all,
I had the same problem. I had already installed apache and I got the problem with the apr package. I solved the problem with the folloing:
USE="urandom" emerge apr
Regards,
zsek |
|
Back to top |
|
 |
|