ruby on rails - Heroku Application Error when using Heroku create command -


i following tutorial @ http://onemonth.com created rails app. asked use heroku app live online. followed steps linking github account heroku via ssh key. when use command heroku create , copy past link provided, in case http://young-peak-7631.herokuapp.com/, "application error" in browser.

this exact message:

"an error occurred in application , page not served. please try again in few moments.if application owner, check logs details."

see picture of heroku error page below enter image description here here logs:

       2014-07-01t06:50:55.157229+00:00 app[web.1]:   rendered layouts/_header.html.erb (0.7ms) 2014-07-01t06:50:56.211672+00:00 heroku[router]: at=info method=get path="/about" host=omr-photoshare.herokuapp.com request_id=0b8e9a43-5ffd-4bae-aa4f-61e9f87dfdfc fwd="65.78.4.236" dyno=web.1 connect=2ms service=192ms status=304 bytes=845 2014-07-01t06:50:56.025883+00:00 app[web.1]: started "/about" 65.78.4.236 @ 2014-07-01 06:50:56 +0000 2014-07-01t06:50:56.082614+00:00 app[web.1]:   rendered pages/about.html.erb within layouts/application (0.2ms) 2014-07-01t06:50:56.174581+00:00 app[web.1]: completed 200 ok in 95ms (views: 7.0ms | activerecord: 86.8ms) 2014-07-01t06:50:56.079586+00:00 app[web.1]: processing pagescontroller#about html 2014-07-01t06:50:56.173874+00:00 app[web.1]:   rendered layouts/_header.html.erb (90.3ms) 2014-07-01t06:50:57.026362+00:00 heroku[router]: at=info method=get path="/users/edit" host=omr-photoshare.herokuapp.com request_id=9e7dbd9b-1e90-4cf0-b422-a39fc4dd86af fwd="65.78.4.236" dyno=web.1 connect=4ms service=26ms status=200 bytes=4509 2014-07-01t06:50:57.023820+00:00 app[web.1]:   rendered devise/registrations/edit.html.erb within layouts/application (6.5ms) 2014-07-01t06:50:57.007189+00:00 app[web.1]: started "/users/edit" 65.78.4.236 @ 2014-07-01 06:50:57 +0000 2014-07-01t06:50:57.027133+00:00 app[web.1]: completed 200 ok in 16ms (views: 12.8ms | activerecord: 1.3ms) 2014-07-01t06:50:57.010704+00:00 app[web.1]: processing devise::registrationscontroller#edit html 2014-07-01t06:50:57.026562+00:00 app[web.1]:   rendered layouts/_header.html.erb (0.5ms) 2014-07-01t06:50:58.037348+00:00 heroku[router]: at=info method=post path="/users/sign_out" host=omr-photoshare.herokuapp.com request_id=62ed2279-f63e-4c4f-9721-7b1361348276 fwd="65.78.4.236" dyno=web.1 connect=32ms service=41ms status=302 bytes=931 2014-07-01t06:50:58.138958+00:00 heroku[router]: at=info method=get path="/" host=omr-photoshare.herokuapp.com request_id=d36b09ab-feb9-4e13-8b07-97bda734f4cd fwd="65.78.4.236" dyno=web.1 connect=1ms service=72ms status=200 bytes=2809 2014-07-01t06:50:58.004542+00:00 app[web.1]: started delete "/users/sign_out" 65.78.4.236 @ 2014-07-01 06:50:58 +0000 2014-07-01t06:50:58.034982+00:00 app[web.1]: completed 302 found in 25ms (activerecord: 12.2ms) 2014-07-01t06:50:58.119933+00:00 app[web.1]: processing pagescontroller#home html 2014-07-01t06:50:58.137550+00:00 app[web.1]:   rendered layouts/_header.html.erb (0.5ms) 2014-07-01t06:50:58.009338+00:00 app[web.1]: processing devise::sessionscontroller#destroy html 2014-07-01t06:50:58.116047+00:00 app[web.1]: started "/" 65.78.4.236 @ 2014-07-01 06:50:58 +0000 2014-07-01t06:50:58.009357+00:00 app[web.1]:   parameters: {"authenticity_token"=>"5aneyky75ebcucrc50ozjx2mogunlkfcesadg5dofzw="} 2014-07-01t06:50:58.136033+00:00 app[web.1]:   rendered pages/home.html.erb within layouts/application (14.2ms) 2014-07-01t06:50:58.034741+00:00 app[web.1]: redirected http://omr-photoshare.herokuapp.com/ 2014-07-01t06:50:58.138057+00:00 app[web.1]: completed 200 ok in 18ms (views: 16.7ms | activerecord: 0.0ms) 2014-07-01t06:51:00.169842+00:00 heroku[router]: at=info method=get path="/users/sign_in" host=omr-photoshare.herokuapp.com request_id=102f1369-f2c7-4c60-95fd-fdcf94c91f3b fwd="65.78.4.236" dyno=web.1 connect=1ms service=95ms status=200 bytes=3735 2014-07-01t06:51:00.148527+00:00 app[web.1]: started "/users/sign_in" 65.78.4.236 @ 2014-07-01 06:51:00 +0000 2014-07-01t06:51:00.163967+00:00 app[web.1]:   rendered devise/shared/_links.erb (1.7ms) 2014-07-01t06:51:00.164009+00:00 app[web.1]:   rendered devise/sessions/new.html.erb within layouts/application (6.6ms) 2014-07-01t06:51:00.165306+00:00 app[web.1]:   rendered layouts/_header.html.erb (0.7ms) 2014-07-01t06:51:00.152352+00:00 app[web.1]: processing devise::sessionscontroller#new html 2014-07-01t06:51:00.165745+00:00 app[web.1]: completed 200 ok in 13ms (views: 10.2ms | activerecord: 0.0ms) 2014-07-01t06:51:01.519186+00:00 heroku[router]: at=info method=post path="/users/sign_in" host=omr-photoshare.herokuapp.com request_id=2e71a5f1-e10a-4158-af5c-6f80f8aac4a3 fwd="65.78.4.236" dyno=web.1 connect=9ms service=144ms status=302 bytes=1041 2014-07-01t06:51:01.575579+00:00 heroku[router]: at=info method=get path="/" host=omr-photoshare.herokuapp.com request_id=304d9c4f-d607-4f37-aa75-bf07c48ace45 fwd="65.78.4.236" dyno=web.1 connect=3ms service=25ms status=200 bytes=2911 2014-07-01t06:51:01.571496+00:00 app[web.1]: processing pagescontroller#home html 2014-07-01t06:51:01.518046+00:00 app[web.1]: completed 302 found in 133ms (activerecord: 12.5ms) 2014-07-01t06:51:01.381342+00:00 app[web.1]: started post "/users/sign_in" 65.78.4.236 @ 2014-07-01 06:51:01 +0000 2014-07-01t06:51:01.576450+00:00 app[web.1]:   rendered layouts/_header.html.erb (0.5ms) 2014-07-01t06:51:01.384466+00:00 app[web.1]: processing devise::sessionscontroller#create html 2014-07-01t06:51:01.384511+00:00 app[web.1]:   parameters: {"utf8"=>"✓", "authenticity_token"=>"+8dzcduvfyzofv4g28jmxjsoxyrwehj+cdje3lewptq=", "user"=>{"email"=>"cghazanfar10@gmail.com", "password"=>"[filtered]", "remember_me"=>"0"}, "commit"=>"sign in"} 2014-07-01t06:51:01.517874+00:00 app[web.1]: redirected http://omr-photoshare.herokuapp.com/ 2014-07-01t06:51:01.568980+00:00 app[web.1]: started "/" 65.78.4.236 @ 2014-07-01 06:51:01 +0000 2014-07-01t06:51:01.575119+00:00 app[web.1]:   rendered pages/home.html.erb within layouts/application (2.4ms) 2014-07-01t06:51:01.576943+00:00 app[web.1]: completed 200 ok in 5ms (views: 3.1ms | activerecord: 1.4ms) 2014-07-01t07:53:44.045215+00:00 heroku[web.1]: state changed down 2014-07-01t07:53:44.044809+00:00 heroku[web.1]: idling 2014-07-01t07:53:47.433692+00:00 app[web.1]: [2014-07-01 07:53:47] fatal signalexception: sigterm 2014-07-01t07:53:47.433697+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `select' 2014-07-01t07:53:47.433700+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `block in start' 2014-07-01t07:53:47.433702+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:32:in `start' 2014-07-01t07:53:47.433704+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:160:in `start' 2014-07-01t07:53:47.433753+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in `run' 2014-07-01t07:53:47.433755+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:264:in `start' 2014-07-01t07:53:47.433757+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/server.rb:69:in `start' 2014-07-01t07:53:47.433758+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:81:in `block in server' 2014-07-01t07:53:47.433760+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `tap' 2014-07-01t07:53:47.433761+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `server' 2014-07-01t07:53:47.433763+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!' 2014-07-01t07:53:47.433764+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>' 2014-07-01t07:53:47.433766+00:00 app[web.1]:    bin/rails:8:in `require' 2014-07-01t07:53:47.433767+00:00 app[web.1]:    bin/rails:8:in `<main>' 2014-07-01t07:53:47.433773+00:00 app[web.1]: [2014-07-01 07:53:47] info  going shutdown ... 2014-07-01t07:53:47.433817+00:00 app[web.1]: [2014-07-01 07:53:47] info  webrick::httpserver#start done. 2014-07-01t07:53:47.433890+00:00 app[web.1]: exiting 2014-07-01t07:53:49.611381+00:00 heroku[web.1]: process exited status 143 2014-07-01t07:53:46.855962+00:00 heroku[web.1]: stopping processes sigterm 2014-07-01t15:33:01.545336+00:00 heroku[web.1]: unidling 2014-07-01t15:33:01.545628+00:00 heroku[web.1]: state changed down starting 2014-07-01t15:33:08.727524+00:00 app[web.1]: [2014-07-01 15:33:08] info  webrick 1.3.1 2014-07-01t15:33:08.727547+00:00 app[web.1]: [2014-07-01 15:33:08] info  ruby 2.0.0 (2014-05-08) [x86_64-linux] 2014-07-01t15:33:08.727961+00:00 app[web.1]: [2014-07-01 15:33:08] info  webrick::httpserver#start: pid=2 port=36532 2014-07-01t15:33:04.638475+00:00 heroku[web.1]: starting process command `bin/rails server -p 36532 -e production` 2014-07-01t15:33:09.317544+00:00 heroku[web.1]: state changed starting 2014-07-01t15:33:10.624767+00:00 heroku[router]: at=info method=get path="/favicon.ico" host=omr-photoshare.herokuapp.com request_id=10c1d02a-1e17-4a48-9838-c35c2d530b52 fwd="66.249.83.39" dyno=web.1 connect=4ms service=8ms status=200 bytes=228 2014-07-01t16:38:20.572132+00:00 heroku[web.1]: state changed down 2014-07-01t16:38:20.571809+00:00 heroku[web.1]: idling 2014-07-01t16:38:25.614240+00:00 app[web.1]: [2014-07-01 16:38:25] fatal signalexception: sigterm 2014-07-01t16:38:25.614249+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `select' 2014-07-01t16:38:25.614252+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:170:in `block in start' 2014-07-01t16:38:25.614254+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:32:in `start' 2014-07-01t16:38:25.614255+00:00 app[web.1]:    /app/vendor/ruby-2.0.0/lib/ruby/2.0.0/webrick/server.rb:160:in `start' 2014-07-01t16:38:25.614257+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/handler/webrick.rb:14:in `run' 2014-07-01t16:38:25.614260+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/server.rb:69:in `start' 2014-07-01t16:38:25.614258+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/rack-1.5.2/lib/rack/server.rb:264:in `start' 2014-07-01t16:38:25.614262+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:81:in `block in server' 2014-07-01t16:38:25.614268+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands.rb:17:in `<top (required)>' 2014-07-01t16:38:25.614263+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `tap' 2014-07-01t16:38:25.614342+00:00 app[web.1]: [2014-07-01 16:38:25] info  going shutdown ... 2014-07-01t16:38:25.614455+00:00 app[web.1]: => ctrl-c shutdown server 2014-07-01t16:38:25.614272+00:00 app[web.1]:    bin/rails:8:in `<main>' 2014-07-01t16:38:25.614452+00:00 app[web.1]: => run `rails server -h` more startup options 2014-07-01t16:38:25.614265+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:76:in `server' 2014-07-01t16:38:25.614266+00:00 app[web.1]:    /app/vendor/bundle/ruby/2.0.0/gems/railties-4.1.1/lib/rails/commands/commands_tasks.rb:40:in `run_command!' 2014-07-01t16:38:25.614270+00:00 app[web.1]:    bin/rails:8:in `require' 2014-07-01t16:38:25.614406+00:00 app[web.1]: [2014-07-01 16:38:25] info  webrick::httpserver#start done. 2014-07-01t16:38:25.614450+00:00 app[web.1]: => rails 4.1.1 application starting in production on http://0.0.0.0:36532 2014-07-01t16:38:25.614475+00:00 app[web.1]: exiting 2014-07-01t16:38:25.614448+00:00 app[web.1]: => booting webrick 2014-07-01t16:38:25.614453+00:00 app[web.1]: => notice: server listening on interfaces (0.0.0.0). consider using 127.0.0.1 (--binding option) 2014-07-01t16:38:24.918023+00:00 heroku[web.1]: stopping processes sigterm 2014-07-01t16:38:28.512103+00:00 heroku[web.1]: process exited status 143 

