I've upgraded from rails 1.8.6 to rails 2.0.2.
My app is ok, it loads fine and works fine with mongrel. But I can't get it to work with litespeed anymore for some reason - nothing in litespeed has changed, and the app hasn't changed.
error log outputs below.
-----------------------------------
My app is ok, it loads fine and works fine with mongrel. But I can't get it to work with litespeed anymore for some reason - nothing in litespeed has changed, and the app hasn't changed.
error log outputs below.
-----------------------------------
Code:
foxxx@engine:/opt/lsws/logs$ cat stderr.log
./config/environment.rb:13: uninitialized constant Rails (NameError)
from /opt/lsws/fcgi-bin/RailsRunner.rb:5:in `require'
from /opt/lsws/fcgi-bin/RailsRunner.rb:5
./config/environment.rb:13: uninitialized constant Rails (NameError)
from /opt/lsws/fcgi-bin/RailsRunner.rb:5:in `require'
from /opt/lsws/fcgi-bin/RailsRunner.rb:5
./config/environment.rb:13: uninitialized constant Rails (NameError)
from /opt/lsws/fcgi-bin/RailsRunner.rb:5:in `require'
from /opt/lsws/fcgi-bin/RailsRunner.rb:5
foxxx@engine:/opt/lsws/logs$ cat error.log
2008-06-02 14:57:58.128 [DEBUG] Failed to execute 'mpstat' command: No such file or directory
2008-06-02 14:58:03.127 [DEBUG] Failed to execute 'mpstat' command: No such file or directory
2008-06-02 14:58:04.145 [DEBUG] [*:9000] New connection from 192.168.1.8:54885.
2008-06-02 14:58:04.145 [DEBUG] [*:9000] 1 connections accepted!
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0] HttpIOLink::handleEvents() events=1!
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0] HttpConnection::onReadEx(), state: 0!
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0] readToHeaderBuf().
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0] Read from client: 521
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0] read 521 bytes to header buffer
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0] processHeader() return 0, header state: 3.
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0] readToHeaderBuf() return 0.
2008-06-02 14:58:04.145 [NOTICE] [192.168.1.8:54885-0#bpml] Content len: 0, Request line:
GET / HTTP/1.1
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] Find context with URI: [/], location: [/var/sites/bpml/public/]
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] File not found [/var/sites/bpml/public/index.html]
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] processContextPath() return 25
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] processNewReq() return 25.
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] HttpConnection::sendHttpError(),code=404 Not Found
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] redirect to:
URI=[/dispatch.lsapi],
QueryString=[]
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] Find context with URI: [/dispatch.lsapi], location: []
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] processContextPath() return 0
2008-06-02 14:58:04.145 [DEBUG] [192.168.1.8:54885-0#bpml] run lsapi processor.
2008-06-02 14:58:04.146 [INFO] [Rails:bpml:/] add child process pid: 27690
2008-06-02 14:58:04.146 [INFO] [Rails:bpml:/] pid list size: 1
2008-06-02 14:58:04.146 [DEBUG] [uds://tmp/lshttpd/bpml:_.sock] request [192.168.1.8:54885-0#bpml:lsapi] is assigned with connection!
2008-06-02 14:58:04.146 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] [ExtConn] reconnect()
2008-06-02 14:58:04.146 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] [ExtConn] connecting to [uds://tmp/lshttpd/bpml:_.sock]...
2008-06-02 14:58:04.146 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] ExtConn::onWrite()
2008-06-02 14:58:04.146 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] request header is done
2008-06-02 14:58:04.146 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] ExtConn::continueRead()
2008-06-02 14:58:04.146 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] Request body done!
2008-06-02 14:58:04.146 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] ExtConn::suspendWrite()
2008-06-02 14:58:04.152 [INFO] Remove pid: 27690
2008-06-02 14:58:04.152 [INFO] Pid: 27690 associated with [Rails:bpml:/]
2008-06-02 14:58:04.152 [INFO] [Rails:bpml:/] pid list size: 0, pid stop list size: 0
2008-06-02 14:58:04.152 [NOTICE] [Rails:bpml:/] stop worker processes
2008-06-02 14:58:04.152 [INFO] [Rails:bpml:/] 1 request being processed, kill external app later.
2008-06-02 14:58:04.152 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] ExtConn::onRead()
2008-06-02 14:58:04.152 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] LsapiConn::doRead()
2008-06-02 14:58:04.152 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] process packet header -1 bytes
2008-06-02 14:58:04.152 [INFO] [192.168.1.8:54885-0#bpml:lsapi] connection to [uds://tmp/lshttpd/bpml:_.sock] on request #0, error: Connection reset by peer!
2008-06-02 14:58:04.152 [DEBUG] [192.168.1.8:54885-0#bpml:lsapi] [ExtConn] close()
2008-06-02 14:58:04.152 [DEBUG] [uds://tmp/lshttpd/bpml:_.sock] No Request has been processed successfully through this connection, the maximum connections allowed will be reduced!