Hi,
I have quite a problem right now. After finish of development I
installed rails with fcgi and apache on my production env. Everything
seems to be configured ok, but once I while I get the famous error
message:
" Premature end of script headers: dispatch.fcgi"
I cant see any generel configuration problem, as sometimes everything is
running fine.
Maybe it is a problem related to timing:
AddHandler fcgid-script .fcgi SocketPath /var/lib/apache2/fcgid/sock DefaultInitEnv RAILS_ENV production IPCCommTimeout 50 IPCConnectTimeout 50 MaxProcessCount 40 ProcessLifeTime 86400 IdleTimeout 80 DefaultMaxClassProcessCount 8Dispatch.fcgi is running fine if I start direct from command line with
the following message (ignore the warning - I have to clean this up):
…/config/…/vendor/date.rb:3: warning: already initialized constant
MONTHNAMES
…/config/…/app/helpers/account_helper.rb:56: warning: don’t put space
before argument parentheses
…/config/…/app/helpers/account_helper.rb:57: warning: don’t put space
before argument parentheses
…/config/…/app/controllers/application.rb:27: warning: already
initialized constant EventRepType
Status: 500 Internal Server Error
Content-Type: text/html
Application error
Change this error message for exceptions thrown outside of an action (like in Dispatcher setups or broken Ruby code) in public/500.html
Any help would be very much appreciated !
Regards
Christian