i looked @ of answers problem. of people saying heroku doesn't support sqlite3 , need convert database postgresql

additional information:

gemfile

    source 'https://rubygems.org' gem 'rails', '4.1.1'  gem 'sass-rails', '~> 4.0.3' gem 'uglifier', '>= 1.3.0' gem 'coffee-rails', '~> 4.0.0' gem 'jquery-rails' gem 'turbolinks' gem 'jbuilder', '~> 2.0' gem 'bootstrap-sass'  group :development, :test      gem 'sqlite3' end  group :production      gem 'pg'      gem 'rails_12factor' end  gem 'sdoc', '~> 0.4.0',          group: :doc gem 'spring',        group: :development 

config/database.yml

default: &default   adapter: sqlite3   pool: 5   timeout: 5000  development:   <<: *default   database: db/development.sqlite3   test:   <<: *default   database: db/test.sqlite3  production:   <<: *default   database: db/production.sqlite3 

thank future help...

db

your problem db related (as you've suggested)

heroku has 2 types of error - standard "rails" errors & heroku platform errors:

rails error

enter image description here

heroku error

enter image description here

--

error

these errors standard rails apps running on heroku - difference rails error 1 derived rails app itself; heroku error raised heroku platform

heroku errors mean application cannot load reason; typically because it's unable connect db, or db doesn't have right data tables.

to fix this, first need ensure you're using database in production (heroku's postgres db highly recommended):

#config/database.yml production:   .... 

after have set & pushed heroku, need ensure db populated right tables. this, run heroku run rake db:migrate in local cmd


update

the way make sure have production db use heroku postgres db, should come standard in heroku app dashboard

if need add heroku postgres db dashboard, need add add-on here

once db in dashboard, click on & should come postgres interface. can see how connect db in ruby here; should use details provided postgress add-on in app's dashboard

typically, heroku-compatible database.yml this:

#config/database.yml production:   adapter: postgresql   encoding: utf8   database: *********   pool: 5   username: *********    #-> *** data heroku's postgres user details page   password: ******   host: ****** 

Comments

Popular posts from this blog

google api - Incomplete response from Gmail API threads.list -

Installing Android SQLite Asset Helper -

Qt Creator - Searching files with Locator including folder -