Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index Assistance Networking & Security
  • Search

Apache2 mod_auth_digest.so hangs

Having problems getting connected to the internet or running a server? Wondering about securing your box? Ask here.
Post Reply
Advanced search
12 posts • Page 1 of 1
Author
Message
rburcham
Apprentice
Apprentice
Posts: 255
Joined: Thu Mar 20, 2003 4:57 am

Apache2 mod_auth_digest.so hangs

  • Quote

Post by rburcham » Mon Dec 01, 2003 6:14 pm

I am pretty regularly seeing Apache2 hang on startup. Relevant detail to follow:

# uname -a

Code: Select all

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: Select all

*  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: Select all

 * 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: Select all

[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: Select all

28963 ?        S      0:00 /usr/sbin/apache2 -k start
# netstat -tupan | grep apache

Code: Select all

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.
Top
dholm
Retired Dev
Retired Dev
User avatar
Posts: 35
Joined: Mon Aug 11, 2003 10:27 pm
Location: Sweden
Contact:
Contact dholm
Website

  • Quote

Post by dholm » Mon Feb 02, 2004 9:55 am

I have the exact same problem :(
Please bugreport it as it's very serious.
Top
meyerm
Veteran
Veteran
User avatar
Posts: 1311
Joined: Thu Jun 27, 2002 5:18 pm
Location: Munich / Germany

Re: Apache2 mod_auth_digest.so hangs

  • Quote

Post by meyerm » Mon Feb 02, 2004 10:22 am

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:
http://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
Top
dholm
Retired Dev
Retired Dev
User avatar
Posts: 35
Joined: Mon Aug 11, 2003 10:27 pm
Location: Sweden
Contact:
Contact dholm
Website

  • Quote

Post by dholm » Mon Feb 02, 2004 10:31 am

Thank you for the help. I really should find someone to talk care of all my server stuff for me ;).
Top
starachna
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 104
Joined: Thu Apr 17, 2003 12:28 pm
Location: south africa
Contact:
Contact starachna
Website

has this been fixed yet?

  • Quote

Post by starachna » Mon Feb 02, 2004 7:43 pm

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
Top
Deebster
Tux's lil' helper
Tux's lil' helper
User avatar
Posts: 127
Joined: Sun Nov 16, 2003 9:38 am

  • Quote

Post by Deebster » Sun Feb 29, 2004 1:27 pm

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.
Top
pvincent
n00b
n00b
User avatar
Posts: 29
Joined: Sat Aug 02, 2003 9:02 pm

apache2 hangs with /dev/random

  • Quote

Post by pvincent » Thu Mar 04, 2004 6:37 am

Thanks for this post.
I was wondering why my apache could not start.
I'm busing re-emerging apache with

Code: Select all

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
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...
Top
geta
Apprentice
Apprentice
Posts: 153
Joined: Sat May 10, 2003 9:22 pm

  • Quote

Post by geta » Sat Mar 06, 2004 12:18 am

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... :P

Greetz, geta
geta - pronounced: "djetta"
Top
HaloBoy
n00b
n00b
Posts: 3
Joined: Sat May 31, 2003 5:50 pm

It worked for me too...

  • Quote

Post by HaloBoy » Sun Apr 04, 2004 7:03 am

I had the same problem and the /dev/urandom fixed it!
Top
meyerm
Veteran
Veteran
User avatar
Posts: 1311
Joined: Thu Jun 27, 2002 5:18 pm
Location: Munich / Germany

  • Quote

Post by meyerm » Sun Apr 04, 2004 10:49 am

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.
Top
Roderik
n00b
n00b
User avatar
Posts: 55
Joined: Thu Jun 06, 2002 2:25 pm
Location: Belgium

  • Quote

Post by Roderik » Wed Jun 23, 2004 2:09 pm

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."
Top
zsek
n00b
n00b
Posts: 4
Joined: Fri Nov 25, 2005 10:45 am

  • Quote

Post by zsek » Fri Nov 25, 2005 10:49 am

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
Top
Post Reply

12 posts • Page 1 of 1

Return to “Networking & Security”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy

 

 

magic