Hey guys,
Hopefully you can help me out a bit on this, I might just have a problem with my config.
The situation is this:
Looking at the LSWS logs, I see this error happening upon the requests:
As you can see I get the "possible run away process." message several times before the 503 is served for max retry limit.
We are using the dispatch.lsapi as this is our "staging" environment and no production (though it is supposed to duplicate production). Perhaps that is old practice to use that and it is no longer needed?
Any suggestion on how I can fix this problem? Thanks.
Hopefully you can help me out a bit on this, I might just have a problem with my config.
The situation is this:
- Upgraded app to Rails 2.3.2.1 from 2.1.1
- Upgraded LSWS to 4.0.3 from 3.3.23 (whatever the last release was for the version 3 branch)
- We have a staging server where the app worked fine in 2.1.1
- The app in 2.3.2.1 works fine on our dev boxes (running mongrel)
- When we deploy to our staging server, it startups up an lsapi process for a few seconds but then it goes away and we get a 503 Service Unavailable error
Looking at the LSWS logs, I see this error happening upon the requests:
Code:
2009-05-14 14:16:59.518 [NOTICE] Loading LiteSpeed/4.0.3 Standard ...
2009-05-14 14:16:59.721 [NOTICE] [ADMIN] server socket: uds://opt/lsws/admin/tmp/admin.sock.7248
2009-05-14 14:16:59.722 [NOTICE] Loading configuration from /opt/lsws/conf/httpd_config.xml ...
2009-05-14 14:16:59.723 [NOTICE] Recovering server socket: [*:80]
2009-05-14 14:16:59.723 [NOTICE] Recovering server socket: [*:443]
2009-05-14 14:16:59.723 [NOTICE] Recovering server socket: [*:81]
2009-05-14 14:16:59.723 [INFO] old priority: -15, new priority: -15
2009-05-14 14:16:59.723 [INFO] [config:server:basic] For better obscurity, server version number is hidden in the response header.
2009-05-14 14:16:59.730 [NOTICE] The maximum number of file descriptor limit is set to 1024.
2009-05-14 14:16:59.733 [NOTICE] lshttpd (20576) is ready
2009-05-14 14:16:59.735 [NOTICE] [child: 20578] Successfully change current user to nobody
2009-05-14 14:16:59.735 [NOTICE] [Child: 20578] Core dump is enabled.
2009-05-14 14:16:59.736 [INFO] [staging] add child process pid: 20579
2009-05-14 14:16:59.736 [INFO] [staging] pid list size: 1
2009-05-14 14:16:59.736 [NOTICE] [Child: 20578] Setup swapping space...
2009-05-14 14:16:59.736 [NOTICE] [Child: 20578] LiteSpeed/4.0.3 Standard starts successfully!
2009-05-14 14:16:59.736 [NOTICE] [AutoRestarter] new child process with pid=20578 is forked!
2009-05-14 14:17:00.111 [NOTICE] [AutoUpdate] Checking for new releases...
2009-05-14 14:17:00.276 [INFO] [AutoUpdate] No new update.
2009-05-14 14:17:20.593 [INFO] Remove pid: 20579
2009-05-14 14:17:20.593 [INFO] Pid: 20579 associated with [staging]
2009-05-14 14:17:20.593 [INFO] [staging] pid list size: 0, pid stop list size: 0
2009-05-14 14:17:28.577 [INFO] [75.25.130.134:56746-0#dev.sugarstats.com] File not found [/home/sugardev/www/releases/20090514135308/public/index.html]
2009-05-14 14:17:28.578 [INFO] [staging] add child process pid: 20605
2009-05-14 14:17:28.578 [INFO] [staging] pid list size: 1
2009-05-14 14:17:33.070 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] No request delivery notification has been received from LSAPI process:-2, possible run away process.
2009-05-14 14:17:33.070 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] Retry with new process group.
2009-05-14 14:17:38.070 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] No request delivery notification has been received from LSAPI process:-2, possible run away process.
2009-05-14 14:17:38.070 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] Retry with new process group.
2009-05-14 14:17:43.069 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] No request delivery notification has been received from LSAPI process:-2, possible run away process.
2009-05-14 14:17:43.069 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] Retry with new process group.
2009-05-14 14:17:48.066 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] No request delivery notification has been received from LSAPI process:-2, possible run away process.
2009-05-14 14:17:48.066 [INFO] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] connection to [uds://tmp/lshttpd/staging.sock] on request #0, confirmed: 0, Connection timed out!
2009-05-14 14:17:48.066 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] Suspious request timeout, associtated process: -1, running: 0.
2009-05-14 14:17:48.066 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] Max retries has been reached, 503!
2009-05-14 14:17:48.066 [INFO] Remove pid: 20605
2009-05-14 14:17:48.066 [INFO] Pid: 20605 associated with [staging]
2009-05-14 14:17:48.066 [INFO] [staging] pid list size: 0, pid stop list size: 0
2009-05-14 14:17:48.067 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] oops! 503 Service Unavailable
2009-05-14 14:17:48.067 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] Content len: 0, Request line:
(null)
2009-05-14 14:17:48.067 [NOTICE] [75.25.130.134:56746-0#dev.sugarstats.com:lsapi] Redirect: #2, URL: /dispatch.lsapi
We are using the dispatch.lsapi as this is our "staging" environment and no production (though it is supposed to duplicate production). Perhaps that is old practice to use that and it is no longer needed?
Any suggestion on how I can fix this problem? Thanks.