views:

57

answers:

3

Hi all..

I am new to RoR and I am experiencing the 500 server error for a long time without success. I need someone tell me (or link to) how to debug RoR apps from the shell.

My application is redmine and I am trying to host it at hostmonster who tuns rails version 2.3.8

+2  A: 

The first thing you should do is look in your log/production.log file in your live app directory. That will contain all the relevant details about your error.

There are certain - very useful - plugins (exception_notification for example) which will email details about errors to you as they occur.

Gareth
It ends before logging anything
mmonem
But, first, thanks for your answer
mmonem
Ok, in that case you will need your web server logs (check your Apache error log if your app is running behind Apache, for example)
Gareth
+1  A: 

The latest Redmine trunk runs on Rails 2.3.5

http://www.redmine.org/projects/redmine/repository/entry/trunk/config/environment.rb

which could be causing you problems. Try setting RAILS_GEM_VERSION = '2.3.8' in your environment.rb file... although you may find other bugs crop up!

Reuben Mallaby
+1  A: 
  1. please check your database.yml.
  2. see log: log/development.log
  3. you can debug issue: http://bashdb.sourceforge.net/ruby-debug.html

hope helpful with you!

Nam Khanh