• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Rails problem

A

arachn1d

Guest
I am having the hardest time in the world trying to get a
production server to run Rails. 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 -- 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/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

I've tried installing all the 'missing' gems but that doesn't work. Because they're obviously installed yet it still cannot find them. I tried freezing rails to 1.2.3 but that just gave me this error after it 'froze'.

Code:
-sh-3.1$ 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

So if anyone has an idea, I'd appreciate it.

Thanks!
 
Back
Top