Archive for the ‘linux’ tag
Apache2 hangs with ‘Digest: generating secret for digest authentication’
I was running Apache2+SSL on a VM (Virtual Machine).
After enabling SSL and trying to add another SSL site, apache would refuse to restart and the following error would show up in /var/log/apache2.log
Digest: generating secret for digest authentication
After doing some research, it turns out that the VM did not have enough entropy to generate much of anything. Increasing this is easy, but may not be completely secure.
139
I found that rng-tools could help me solve this.
Start the service
After running rngd, the entropy will increase at a gradual rate.
2220
If you want this to survive a reboot, you’ll need to put it in a startup script.
Apache2 – No space left on device
I had problems restarting Apache2… After researching a lot I found that it was due there were myriads of semaphore-arrays left, owned by my www-data user.
The following appears to be some of the errors Apache writes in the log.
-
[emerg] (28)No space left on device: Couldn’t create accept lock
or
-
[crit] (28)No space left on device: mod_rewrite: could not create rewrite_log_lock Configuration Failed
or
-
[error] (28)No space left on device: Cannot create SSLMutex
After stopping Apache I found the semaphores with the following command
Removing this semaphores immediately solved the problem.
HOWTO: Purge files from an already removed package
Simply use the following command: