Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8674377
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 12, 20262026-06-12T19:41:45+00:00 2026-06-12T19:41:45+00:00

This is driving me nuts. There is no error in development environment. There was

  • 0

This is driving me nuts. There is no error in development environment. There was no error in production environment when I deployed to Amazon EC2.

However, on Heroku, it is giving me a 500 error when accessing a particular page. There is no other message than 500 error message.

2012-10-09T06:50:02+00:00 app[web.1]: Completed 500 Internal Server Error in 72ms (Views: 11.5ms | ActiveRecord: 44.2ms)

That’s all I have. No other error message. I even set the logging level to “DEBUG”.

What can I do to find out what’s causing the 500 error on Heroku?

I appreciate your help.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-12T19:41:46+00:00Added an answer on June 12, 2026 at 7:41 pm

    It turned out to be nothing to do with sass. I had to catch 500 error and display stack trace to figure out exactly what was causing the error and fix it.

    In the helper function, I had

    rand(1..size)
    

    and that was causing the error on Heroku, but not on development environment nor on EC2. I had to modify it to

    rand(size)
    

    and that fixed it.

    After printing stack trace, it was easy to pinpoint what was causing the error.

    I wrote a blog post about catching 400 and 500 errors so that you can do more interesting things.

    http://blog.yangtheman.com/2012/10/11/user-friendly-500-and-404-pages-on-rails-3/

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

This error has been driving me nuts. We have a server running Apache and
Okay, this is driving me nuts...I have this site where there is horizontal scrolling
This problem has been driving me nuts all day and there has to be
This is driving me nuts, lots of similar problems out there on the web,
this error is driving me nuts: Unit Test Adapter threw exception: Type 'com.imagehawk.ZDRCreator.Config.ZDRCreatorConfigException' in
This error is driving me nuts. Please help. The code compiles in gcc in
This error message is driving me nuts. I'm getting it when using Html.ListBox and
Is there somebody to help me with this issue that's driving me nuts for
This is driving me nuts. I can't seem to get the data template within
This is driving me nuts. I think it is because of some connection string

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.