Forum: Ruby on Rails Getting 500 Errors on production...

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Mike C. (Guest)
on 2009-05-05 10:01
(Received via mailing list)
I'm getting 500 errors on my production server running Passenger. I
cannot, for the life of me, find out what the problem is. Everything
works fine on my local machine. However, on my production machine, I
can't even get logs since I don't know where Passenger keeps the logs.
So I'm scrolling through the production.log on the production server,
which seems to be endless. Is there an easier way to find out what
went wrong?
Arunkumar B. (Guest)
on 2009-05-05 15:47
(Received via mailing list)
Use tail command to see the last line changes of your production.log
file.

"tail -f log/production.log"

Reproduce the error again. Now you can see the actual error in the log
file.



On Tue, May 5, 2009 at 11:30 AM, Mike C <removed_email_address@domain.invalid> 
wrote:

>
> I'm getting 500 errors on my production server running Passenger. I
> cannot, for the life of me, find out what the problem is. Everything
> works fine on my local machine. However, on my production machine, I
> can't even get logs since I don't know where Passenger keeps the logs.
> So I'm scrolling through the production.log on the production server,
> which seems to be endless. Is there an easier way to find out what
> went wrong?
> >
>


--
With regards,
Arunkumar B.
9789980534.
http://thinkingrails.blogspot.com
Charles J. (Guest)
on 2009-05-05 18:20
(Received via mailing list)
What platform/OS are you using for production? What database. Inquiring
minds want to know. :)
Cheers--

Charles
Mike C. (Guest)
on 2009-05-05 21:36
(Received via mailing list)
Hi, the problem has been fixed but I was basically shooting in the
dark and happened to get a hit. I'm using Debian 5.0 with MySQL 5 for
my production. How does Passenger keep its logs, if any?
Charles J. (Guest)
on 2009-05-05 23:37
(Received via mailing list)
Try your apache error logs, as well as your system logs.
Cheers--

Charles
Mike C. (Guest)
on 2009-05-06 00:03
(Received via mailing list)
I did take a look in my apache logs and it only seemed to log
warnings; I didn't see anything that pertained to the error or
exception I got.
Charles J. (Guest)
on 2009-05-06 00:55
(Received via mailing list)
Try the Phusion site and see if the online docs are helpful. I have
always
been able to diagnose problems with the rails log files coupled with the
apache logs. Sorry. :(
Cheers--

Charles
This topic is locked and can not be replied to.