apache2 restart

Elan Ruusamäe glen at delfi.ee
Tue Oct 7 14:00:51 CEST 2014


On 07.10.2014 12:42, Marcin Krol wrote:
> Just restarted apache few hundred times in loop on my test server 
> which basically does nothing now and can't reproduce this. Init script 
> is same in PLD and TLD. I'm using prefork MPM on this machine.

i have the opposite: 100% failure rate. and also using default config 
(mpm prefork)

perhaps related to apache modules present?

[root at zave ~]# lscpu
Architecture:          i686
CPU op-mode(s):        32-bit
Byte Order:            Little Endian
CPU(s):                4
On-line CPU(s) list:   0-3
Thread(s) per core:    2
Core(s) per socket:    1
Socket(s):             2
Vendor ID:             GenuineIntel
CPU family:            15
Model:                 2
Model name:            Intel(R) Xeon(TM) CPU 2.80GHz
Stepping:              9
CPU MHz:               2791.131
BogoMIPS:              5583.15
Hypervisor vendor:     Linux-VServer
Virtualization type:   container

[root at zave ~]# uname -r
3.4.62.longterm-1

[root at zave ~]# rpm -e apache-base --test
error: Failed dependencies:
         apache(modules-api) = 20120211 is needed by (installed) 
apache-mod_php-5.3.28-4.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_alias-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_authz_core-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_mime-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_authn_core-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_log_config-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_include-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_auth_basic-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_dir-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_env-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_mime_magic-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_setenvif-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_speling-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_version-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_ldap-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_socache_shmcb-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_filter-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_headers-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_rewrite-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_autoindex-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_authz_host-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_authz_groupfile-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_authz_user-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_negotiation-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_authn_file-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_logio-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_authnz_ldap-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_ssl-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_deflate-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_userdir-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_status-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-errordocs-2.4.10-2.i686
         apache-base = 2.4.10-2 is needed by (installed) 
apache-mod_auth-2.4.10-2.i686

[root at zave ~]# service httpd stop; for i in $(seq 1 30); do i="--- $i 
---"; echo "> $i"; service httpd restart; echo "< $i"; done
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
 > --- 1 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 1 ---
 > --- 2 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 2 ---
 > --- 3 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 3 ---
 > --- 4 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 4 ---
 > --- 5 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 5 ---
 > --- 6 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 6 ---
 > --- 7 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 7 ---
 > --- 8 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 8 ---
 > --- 9 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 9 ---
 > --- 10 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 10 ---
 > --- 11 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 11 ---
 > --- 12 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 12 ---
 > --- 13 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 13 ---
 > --- 14 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 14 ---
 > --- 15 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 15 ---
 > --- 16 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 16 ---
 > --- 17 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 17 ---
 > --- 18 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Stopping Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
FAIL ]
(98)Address already in use: AH00072: make_sock: could not bind to 
address [::]:443
(98)Address already in use: AH00072: make_sock: could not bind to 
address 0.0.0.0:443
no listening sockets available, shutting down
AH00015: Unable to open logs
< --- 18 ---
 > --- 19 ---
Checking Apache 2.4 Web Server 
configuration...........................................................................................................................[ 
DONE ]
Apache 2.4 Web Server service is not running.
Starting Apache 2.4 Web Server 
service.................................................................................................................................[ 
DONE ]
< --- 19 ---


-- 
glen



More information about the pld-devel-en mailing list