Welcome Guest | Login

"Something went wrong" after following Capistrano 2.0 tutorial

Okay, I followed the entire Capistrano 2.0 tutorial, and got the site uploaded.  I corrected the .htaccess file to comment out the line at the top, and also changed the dispatch.cgi to dispatch.fcgi where it needed to be.  Now when I try going to my app at my ip address, I get the "Something went wrong" message.

My error logs show

[Mon Oct 15 10:25:56 2007] [notice] mod_fcgid: server /home/marketp/public_html/dispatch.fcgi(15039) started

but I'm a bit new to RoR (especially deployment), so I'm unsure what is going wrong.  Can you provide any assistance?

Thank you,
-Justus Boatright
MarketPointe Realty Advisors

2007-10-15 10:57 AM

MarketPointe Realty Advisors
Hi, Please check you production logs to see it there is any errors coming up. That should help you to troubleshoot the issue further. Also make sure that the permissions of your files and folders do not exceed 755. Thanks.

2007-10-15 11:20 AM

HostingRails Support
I think I'm getting a bit closer now... I checked the production.log and realized that I forgot to run db:migrate.  Now that's done, but I'm getting this error message in the log:
Is this perhaps a version conflict with my development machine, or something else?

LoadError (Expected ../config/../app/controllers/records_controller.rb to define RecordsController):
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:249:in `loa$
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:452:in `con$
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/dependencies.rb:464:in `con$
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/inflector.rb:250:in `consta$
   /usr/local/lib/ruby/gems/1.8/gems/activesupport-1.4.2/lib/active_support/core_ext/string/inflections$
   /usr/local/lib/ruby/gems/1.8/gems/actionpack-1.13.3/lib/action_controller/routing.rb:1284:in `recogn$
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/dispatcher.rb:40:in `dispatch'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:168:in `process_request'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:143:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:109:in `with_signal_handler'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:142:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:612:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each'
   /usr/local/lib/ruby/gems/1.8/gems/fcgi-0.8.7/lib/fcgi.rb:609:in `each_cgi'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:141:in `process_each_request!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:55:in `process!'
   /usr/local/lib/ruby/gems/1.8/gems/rails-1.2.3/lib/fcgi_handler.rb:25:in `process!'
   dispatch.fcgi:24
Thank you again for your help

Justus Boatright
MarketPointe Realty Advisors

2007-10-15 11:39 AM

MarketPointe Realty Advisors
Justus - I could see that your site is working fine while accessing with your dedicated IP. Could you please mention what exact URL are you having trouble with so that we can recreate the issue mentioned in the thread?

2007-10-15 02:27 PM

Regards,
Rahul
I must've been looking at an old version of the page in my browser.  :P  I was trying to access it using a subdomain I set up at ltadmin.marketpointe.com

It's working good now though.

Thank you,
-Justus Boatright
MarketPointe Realty Advisors

2007-10-15 03:03 PM

MarketPointe Realty Advisors
Okay... I think this has something to do with Capistrano.  I just ran another cap deploy to update a couple changes I made to the app, and it no longer works.

I've checked the dispatch.rb file, uploaded a correct database.yml file, and both the dispatch files (.rb and .fcgi) have the correct shebang in them.  I'm very stumped as to why this keeps happening, and if I could figure out why then this process of deployment would go much smoother.

Where should I check if I'm still having issues?  my domain is http://ltadmin.marketpointe.com

Thank you again,
Justus Boatright
MarketPointe Realty Advisors

2007-10-16 12:27 PM

MarketPointe Realty Advisors
I am learning more every day.  :)  I was poking around in my different directories and realized that I forgot to remove the comment from

ENV['RAILS_ENV'] ||= 'production'
grrr.... well, now I know what to check after I run that cap deploy function.

Thank you for giving me a place to express my noob-ness.  :P

Justus Boatright
MarketPointe Realty Advisors

2007-10-16 12:39 PM

MarketPointe Realty Advisors
Hi Justus,

:)

Glad that the issue is fixed.

You can just go through our tutorials at the link http://www.hostingrails.com/tutorials for troubleshooting if you are having any more troubles. Most of the errors and its solutions are covered there. Thanks

2007-10-16 12:53 PM

HostingRails Support

Hello Guest! In order to post you must be an active client with us, please log in or sign up.