frannyzooey-ee4meeAH724@public.gmane.org
2005-Feb-05 10:24 UTC
Apache setting, another probelm.
Hi,
I maked httpd.conf as default and rails apache configuration (which in tutorial)
is added /private/etc/httpd/users/myid.conf
(Mac OS X)
So now another problem with dispatch. There is 500 Application Error.
log is
from /usr/local/lib/ruby/1.8/cgi/session.rb:266:in `new''
from /usr/local/lib/ruby/1.8/cgi/session.rb:266:in `initialize''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/cgi_process.rb:71:in
`new''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/cgi_process.rb:71:in
`session''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/base.rb:577:in
`assign_shortcuts''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/base.rb:259:in
`process''
from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/rescue.rb:20:in
`process_with_exception''
from
/usr/local/lib/ruby/gems/1.8/gems/rails-0.9.4.1/lib/dispatcher.rb:42:in
`dispatch''
from /Users/rubyminer/TheBlues/public/dispatch.cgi:10
[Sat Feb 5 19:14:26 2005] [error] [client 127.0.0.1] Premature end of script
headers: /Users/rubyminer/TheBlues/public/dispatch.cgi
So I tried with fcgi (fcgi module is installed)
Add fellow lines to apache configuration.
----
LoadModule fastcgi_module libexec/httpd/mod_fastcgi.so
AddModule mod_fastcgi.c
<IfModule mod_fastcgi.c>
FastCgiIpcDir /tmp/fcgi_ipc/
AddHandler fastcgi-script .fcgi
</IfModule>
----
and in .htaccess RewriteBase /dispatch.cgi to RewriteBase /dispatch.fcgi.
But also 500 error.
error logs
----
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr:
/usr/local/lib/ruby/1.8/pstore.rb:28:in `initialize'': file
/tmp/ruby_sess.1349a859879257dc not readable (PStore::Error)
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/1.8/cgi/session/pstore.rb:67:in `new''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/1.8/cgi/session/pstore.rb:67:in `initialize''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `new''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/1.8/cgi/session.rb:266:in `initialize''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/cgi_process.rb:71:in
`new''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/cgi_process.rb:71:in
`session''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/base.rb:577:in
`assign_shortcuts''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/base.rb:259:in
`process''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/gems/1.8/gems/actionpack-1.3.1/lib/action_controller/rescue.rb:20:in
`process_with_exception''
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: incomplete
headers (0 bytes) received from server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi"
[Sat Feb 5 19:19:45 2005] [error] [client 127.0.0.1] FastCGI: server
"/Users/rubyminer/TheBlues/public/dispatch.fcgi" stderr: from
/usr/local/lib/ruby/gems/1.8/gems/rails-0.9.4.1/lib/dispatcher.rb:42:inr/cgi_process.rb:71:in
`session''
---
(As file /tmp/ruby_sess.1349a859879257dc not readable, I changed permisson of
/tmp then time out error is occured)
I hope this is known case.
Thanks for any advance.