Topic: Arg! Rails, Plesk, Fedora?

I am having the hardest time in the world trying to get a clients production server to run Rails. Not only does he want this one application to run though, he wants any client of his to be able to run a rails app. I'm going crazy trying to get this to work because I can't even get one app to properly run.

I get a Rails Failed to Start error, so I've resorted trying to debug what is going on. I am trying to debug dispatch.fcgi but obviously some crazy ***** is happening. Can anyone help figure this out?

Thanks.


ruby -d public/dispatch.fcgi
Exception `NameError' at ./public/../config/boot.rb:14 - uninitialized constant Rails
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- utf8proc_native
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- utf8proc_native
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- utf8proc_native
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/validations.rb:334: warning: `*' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/validations.rb:363: warning: `*' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:226: warning: instance variable @ignore_new_methods not initialized
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/migration.rb:226: warning: instance variable @ignore_new_methods not initialized
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/attribute_methods.rb:7: warning: `*' interpreted as argument prefix
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/abstract/connection_specification.rb:41: warning: method redefined; discarding old allow_concurrency=
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/connection_adapters/postgresql_adapter.rb:390: warning: `&' interpreted as argument prefix
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- db2/db2cli
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- db2/db2cli
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- db2/db2cli
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- oci8
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- oci8
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- oci8
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- oci8
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- oci8
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- oci8
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/requires.rb:19 - no such file to load -- oci8
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- sybsql
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- sybsql
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- sybsql
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/request.rb:179: warning: method redefined; discarding old relative_url_root
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- Win32API
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- Win32API
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- Win32API
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_ext/raw_post_data_fix.rb:7: warning: method redefined; discarding old initialize_query
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/cgi_ext/session_performance_fix.rb:18: warning: method redefined; discarding old create_new_id
Exception `DRb::DRbServerNotFound' at /usr/lib/ruby/1.8/drb/drb.rb:1650 - DRb::DRbServerNotFound
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- memcache
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- memcache
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- memcache
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session/active_record_store.rb:131: warning: private attribute?
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/session/active_record_store.rb:181: warning: method redefined; discarding old connection
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/base.rb:160: warning: `*' interpreted as argument prefix
(eval):1: warning: method redefined; discarding old headers
(eval):1: warning: method redefined; discarding old response
/usr/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_view/helpers/prototype_helper.rb:847: warning: `*' interpreted as argument prefix
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- redcloth
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- redcloth
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- redcloth
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- redcloth
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- redcloth
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- redcloth
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/requires.rb:19 - no such file to load -- redcloth
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- bluecloth
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- bluecloth
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- bluecloth
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- bluecloth
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- bluecloth
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- bluecloth
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/kernel/requires.rb:19 - no such file to load -- bluecloth
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- html/tokenizer
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- html/tokenizer
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- html/tokenizer
/usr/lib/ruby/gems/1.8/gems/actionmailer-1.3.3/lib/action_mailer/vendor/tmail/facade.rb:486: warning: method redefined; discarding old create_reply
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- tmail/base64.so
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- tmail/base64.so
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- tmail/base64.so
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- tmail/scanner_c.so
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- tmail/scanner_c.so
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- tmail/scanner_c.so
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- xml/parser
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- xml/parser
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- xml/parser
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- xml/parser
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- xml/parser
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- xmlscan/scanner
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- xmlscan/scanner
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- xmlscan/scanner
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- xmlscan/scanner
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- xmlscan/scanner
Set XSD::XMLParser::REXMLParser as XML processor.
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27 - no such file to load -- http-access2
Exception `MissingSourceFile' at /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:34 - no such file to load -- http-access2
Exception `MissingSourceFile' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:498 - no such file to load -- http-access2
Loading http-access2 failed.  Net/http is used.
/usr/lib/ruby/gems/1.8/gems/actionwebservice-1.2.3/lib/action_web_service/protocol/xmlrpc_protocol.rb:6: warning: discarding old message
Exception `Errno::EEXIST' at /usr/lib/ruby/1.8/fileutils.rb:243 - File exists - public/../config/../tmp/attachment_fu
/usr/lib/ruby/gems/1.8/gems/activerecord-1.15.3/lib/active_record/observer.rb:35: warning: instance variable @observers not initialized
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/initializer.rb:547: warning: instance variable @after_initialize_block not initialized
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:93: warning: private attribute?
/usr/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:93: warning: private attribute?
Exception `NoMethodError' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/whiny_nil.rb:35 - You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split
(eval):3: warning: redefine remove_params
(eval):13: warning: method redefined; discarding old initialize
(eval):19: warning: method redefined; discarding old args
(eval):22: warning: method redefined; discarding old env_table
(eval):25: warning: method redefined; discarding old stdinput
(eval):28: warning: method redefined; discarding old stdoutput
Exception `NoMethodError' at /usr/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/whiny_nil.rb:35 - You have a nil object when you didn't expect it!
You might have expected an instance of Array.
The error occurred while evaluating nil.split

Last edited by DFischer (2007-04-25 21:08:44)

http://danielfischer.com - Personal Web-Technology-Blog, Los Angeles.

Re: Arg! Rails, Plesk, Fedora?

Okay, so I installed the gems but it seems like the application still can't find the gems. This is pretty weird now. The one that scares me the most is this one:

Exception `NameError' at ./../config/boot.rb:14 - uninitialized constant Rails

http://danielfischer.com - Personal Web-Technology-Blog, Los Angeles.

Re: Arg! Rails, Plesk, Fedora?

what happens if you try the following from your web site's directory:

rake rails:freeze:edge TAG=1_2_3

Re: Arg! Rails, Plesk, Fedora?

New error, yay.

ruby -d dispatch.fcgi
Exception `NameError' at ./../config/boot.rb:14 - uninitialized constant Rails
Exception `LoadError' at ./../config/boot.rb:16 - no such file to load -- ../config/../vendor/rails/railties/lib/initializer
./../config/boot.rb:16:in `require': no such file to load -- ../config/../vendor/rails/railties/lib/initializer (LoadError)
        from ./../config/boot.rb:16
        from ./../config/environment.rb:11:in `require'
        from ./../config/environment.rb:11
        from dispatch.fcgi:21:in `require'
        from dispatch.fcgi:21

http://danielfischer.com - Personal Web-Technology-Blog, Los Angeles.