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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T14:59:05+00:00 2026-05-21T14:59:05+00:00

So I created a heroku app, pushed it up, db:migrate it already. The app

  • 0

So I created a heroku app, pushed it up, db:migrate it already. The app works fine on my local machine, but it just crashes on heroku. I’m a newbie and don’t know where to start trouble-shooting this. Thanks in advance! All the logs from creating the app to migration are here:

2011-04-17T22:51:03-07:00 heroku[slugc]: Slug compilation finished
2011-04-18T05:51:07+00:00 app[web.1]: /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require': /app/app/controllers/users_controller.rb:28: syntax error, unexpected '.', expecting kEND (SyntaxError)
2011-04-18T05:51:07+00:00 app[web.1]: ...                             .paginate(:page => params[:page...
2011-04-18T05:51:07+00:00 app[web.1]:                               ^
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:346:in `require_or_load'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:300:in `depend_on'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:138:in `eager_load!'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:137:in `each'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:137:in `eager_load!'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:135:in `each'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:135:in `eager_load!'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:108:in `eager_load!'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application/finisher.rb:41
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `instance_exec'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `run'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:50:in `run_initializers'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `each'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `run_initializers'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:134:in `initialize!'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:77:in `send'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:77:in `method_missing'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/config/environment.rb:5
2011-04-18T05:51:07+00:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
2011-04-18T05:51:07+00:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
2011-04-18T05:51:07+00:00 app[web.1]:   from config.ru:3
2011-04-18T05:51:07+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:63:in `new'
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:63:in `map'
2011-04-18T05:51:07+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:18
2011-04-18T05:51:07+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
2011-04-18T05:51:07+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11:in `new'
2011-04-18T05:51:07+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1
2011-04-17T22:51:07-07:00 heroku[web.1]: State changed from starting to crashed
2011-04-17T22:51:07-07:00 heroku[web.1]: State changed from crashed to created
2011-04-17T22:51:07-07:00 heroku[web.1]: State changed from created to starting
2011-04-17T22:51:10-07:00 heroku[web.1]: State changed from created to starting
2011-04-18T05:51:11+00:00 app[web.1]: /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require': /app/app/controllers/users_controller.rb:28: syntax error, unexpected '.', expecting kEND (SyntaxError)
2011-04-18T05:51:11+00:00 app[web.1]: ...                             .paginate(:page => params[:page...
2011-04-18T05:51:11+00:00 app[web.1]:                               ^
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:227:in `load_dependency'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:239:in `require'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:346:in `require_or_load'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:300:in `depend_on'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.5/lib/active_support/dependencies.rb:216:in `require_dependency'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:138:in `eager_load!'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:137:in `each'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:137:in `eager_load!'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:135:in `each'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/engine.rb:135:in `eager_load!'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:108:in `eager_load!'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application/finisher.rb:41
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `instance_exec'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:25:in `run'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:50:in `run_initializers'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `each'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/initializable.rb:49:in `run_initializers'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:134:in `initialize!'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:77:in `send'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/railties-3.0.5/lib/rails/application.rb:77:in `method_missing'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/config/environment.rb:5
2011-04-18T05:51:11+00:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
2011-04-18T05:51:11+00:00 app[web.1]:   from /usr/ruby1.8.7/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
2011-04-18T05:51:11+00:00 app[web.1]:   from config.ru:3
2011-04-18T05:51:11+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:23
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:63:in `new'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:63:in `map'
2011-04-18T05:51:11+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:18
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
2011-04-18T05:51:11+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11:in `new'
2011-04-18T05:51:11+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:11
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `instance_eval'
2011-04-18T05:51:11+00:00 app[web.1]:   from /app/.bundle/gems/ruby/1.8/gems/rack-1.2.2/lib/rack/builder.rb:46:in `initialize'
2011-04-18T05:51:11+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1:in `new'
2011-04-18T05:51:11+00:00 app[web.1]:   from /home/heroku_rack/heroku.ru:1
2011-04-17T22:51:15-07:00 heroku[web.1]: State changed from starting to crashed
2011-04-18T05:51:21+00:00 heroku[router]: Error H10 (App crashed) -> GET indelearn.heroku.com/ dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-17T22:51:22-07:00 heroku[nginx]: GET / HTTP/1.1 | 75.72.164.255 | 795 | http | 503
2011-04-18T05:51:22+00:00 heroku[router]: Error H10 (App crashed) -> GET indelearn.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-17T22:51:22-07:00 heroku[nginx]: GET /favicon.ico HTTP/1.1 | 75.72.164.255 | 795 | http | 503
2011-04-17T22:51:39-07:00 heroku[rake.1]: State changed from created to starting
2011-04-17T22:51:43-07:00 heroku[rake.1]: State changed from starting to up
2011-04-17T22:51:49-07:00 heroku[rake.1]: State changed from up to complete
2011-04-18T05:51:59+00:00 heroku[router]: Error H10 (App crashed) -> GET indelearn.heroku.com/ dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-17T22:51:59-07:00 heroku[nginx]: GET / HTTP/1.1 | 75.72.164.255 | 795 | http | 503
2011-04-18T05:51:59+00:00 heroku[router]: Error H10 (App crashed) -> GET indelearn.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-17T22:51:59-07:00 heroku[nginx]: GET /favicon.ico HTTP/1.1 | 75.72.164.255 | 795 | http | 503
2011-04-18T05:52:00+00:00 heroku[router]: Error H10 (App crashed) -> GET indelearn.heroku.com/ dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-17T22:52:00-07:00 heroku[nginx]: GET / HTTP/1.1 | 75.72.164.255 | 795 | http | 503
2011-04-18T05:52:01+00:00 heroku[router]: Error H10 (App crashed) -> GET indelearn.heroku.com/favicon.ico dyno=none queue=0 wait=0ms service=0ms bytes=0
2011-04-17T22:52:01-07:00 heroku[nginx]: GET /favicon.ico HTTP/1.1 | 75.72.164.255 | 795 | http | 503

The users_contoller #28 is a paginate followed by a really long sql query:

@discussions = Discussion.find_by_sql("SELECT d.*, MAX(c.created_at) AS lastCommentTime 
                 FROM discussions d JOIN comments c ON d.id = c.commentable_id 
                 WHERE c.commentable_type = 'Discussion' AND c.user_id = #{@user.id} 
                 GROUP BY d.id ORDER BY lastCommentTime DESC")
                 .paginate(:page => params[:page], :per_page => 10)

So I’ve deleted the line-break before the dot and it is fixed. Thanks for you guys’ superpowers! It’s so hard for a newbie to spot the critical error line in that log file. 🙂

  • 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-21T14:59:06+00:00Added an answer on May 21, 2026 at 2:59 pm

    The stack trace mentions app/controllers/users_controller.rb at line 28. What is the code at and around this file? That is likely where you’ll find your issue.

    Also, I know it sounds silly, but triple-check that everything is checked in to your Git repo. Since Heroku is Git-based, it’s easy to forget to check something in, and git push an old version of your app to the server.

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

Sidebar

Related Questions

Following the Heroku tutorial but I have already created a rather complex Django app
I just created a simple rails app and pushed it to heroku. In my
I've a Refinery app, works great locally. Created a bamboo stack on Heroku. When
I have created an App on Heroku which works perfectly in a Web Browser.
i'm new to git and heroku. I've created an app on heroku, pushed some
I just pushed an app to a production Heroku environment. Basically there is a
I created a heroku repo some time ago for my rails app but deleted
I did heroku create and pushed a working rails app to the server. Everything
I created a sinatra based facebook app on Heroku by initiating it with the
I created sample rails app and deployed into heroku. Rails version is 3.1.3 Ruby

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.