Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Apache2 stop work on turnover of syslog in FreeBSD 6.3 #137

Closed
FooBarWidget opened this issue May 29, 2014 · 6 comments
Closed

Apache2 stop work on turnover of syslog in FreeBSD 6.3 #137

FooBarWidget opened this issue May 29, 2014 · 6 comments

Comments

@FooBarWidget
Copy link
Member

From kivanio on April 24, 2008 00:34:24

Stack trace is shown here: http://groups.google.com/group/phusion-passenger/t/59fb5fbe1537d23d?hl=en What steps will reproduce the problem? 1. All night at 00:00 when syslog rotate logs
2. Sometimes when i restart apache2 manually What is the expected output? What do you see instead? The apache just freeze and don't show errors in log. What version of the product are you using? On what operating system? Phusion version of git repository in: Sun Apr 20 12:44:26 2008 +0200

commit 81a4850
Author: Hongli Lai (Phusion) hongli@phusion.nl
Date: Sun Apr 20 12:44:26 2008 +0200

SO:
FreeBSD server.org.br 6.3-RELEASE-p1 FreeBSD 6.3-RELEASE-p1 #0: Wed Feb 13 02:56:56 UTC
2008

Server version: Apache/2.2.8 (FreeBSD)
Server built: Jan 30 2008 07:50:10
Server's Module Magic Number: 20051115:11
Server loaded: APR 1.2.12, APR-Util 1.2.12
Compiled using: APR 1.2.12, APR-Util 1.2.12
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local"
-D SUEXEC_BIN="/usr/local/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/accept.lock"
-D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
-D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types"
-D SERVER_CONFIG_FILE="etc/apache22/httpd.conf" Please provide any additional information below. in group: http://groups.google.com/group/phusion-passenger/t/59fb5fbe1537d23d?hl=en

Original issue: http://code.google.com/p/phusion-passenger/issues/detail?id=36

@FooBarWidget
Copy link
Member Author

From honglilai on April 24, 2008 01:33:24

Probably related to issue #37 .

@FooBarWidget
Copy link
Member Author

From honglilai on April 24, 2008 02:45:20

Could you check whether the issue has been solved in the development version? Thanks.

@FooBarWidget
Copy link
Member Author

From kivanio on April 24, 2008 06:30:02

I was using version of repository.

i update version to last now

i compile and set new path in apache conf.

i try to restart apache:

server user / # apachectl graceful

the PID 93056 is freeze, i guess this is passenger process

server user / # sockstat -4 | grep http
www httpd 93056 3 tcp4 :80 *:
www httpd 93056 4 tcp46 :443 *:
www httpd 93056 5 tcp4 : :
root httpd 90976 3 tcp4 :80 *:
root httpd 90976 4 tcp46 :443 *:
root httpd 90976 5 tcp4 : :

try again:

server user / # apachectl graceful
server user / # sockstat -4 | grep http
www httpd 93056 3 tcp4 :80 *:
www httpd 93056 4 tcp46 :443 *:
www httpd 93056 5 tcp4 : :
root httpd 90976 3 tcp4 :80 *:
root httpd 90976 4 tcp46 :443 *:
root httpd 90976 5 tcp4 : :

i try with script

server user / # /apache22 restart
Performing sanity check on apache22 configuration:
Syntax OK
Stopping apache22.
Waiting for PIDS: 90976, 90976, 90976, 90976, 90976, 90976, 90976, 90976, 90976, 90976, 90976,
90976,
90976, 90976, 90976, 90976^C

see, the apache2 don't stop because PID 93056 is freeze and don't stop, the apache try to kill process until
I
give up and stop it.

when i kill process manually

server user / # kill -9 93056

the apache restart other process automatically

server user / # sockstat -4 | grep http
www httpd 93226 3 tcp4 :80 *:
www httpd 93226 4 tcp46 :443 *:
www httpd 93226 5 tcp4 : :
www httpd 93177 3 tcp4 :80 *:
www httpd 93177 4 tcp46 :443 *:
www httpd 93177 5 tcp4 : :
www httpd 93175 3 tcp4 :80 *:
www httpd 93175 4 tcp46 :443 *:
www httpd 93175 5 tcp4 : :
www httpd 93175 28 tcp4 :80 *:50271
www httpd 93174 3 tcp4 *:80 *:

www httpd 93174 4 tcp46 :443 *:
www httpd 93174 5 tcp4 : :
www httpd 93173 3 tcp4 :80 *:
www httpd 93173 4 tcp46 :443 *:
www httpd 93173 5 tcp4 : :
www httpd 93173 27 tcp4 :80 *:55683
www httpd 93172 3 tcp4 *:80 *:

www httpd 93172 4 tcp46 :443 *:
www httpd 93172 5 tcp4 : :
root httpd 90976 3 tcp4 :80 *:
root httpd 90976 4 tcp46 :443 *:
root httpd 90976 5 tcp4 : :

and all work fine.

The version of repository don't fix the problem.

@FooBarWidget
Copy link
Member Author

From kivanio on April 26, 2008 22:02:41

Hi,

i did update today the passenger and install again.
The apache stop/freeze work again and now syslog crash too.

@FooBarWidget
Copy link
Member Author

From kivanio on April 30, 2008 08:47:23

hi,

congratulations for the great work.

the last two nights my apache don't stop work, i think this problem has been solved.

thanks.

@FooBarWidget
Copy link
Member Author

From honglilai on April 30, 2008 13:38:29

Status: Fixed
Labels: Milestone-1.0.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant