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 4072318
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T16:52:12+00:00 2026-05-20T16:52:12+00:00

My Rails app crashs in Heroku when I run heroku open in git. Here

  • 0

My Rails app crashs in Heroku when I run heroku open in git.
Here is my crash log: http://pastie.org/1686899

On my local pc I use Ruby version 1.9.2p136, Rails version 3.0.3 with phpmyadmin.
And when I run rails server all works fine.

Updated my new error log: http://pastie.org/1686947

  • 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-05-20T16:52:12+00:00Added an answer on May 20, 2026 at 4:52 pm

    You’re using the 1.8.6 stack. Run heroku stack:migrate bamboo-mri-1.9.2 and then deploy the application again.

    if you still have an issue, please paste the error you get with the 1.9.2 stack.

    edit

    It looks like you’re running a custom select like konkurrancers".* FROM "konkurrancers" ORDER BY rand(), at least the log says

    2011-03-18T10:40:11-07:00 app[web.1]:
    LINE 1: … “konkurrancers”.* FROM
    “konku rrancers” ORDER BY rand()
    LIM… 2011-03-18T10:40:11-07:00
    app[web.1]:

    The problem is that rand() is not a function in postgress and that’s why you’re getting an error. (Heroku uses postgress as the DB engine)

    Edit 2

    try(I assume the name of the entity is Konkurrance)

    Konkurrance.all[rand(Konkurrance.all.size)]
    

    Edit 3

    konkurrances = Konkurrance.find_all_by_kategori_id(@kategor)
    @bannerkat = konkurrances[ rand(konkurrances.size) ]
    

    and the next question is going to be €10 – I accept paypal :p

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

Sidebar

Related Questions

I'm using the following snippet in a Rails app: require 'open-uri' url = http://...
I have a Rails app running Mongoid on Heroku and I need to set
My rails app, according to my heroku logs, is serving requests on average of
After successfully testing my alpha Rails 3 app in my local dev environment, I
My Rails app is hosted on Heroku. I would like to have another server
My app works perfectly locally but on deployment it crashes. My Heroku log is
My Rails App works perfect local and on my own linux root (with sqlite
For some reason, simply installing the gem delayed_job_active_record causes my heroku app to crash.
My rails app runs fine on my local Ubuntu machine, but when I push
I'm struggling with Heroku sending gmail with actionmailer in my Rails app. I've got

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.