apache - Why is Apache2 failing? -
i have issues server constantly. seems fail every few hours , cannot tell why.
this morning had 503 on of websites, tried restart apache but
# service apache2 restart [....] restarting web server: apache2(98)address in use: make_sock: not bind address 127.0.0.1:8080 no listening sockets available, shutting down unable open logs action 'start' failed. apache error log may have more information. failed!
i found out of processes still running. killing them helped restart apache.
# grep -ri listen /etc/apache2 /etc/apache2/apache2.conf:# supposed determine listening ports incoming connections, , /etc/apache2/apache2.conf:# include list of ports listen on , use name based vhosts /etc/apache2/ports.conf:listen 127.0.0.1:8080 /etc/apache2/ports.conf:#listen 127.0.0.1:443 /etc/apache2/ports.conf:# listen 443 /etc/apache2/ports.conf:# listen 443 # killall -9 apache2 # service apache2 restart [ ok ] restarting web server: apache2.
i still have no idea how prevent failing, here logs totally don't understand. please :)
from time when failed:
[sun may 31 06:26:00 2015] [notice] fastcgi: process manager initialized (pid 9466) [sun may 31 06:26:00 2015] [error] python_init: python version mismatch, expected '2.7.2+', found '2.7.3'. [sun may 31 06:26:00 2015] [error] python_init: python executable found '/usr/bin/python'. [sun may 31 06:26:00 2015] [error] python_init: python path being used '/usr/lib/python2.7/:/usr/lib/python2.7/plat-linux2:/usr/lib/python2.7/lib-tk:/usr/lib/python2.7/lib-old:/usr/lib/python2.7/lib-dynload'. [sun may 31 06:26:00 2015] [notice] mod_python: creating 8 session mutexes based on 1000 max processes , 0 max threads. [sun may 31 06:26:00 2015] [notice] mod_python: using mutex_directory /tmp [sun may 31 06:26:01 2015] [notice] apache/2.2.22 (debian) mod_fastcgi/mod_fastcgi-snap-0910052141 phusion_passenger/5.0.8 php/5.5.25-1~dotdeb+7.1 mod_python/3.3.1 python/2.7.3 mod_ssl/2.2.22 openssl/1.0.1e mod_wsgi/3.3 configured -- resuming normal operations [sun may 31 06:26:01 2015] [warn] long lost child came home! (pid 17083) [sun may 31 06:26:01 2015] [warn] long lost child came home! (pid 17328) [sun may 31 06:26:01 2015] [warn] long lost child came home! (pid 17329) [sun may 31 06:26:01 2015] [warn] long lost child came home! (pid 17330)
and logged constantly:
[sun may 31 13:36:03 2015] [warn] couldn't set uid/gid/priority, closing connection. [sun may 31 13:36:03 2015] [warn] (itkmpm: pid=30911 uid=1001, gid=1001) itk_post_perdir_config(): setgid(1005): operation not permitted [sun may 31 13:36:03 2015] [warn] couldn't set uid/gid/priority, closing connection. [sun may 31 13:36:03 2015] [warn] (itkmpm: pid=30897 uid=1001, gid=1001) itk_post_perdir_config(): setgid(1005): operation not permitted [sun may 31 13:36:03 2015] [warn] couldn't set uid/gid/priority, closing connection. [sun may 31 13:36:04 2015] [warn] (itkmpm: pid=30930 uid=1001, gid=1001) itk_post_perdir_config(): setgid(33): operation not permitted [sun may 31 13:36:04 2015] [warn] couldn't set uid/gid/priority, closing connection. [sun may 31 13:36:06 2015] [warn] (itkmpm: pid=30938 uid=1001, gid=1001) itk_post_perdir_config(): setgid(33): operation not permitted
Comments
Post a Comment