View Single Post
  #5  
Old 05-02-2006, 05:45 PM
Xorlev Xorlev is offline
Senior Member
 
Join Date: Nov 2005
Posts: 58
Okay, it's halfway working now (no more errors in log), but now it returns a 500 error.

Settings:

Code:
Name	RubyRunner
Address	uds://tmp/lshttpd/rubyrunner.sock
Max Connections	10
Environment	N/A
Initial Request Timeout (secs)	60
Retry Timeout (secs)	0
Persistent Connection	Yes
Connection Keepalive Timeout	N/A
Response Bufferring	No
Auto Start	Yes
Command	$SERVER_ROOT/fcgi-bin/lsruby_runner.rb
Back Log	10
Instances	10
Log:

Code:
2006-05-02 20:40:05.480	DEBUG	[64.191.7.230:80] New connection from 64.191.7.230:37065.
2006-05-02 20:40:05.480	DEBUG	[64.191.7.230:80] 1 connections accepted!
2006-05-02 20:40:05.481	DEBUG	[64.191.7.230:37065-0] HttpIOLink::handleEvents() events=1!
2006-05-02 20:40:05.481	DEBUG	[64.191.7.230:37065-0] HttpConnection::onReadEx(), state: 0!
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0] readToHeaderBuf().
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0] Read from client: 313
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0] read 313 bytes to header buffer
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0] processHeader() return 0, header state: 3.
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0] readToHeaderBuf() return 0.
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0#RubyNanoshock] New request:
Method=[GET], URI=[/testcgi.rb],
QueryString=[]
Content Length=0
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0#RubyNanoshock] Find context with URI: [/], location: [/home/nano/public_html/ruby/]
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0#RubyNanoshock] Find handler [RubyRunner] for [.rb]
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0#RubyNanoshock] processContextPath() return 0
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0#RubyNanoshock] run lsapi processor.
2006-05-02 20:40:05.482	DEBUG	[uds://tmp/lshttpd/rubyrunner.sock] create new connection succeed!
2006-05-02 20:40:05.482	DEBUG	[uds://tmp/lshttpd/rubyrunner.sock] request [64.191.7.230:37065-0#RubyNanoshock:lsapi] is assigned with connection!
2006-05-02 20:40:05.482	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] [ExtConn] reconnect()
2006-05-02 20:40:05.483	DEBUG	[RubyRunner] add child process pid: 404
2006-05-02 20:40:05.484	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] ExtConn::onWrite()
2006-05-02 20:40:05.484	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] request header is done
2006-05-02 20:40:05.484	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] ExtConn::continueRead()
2006-05-02 20:40:05.484	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] Request body done!
2006-05-02 20:40:05.484	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] ExtConn::suspendWrite()
2006-05-02 20:40:05.484	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] processNewReq() return 0.
2006-05-02 20:40:05.498	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] ExtConn::onRead()
2006-05-02 20:40:05.498	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] LsapiConn::doRead()
2006-05-02 20:40:05.498	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] process packet header 8 bytes
2006-05-02 20:40:05.498	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] process packet header 0 bytes
2006-05-02 20:40:05.538	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] ExtConn::onRead()
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] LsapiConn::doRead()
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] process packet header 8 bytes
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] process response header 8 bytes
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] process packet header 8 bytes
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] [EXT] EndResponse( endCode=0, protocolStatus=0 )
2006-05-02 20:40:05.539	NOTICE	[64.191.7.230:37065-0#RubyNanoshock:lsapi] Premature end of response header.
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] HttpIOLink::continueWrite()...
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] write resumed!
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] HttpIOLink::handleEvents() events=4!
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] HttpIOLink::suspendWrite()...
2006-05-02 20:40:05.539	DEBUG	[64.191.7.230:37065-0#RubyNanoshock:lsapi] HttpConnection::sendHttpError(),code=500 Internal Server Error
Reply With Quote