Incomplete headers :/


#1

Hey,

Cant get my app (Beast, http://beast.caboo.se) to work, keep getting incomplete headers. I followed these steps:

  1. in dreamhost control panel, create a sub-domain called y.x.com.
  2. make sure FastCGI is enabled.
  3. point the web root to y.x.com/trunk/public.
  4. svn checkout http://svn.techno-weenie.net/projects/beast/trunk.
  5. rake freeze_edge.
  6. gem install RedCloth (already installed).
  7. copy config/database.example.yml to database.yml and set it correctly.
  8. rake db:schema:load RAILS_ENV=production (complains about ActiveRecord::VERSION, without RAILS_ENV param works fine).
  9. change SALT in config/environment.rb.
  10. update .htaccess so RewriteRule points to dispatch.fcgi.
  11. add the RailsFCGIHandler class in dispatch.fcgi as dreamhost wiki explains.
  12. update shebang line in public/dispatch.cgi, public/dispatch.fcgi and public/dispatch.rb.
  13. set ENV[‘RAILS_ENV’] to ||= ‘production’ in config/environment.rb.
  14. check permissions, specially public and log dirs (u+rwX,go-w).
  15. check if all worked - alas, std 500 error response:

Application error
Rails application failed to start properly

Log files contains this:

logs/production:

Logfile created on Fri Mar 02 09:53:33 -0800 2007 by logger.rb/1.5.2.9

logs/y.x.com/http/error.log:

[Fri Mar 02 10:05:48 2007] [error] [client 213.112.85.87] FastCGI: comm with (dynamic) server “/home/cbermar/c.deepdarkhole.net/trunk/public/dispatch.fcgi” aborted: (first read) idle timeout (60 sec)
[Fri Mar 02 10:05:48 2007] [error] [client 213.112.85.87] FastCGI: incomplete headers (0 bytes) received from server “/home/cbermar/c.deepdarkhole.net/trunk/public/dispatch.fcgi”

Question: Where can i find more logs that might contain explain what the problem is? Any ideas how to fix it? Im getting really bummed here, please help out.

Cheers.


#2

Traced output of the command that failed in step 8:

[silk]$ rake db:schema:load RAILS_ENV=production --trace
/usr/bin/rake:17:Warning: require_gem is obsolete. Use gem instead.
(in /home/.mehalia/cbermar/c.deepdarkhole.net/trunk)
** Invoke db:schema:load (first_time)
** Invoke environment (first_time)
** Execute environment
Install the ruby-openid gem to enable OpenID support
rake aborted!
uninitialized constant ActiveRecord::VERSION
/home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:266:in load_missing_constant' /home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:inconst_missing’
/usr/lib/ruby/gems/1.8/gems/gettext-1.8.0/lib/gettext/active_record.rb:49
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:495:in require' /home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:innew_constants_in’
/home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:495:in require' /usr/lib/ruby/gems/1.8/gems/gettext-1.8.0/lib/gettext/rails.rb:435 /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:ingem_original_require’
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:32:in require' /home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:inrequire’
/home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/…/vendor/rails/activerecord/lib/…/…/activesupport/lib/active_support/dependencies.rb:342:in new_constants_in' /home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/../vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:inrequire’
/home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/…/config/environment.rb:68
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:in gem_original_require' /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:27:inrequire’
/home/.mehalia/cbermar/c.deepdarkhole.net/trunk/config/…/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in call' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:in each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:387:inexecute’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:357:in invoke' /usr/lib/ruby/1.8/thread.rb:135:insynchronize’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:364:ininvoke_prerequisites’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:insend’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:999:in each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:363:ininvoke_prerequisites’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:356:in invoke' /usr/lib/ruby/1.8/thread.rb:135:insynchronize’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:350:in invoke' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:inrun’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:in each' /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake.rb:1906:inrun’
/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/bin/rake:7
/usr/bin/rake:18:in `load’
/usr/bin/rake:18

Any ideas? Seems to be something with GetText?