Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Apache2 reload takes ages
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
questionaire
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 131

PostPosted: Sat Feb 24, 2007 7:58 am    Post subject: Apache2 reload takes ages Reply with quote

hi there,

starting apache2 or reloading it takes only sometimes (!) ages.
it may also be that it hangs up at this line:

Quote:
[Sat Feb 24 08:56:33 2007] [info] Server: Apache/2.0.58, Interface: mod_ssl/2.0.58, Library: OpenSSL/0.9.8d
[Sat Feb 24 08:56:33 2007] [notice] Digest: generating secret for digest authentication ...


something is wrong with openssl, but i really dont know :(
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sat Feb 24, 2007 8:06 am    Post subject: Reply with quote

how long is ages? :lol:

Code:
generating secret for digest authentication


having to wait for that is normal if you have a slower cpu... its almost like running ssh-keygen.
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
questionaire
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 131

PostPosted: Sat Feb 24, 2007 8:08 am    Post subject: Reply with quote

its a Core2Duo E6600 (2x2,9GHz) with 2GB Ram - is that slow? ;)

Ages means up to two minutes
Back to top
View user's profile Send private message
bunder
Bodhisattva
Bodhisattva


Joined: 10 Apr 2004
Posts: 5947

PostPosted: Sat Feb 24, 2007 8:10 am    Post subject: Reply with quote

questionaire wrote:
its a Core2Duo E6600 (2x2,9GHz) with 2GB Ram - is that slow? ;)

Ages means up to two minutes


oh jeez, that is long... much longer than it really really should. :lol:

tried re-emerging apache and openssl? can we see your make.conf?

cheers
_________________
Neddyseagoon wrote:
The problem with leaving is that you can only do it once and it reduces your influence.

banned from #gentoo since sept 2017
Back to top
View user's profile Send private message
questionaire
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 131

PostPosted: Sat Feb 24, 2007 8:11 am    Post subject: Reply with quote

yes reemerged openssl, apache, libssl - also tried apache 1.3

make.conf:
Code:
cat /etc/make.conf
# These settings were set by the catalyst build script that automatically built this stage
# Please consult /etc/make.conf.example for a more detailed example
CFLAGS="-O2 -march=pentium4 -pipe -mmmx -msse"
CHOST="i686-pc-linux-gnu"
CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j3"


SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"

USE="xsl tokenizer curl curlwrappers bcmath cjk ctype exif mysqli pcre pdo soap unicode xmlreader xmlwriter clamd subject-rewrite symlink checkpath mode-owner iconv vroot apache2 spamd bzlib crypt ldap mime session sharedmem simplexml mbox pam pam-mysql sockets gd dbx ftp imagemagick jpeg libwww maildir mhash mysql ncurses pdf perl php png tcpd sasl snmp ssl xml zlib imap latin1 bzip2 calendar cgi force-cgi-redirect hash zip clamav hardened sse2 big-tables -X -x11 -sdl -cups -apache -gtk -kde -mbox -ssmtp"
GENTOO_MIRRORS="ftp://gentoo.inode.at/source/ http://gentoo.intergenia.de http://gd.tuwien.ac.at/opsys/linux/gentoo/ http://mirrors.sec.informatik.tu-darmstadt.de/gentoo/"
LINGUAS="de"
FEATURES="parallel-fetch"
Back to top
View user's profile Send private message
Janne Pikkarainen
Veteran
Veteran


Joined: 29 Jul 2003
Posts: 1143
Location: Helsinki, Finland

PostPosted: Sat Feb 24, 2007 8:30 pm    Post subject: Reply with quote

Kernel is probably running out of entropy. If your motherboard includes a hardware random number generator, then see if it's supported by the kernel. If not, then you'll need to generate the entropy in some other way - the easiest is to emerge rng-tools and use rngd (/etc/init.d/rngd start). rngd just shovels numbers from /dev/urandom to /dev/random whenever necessary to do so, and that keeps kernel entropy pool filled.
_________________
Yes, I'm the man. Now it's your turn to decide if I meant "Yes, I'm the male." or "Yes, I am the Unix Manual Page.".
Back to top
View user's profile Send private message
questionaire
Tux's lil' helper
Tux's lil' helper


Joined: 01 May 2006
Posts: 131

PostPosted: Sun Feb 25, 2007 2:31 pm    Post subject: Reply with quote

hey thanks :)
Back to top
View user's profile Send private message
KShots
Guru
Guru


Joined: 09 Oct 2003
Posts: 595
Location: Florida

PostPosted: Tue Mar 06, 2007 1:20 pm    Post subject: Reply with quote

Janne Pikkarainen wrote:
Kernel is probably running out of entropy. If your motherboard includes a hardware random number generator, then see if it's supported by the kernel. If not, then you'll need to generate the entropy in some other way - the easiest is to emerge rng-tools and use rngd (/etc/init.d/rngd start). rngd just shovels numbers from /dev/urandom to /dev/random whenever necessary to do so, and that keeps kernel entropy pool filled.
Hey, I think I'm facing this same problem, although mine never finishes. I'd suspect that questionaire's apache process finishes because he can switch to another console and type away there, generating entropy, and work off of that... but I'm working on a headless, diskless machine. Is there anything I can do about this?

EDIT: Even though I do have a hardware random number generator support, and told apache to point at /dev/urandom, I still needed rng-tools. Installing that fixed my issue. Thanks!
_________________
Life without passion is death in disguise
Back to top
View user's profile Send private message
CodAv
Apprentice
Apprentice


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

PostPosted: Mon Aug 06, 2007 10:13 pm    Post subject: Reply with quote

Another solution is to simply not load mod_auth_digest, as you probably won't need it in most cases.
_________________
Debian is available in three different versions: rusty, stale and broken.
Back to top
View user's profile Send private message
KShots
Guru
Guru


Joined: 09 Oct 2003
Posts: 595
Location: Florida

PostPosted: Tue Aug 07, 2007 12:53 am    Post subject: Reply with quote

Nope, not unless you're running any kind of encryption with authentication. Me, just about everything I do uses encryption and authentication... so I need my mod_auth_digest. Actually, I don't know of too many useful apache servers in existence that don't use encryption and authentication...
_________________
Life without passion is death in disguise
Back to top
View user's profile Send private message
evilTone
n00b
n00b


Joined: 07 Dec 2002
Posts: 14

PostPosted: Mon Oct 22, 2007 9:20 pm    Post subject: Reply with quote

the rndg trick worked a treat for me also
thanks for posting that hint :D
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