Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Cherokee: dev

Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start

 

 

Cherokee dev RSS feed   Index | Next | Previous | View Threaded


codesite-noreply at google

Oct 16, 2009, 3:34 PM

Post #1 of 11 (837 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start

Status: Accepted
Owner: ste...@konink.de
Labels: OpSys-BSD Type-Defect

New issue 606 by ste...@konink.de: Cherokee exits for some reason after an
interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

What steps will reproduce the problem?
1. most likely have an interpreter spawned that has as an issue such (thus
fails)
2. do a request to start this interpreter



So what we see on the server side is:

[guest [at] shiv ~]$ sudo /usr/local/sbin/cherokee
Cherokee Web Server 0.99.24 (Oct 16 2009): Listening on port ALL:80, TLS
disabled, IPv6 disabled, using poll, 3520 fds system limit, max. 1753
connections, caching I/O, 5 threads, 350 connections per thread, standard
scheduling policy
PID 35938: launched '/bin/sh -c exec /usr/local/bin/php-cgi -b
localhost:47990' with uid=80, gid=80, env=custom
PID 35939: launched '/bin/sh -c exec /usr/local/bin/php-cgi -b
localhost:47990' with uid=80, gid=80, env=custom
PID 35940: launched '/bin/sh -c exec /usr/local/bin/php-cgi -b
localhost:47990' with uid=80, gid=80, env=custom
Server is exiting..
PID 35940: exited re=0
PID 35939: exited re=0
PID 35938: exited re=0
PID 35936: exited re=0

It looks like some sort of child process fails... and the signal arrives at
the parent?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 16, 2009, 3:57 PM

Post #2 of 11 (801 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Updates:
Labels: -OpSys-BSD OpSys-All Priority-High Component-Logic Usability

Comment #1 on issue 606 by ste...@konink.de: Cherokee exits for some reason
after an interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

Sockets vs Unixsockets doesn't matter. I have seen the latter fail too.

What I did see was that it is a signal 15 issue. SIGTERM that is. So why is
a SIGTERM
arriving at the parent process, opposed to the child?

The user that reported this said it happened to Linux as well.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 16, 2009, 4:29 PM

Post #3 of 11 (800 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Comment #2 on issue 606 by ste...@konink.de: Cherokee exits for some reason
after an interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

As extra observation, maybe something goes haywire because of a switch user
thing.

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 16, 2009, 6:08 PM

Post #4 of 11 (799 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Comment #3 on issue 606 by ste...@konink.de: Cherokee exits for some reason
after an interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

I think the key observation is in cherokee_spawner_spawn.

/* Wait for the PID
*/
k = 0;
while ((*pid_shm <= 0) && (k < 3)) {
k++;
sleep(1);
}

Probably returns eagain, that invokes the source interpreter free, that
actually does
a kill.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 17, 2009, 2:54 AM

Post #5 of 11 (794 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Updates:
Status: New

Comment #4 on issue 606 by alobbs: Cherokee exits for some reason after an
interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

As far as I can see, everything works fine:

- Cherokee spawns a new process, and it prints a notice: "PID xyz:
launched 'bar foo'" to make you know.
- The process lives for an undefined time (a millisecond or a million
years, it does not matter).
- Then, when the interpreter process exits (successfully, error or crash),
cherokee detects it, and prints a new notice "PID xyz: exited re=0".

The server doesn't crash, nor its PID change.
Stefan, Am I missing something?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 17, 2009, 3:29 AM

Post #6 of 11 (792 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Comment #5 on issue 606 by alobbs: Cherokee exits for some reason after an
interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

Oops! Oh, wait.. I just saw the "Server is exiting..".

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 17, 2009, 6:15 AM

Post #7 of 11 (790 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Updates:
Status: Started
Owner: alobbs

Comment #6 on issue 606 by alobbs: Cherokee exits for some reason after an
interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

Stefan, could you please try with the latest trunk?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 21, 2009, 4:17 AM

Post #8 of 11 (779 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Comment #7 on issue 606 by tahers: Cherokee exits for some reason after an
interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

I experienced a similar issue when I was writing the Mono wizard a couple
of days back.


--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Oct 21, 2009, 6:36 AM

Post #9 of 11 (775 views)
Permalink
Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Comment #8 on issue 606 by alobbs: Cherokee exits for some reason after an
interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

A couple of days ago I fixed an issue in the spawning mechanism; it could
be related, so the problem *might* be
solved by now. (I'm not 100% sure though)

Could you guys please comment in this bug if you hit the same problem
again? :)

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


codesite-noreply at google

Dec 10, 2009, 7:30 AM

Post #10 of 11 (662 views)
Permalink
Re: Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Comment #9 on issue 606 by tahers: Cherokee exits for some reason after an
interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

I haven't been able to reproduce this lately. Anyone?

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings
_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev


cherokee at googlecode

May 3, 2010, 6:18 AM

Post #11 of 11 (436 views)
Permalink
Re: Issue 606 in cherokee: Cherokee exits for some reason after an interpreter fails to start [In reply to]

Updates:
Status: Fixed

Comment #10 on issue 606 by ste...@konink.de: Cherokee exits for some
reason after an interpreter fails to start
http://code.google.com/p/cherokee/issues/detail?id=606

Issue seems to be solved cannot reproduce anymore.

_______________________________________________
Cherokee-dev mailing list
Cherokee-dev [at] lists
http://lists.octality.com/listinfo/cherokee-dev

Cherokee dev RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.