jfreak53

Well-Known Member
Feb 29, 2008
61
0
56
I just moved an account from a two version old WHM install on a VPS to a new dedicated with the most recent cpanel/whm install. I used the copy account option. It copied fine, all PHP thing's are working. Problem being NO rail apps are working at all. All old rail apps on old system were working perfectly, now they just stopped working and I'm getting a 503 error:
http://www.gaugeus.com/ramblings

Any clues?
 

jfreak53

Well-Known Member
Feb 29, 2008
61
0
56
Mongrel, well that's what was on the old system. To be honest I know NOTHING of Ruby at all. The server only has 4 accounts on it, one of which is a Ruby site. The owner of that site knows Ruby, the whole server is his, I just sold it and set it up. The original server was setup with Ruby 2 years ago, we just switched today. To install ruby I ran:

/scripts/installruby

WHM did everything else, so really I don't know. What log could I check to see what the ruby error is exactly?
 

pwhjenny

Well-Known Member
Aug 31, 2012
138
0
91
cPanel Access Level
Root Administrator
Go to your rails path . Then look for log folder. There you will find mongrel.log file in which all mongrel logs are stored. The rail application uses bunch of symlinks so make sure you execute ls -l to know actial path.. Log folder is generally located in app directory.
 

jfreak53

Well-Known Member
Feb 29, 2008
61
0
56
This is what I get when I try to startup his app with Mongrel:

tail -f log/mongrel.log--

** Daemonized, any open files are closed. Look at log/mongrel.pid and log/mongrel.log for info.
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
/usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require': no such file to load -- initializer (LoadError)
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/gaugeus/rails_apps/ramblings/config/boot.rb:54:in `load_initializer'
from /home/gaugeus/rails_apps/ramblings/config/boot.rb:38:in `run'
from /home/gaugeus/rails_apps/ramblings/config/boot.rb:11:in `boot!'
from /home/gaugeus/rails_apps/ramblings/config/boot.rb:109
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /home/gaugeus/rails_apps/ramblings/config/environment.rb:15
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `gem_original_require'
from /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:29:in `require'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/rails.rb:147:in `rails'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:113:in `cloaker_'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `call'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:149:in `listener'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:99:in `cloaker_'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `call'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/configurator.rb:50:in `initialize'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `new'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:84:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../lib/mongrel/command.rb:212:in `run'
from /usr/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/mongrel_rails:281
from /usr/bin/mongrel_rails:19:in `load'
from /usr/bin/mongrel_rails:19
It was complaining I was running an older version of Rails and needed to install 2.2.2 using: gem install -v=2.2.2 rails

But I haven't done that yet, I just went into environment.rb and commented out the rails version line and now it gets that far at least. Don't know if I should install the older version or what?! :S I'm really not a ruby guy at all

I should mention the app that won't work is a Mephisto blog.

- - - Updated - - -

I should state that to start his App I run:
mongrel_rails start -d

Then go to his main domain, which redirects me to ramblings subdir automatically when I then get the 503 error.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,258
463
Hello :)

Please open a support ticket so we can take a closer look:

Submit A Ticket

You can post the ticket number here so we can track the issue for you.

Thank you.