View previous topic :: View next topic |
Author |
Message |
questionaire Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 May 2006 Posts: 131
|
Posted: Sat Feb 24, 2007 7:58 am Post subject: Apache2 reload takes ages |
|
|
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 ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bunder Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Sat Feb 24, 2007 8:06 am Post subject: |
|
|
how long is ages?
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 |
|
![](templates/gentoo/images/spacer.gif) |
questionaire Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 May 2006 Posts: 131
|
Posted: Sat Feb 24, 2007 8:08 am Post subject: |
|
|
its a Core2Duo E6600 (2x2,9GHz) with 2GB Ram - is that slow?
Ages means up to two minutes |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
bunder Bodhisattva
![Bodhisattva Bodhisattva](/images/ranks/rank-bodhisattva.gif)
Joined: 10 Apr 2004 Posts: 5947
|
Posted: Sat Feb 24, 2007 8:10 am Post subject: |
|
|
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.
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 |
|
![](templates/gentoo/images/spacer.gif) |
questionaire Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 May 2006 Posts: 131
|
Posted: Sat Feb 24, 2007 8:11 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Janne Pikkarainen Veteran
![Veteran Veteran](/images/ranks/rank_rect_5_vet.gif)
![](images/avatars/10433783463f526aba4144d.jpg)
Joined: 29 Jul 2003 Posts: 1143 Location: Helsinki, Finland
|
Posted: Sat Feb 24, 2007 8:30 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
questionaire Tux's lil' helper
![Tux's lil' helper Tux's lil' helper](/images/ranks/rank_rect_1.gif)
Joined: 01 May 2006 Posts: 131
|
Posted: Sun Feb 25, 2007 2:31 pm Post subject: |
|
|
hey thanks ![Smile :)](images/smiles/icon_smile.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
KShots Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_human_drone.gif)
Joined: 09 Oct 2003 Posts: 595 Location: Florida
|
Posted: Tue Mar 06, 2007 1:20 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
CodAv Apprentice
![Apprentice Apprentice](/images/ranks/rank_rect_2.gif)
Joined: 09 May 2004 Posts: 170 Location: Essen, Germany
|
Posted: Mon Aug 06, 2007 10:13 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
KShots Guru
![Guru Guru](/images/ranks/rank_rect_3.gif)
![](images/avatars/gallery/Futurama/cartoon_futurama_human_drone.gif)
Joined: 09 Oct 2003 Posts: 595 Location: Florida
|
Posted: Tue Aug 07, 2007 12:53 am Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
evilTone n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 07 Dec 2002 Posts: 14
|
Posted: Mon Oct 22, 2007 9:20 pm Post subject: |
|
|
the rndg trick worked a treat for me also
thanks for posting that hint ![Very Happy :D](images/smiles/icon_biggrin.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|