ruby - Heroku error "We're sorry, but something went wrong" -


i have problem publish ror project heroku.com service... have done steps tutrial

but when running comand "heroku open" have error "we're sorry, went wrong", i'm doing wrong?

i have been migrated database, think error connected whith database, here heroku log:

    2013-05-18t12:33:19.546366+00:00 heroku[slugc]: slug compilation started 2013-05-18t12:34:56.655486+00:00 heroku[api]: scale web=1 vladimir90@inbox.lv 2013-05-18t12:34:57.187082+00:00 heroku[api]: attach heroku_postgresql_copper resource vladimir90@inbox.lv 2013-05-18t12:34:57.224557+00:00 heroku[api]: release v3 created vladimir90@inbox.lv 2013-05-18t12:34:57.308368+00:00 heroku[api]: add database_url config vladimir90@inbox.lv 2013-05-18t12:34:57.349978+00:00 heroku[api]: release v4 created vladimir90@inbox.lv 2013-05-18t12:34:57.408192+00:00 heroku[api]: add  config vladimir90@inbox.lv 2013-05-18t12:34:57.442261+00:00 heroku[api]: release v5 created vladimir90@inbox.lv 2013-05-18t12:34:57.493006+00:00 heroku[api]: deploy fe74901 vladimir90@inbox.lv 2013-05-18t12:34:57.519764+00:00 heroku[api]: release v6 created vladimir90@inbox.lv 2013-05-18t12:34:57.570144+00:00 heroku[api]: deploy fe74901 vladimir90@inbox.lv 2013-05-18t12:34:57.994564+00:00 heroku[slugc]: slug compilation finished 2013-05-18t12:34:59.186250+00:00 heroku[web.1]: starting process command `bundle exec thin start -r config.ru -e $rails_env -p 28759` 2013-05-18t12:34:59.616410+00:00 heroku[web.1]: starting process command `bundle exec thin start -r config.ru -e $rails_env -p 50832` 2013-05-18t12:35:01.755960+00:00 app[web.1]: deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/config/environment.rb:5) 2013-05-18t12:35:01.755960+00:00 app[web.1]: deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/config/environment.rb:5) 2013-05-18t12:35:01.756255+00:00 app[web.1]: deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/config/environment.rb:5) 2013-05-18t12:35:03.393994+00:00 app[web.1]: deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/config/environment.rb:5) 2013-05-18t12:35:03.392166+00:00 app[web.1]: deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/config/environment.rb:5) 2013-05-18t12:35:03.394482+00:00 app[web.1]: deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/config/environment.rb:5) 2013-05-18t12:35:03.622905+00:00 app[web.1]: connecting database specified database_url 2013-05-18t12:35:05.302411+00:00 app[web.1]: >> maximum connections set 1024 2013-05-18t12:35:05.300907+00:00 app[web.1]: >> thin web server (v1.5.1 codename straight razor) 2013-05-18t12:35:05.302411+00:00 app[web.1]: >> listening on 0.0.0.0:28759, ctrl+c stop 2013-05-18t12:35:05.630396+00:00 heroku[web.1]: state changed starting 2013-05-18t12:35:07.084035+00:00 app[web.1]: connecting database specified database_url 2013-05-18t12:35:09.555272+00:00 app[web.1]: >> thin web server (v1.5.1 codename straight razor) 2013-05-18t12:35:09.555449+00:00 app[web.1]: >> maximum connections set 1024 2013-05-18t12:35:09.555590+00:00 app[web.1]: >> listening on 0.0.0.0:50832, ctrl+c stop 2013-05-18t12:35:13.720603+00:00 heroku[web.1]: stopping processes sigterm 2013-05-18t12:35:16.014857+00:00 heroku[web.1]: process exited status 0 2013-05-18t12:38:10.548264+00:00 heroku[api]: scale web=1 vladimir90@inbox.lv 2013-05-18t12:39:35.438944+00:00 heroku[api]: starting process command `bundle exec rake db:migrate` vladimir90@inbox.lv 2013-05-18t12:39:38.857061+00:00 heroku[run.2831]: awaiting client 2013-05-18t12:39:38.879446+00:00 heroku[run.2831]: starting process command `bundle exec rake db:migrate` 2013-05-18t12:39:40.061754+00:00 heroku[run.2831]: state changed starting 2013-05-18t12:40:10.270266+00:00 heroku[run.2831]: state changed complete 2013-05-18t12:40:10.255030+00:00 heroku[run.2831]: process exited status 1 2013-05-18t12:41:05.857726+00:00 heroku[api]: starting process command `bundle exec rake db:drop` vladimir90@inbox.lv 2013-05-18t12:41 :13.440682+00:00 heroku[run.3156]: awaiting client 2013-05-18t12:41:13.496798+00:00 heroku[run.3156]: starting process command `bundle exec rake db:drop` 2013-05-18t12:41:14.317214+00:00 heroku[run.3156]: state changed starting 2013-05-18t12:41:18.771015+00:00 heroku[run.3156]: process exited status 0 2013-05-18t12:41:18.786550+00:00 heroku[run.3156]: state changed complete 2013-05-18t12:41:56.728233+00:00 heroku[api]: starting process command `bundle exec rake db:migrate` vladimir90@inbox.lv 2013-05-18t12:41:58.722421+00:00 heroku[run.2678]: awaiting client 2013-05-18t12:41:58.743284+00:00 heroku[run.2678]: starting process command `bundle exec rake db:migrate` 2013-05-18t12:42:05.452581+00:00 heroku[run.2678]: process exited status 1 2013-05-18t12:42:05.473489+00:00 heroku[run.2678]: state changed complete 2013-05-18t12:41:59.493538+00:00 heroku[run.2678]: state changed starting 2013-05-18t12:43:44.162348+00:00 heroku[api]: starting process command `db:migrate` vladimir90@inbox.lv 2013-05-18t12:43:48.582497+00:00 heroku[run.6317]: awaiting client 2013-05-18t12:43:48.595152+00:00 heroku[run.6317]: starting process command `db:migrate` 2013-05-18t12:43:50.136438+00:00 heroku[run.6317]: process exited status 127 2013-05-18t12:43:50.153625+00:00 heroku[run.6317]: state changed starting complete 2013-05-18t12:43:58.600834+00:00 heroku[run.6317]: stopping process sigkill 2013-05-18t12:43:58.600579+00:00 heroku[run.6317]: error r99 (platform error) -> failed launch dyno within 10 seconds 2013-05-18t12:44:04.921978+00:00 heroku[api]: starting process command `bundle exec rake db:migrate` vladimir90@inbox.lv 2013-05-18t12:44:07.469110+00:00 heroku[run.1605]: awaiting client 2013-05-18t12:44:07.493587+00:00 heroku[run.1605]: starting process command `bundle exec rake db:migrate` 2013-05-18t12:44:08.483461+00:00 heroku[run.1605]: state changed starting 2013-05-18t12:44:20.496304+00:00 heroku[run.1605]: state changed complete 2013-05-18t12:44:20.483493+00:00 heroku[run.1605]: process exited status 1 2013-05-18t12:44:28.137123+00:00 app[web.1]: started "/" 78.154.136.249 @ 2013-05-18 12:44:28 +0000 2013-05-18t12:44:28.203884+00:00 app[web.1]: completed 500 internal server error in 4ms 2013-05-18t12:44:28.205394+00:00 app[web.1]:                                         ^ 2013-05-18t12:44:28.208346+00:00 heroku[router]: at=info method=get path=/ host=murmuring-sierra-7529.herokuapp.com fwd="78.154.136.249" dyno=web.1 connect=5ms service=82ms status=500 bytes=643 2013-05-18t12:44:28.205394+00:00 app[web.1]:                      pg_get_expr(d.adbin, d.adrelid), a.attnotnull, a.atttypid, a.atttypmod 2013-05-18t12:44:28.199798+00:00 app[web.1]: processing catalogcontroller#index html 2013-05-18t12:44:28.205394+00:00 app[web.1]:  2013-05-18t12:44:28.205394+00:00 app[web.1]: line 5:              a.attrelid = '"carts"'::regclass 2013-05-18t12:44:28.205670+00:00 app[web.1]:   app/controllers/application_controller.rb:21:in `initialize_cart' 2013-05-18t12:44:28.205394+00:00 app[web.1]:                 on a.attrelid = d.adrelid , a.attnum = d.adnum 2013-05-18t12:44:28.205670+00:00 app[web.1]:              order a.attnum 2013-05-18t12:44:28.205394+00:00 app[web.1]:               pg_attribute left join pg_attrdef d 2013-05-18t12:44:28.205394+00:00 app[web.1]:                , a.attnum > 0 , not a.attisdropped 2013-05-18t12:44:28.205670+00:00 app[web.1]: ): 2013-05-18t12:44:28.205394+00:00 app[web.1]: :             select a.attname, format_type(a.atttypid, a.atttypmod), 2013-05-18t12:44:28.205394+00:00 app[web.1]: activerecord::statementinvalid (pg::error: error:  relation "carts" not exist 2013-05-18t12:44:28.205394+00:00 app[web.1]:              a.attrelid = '"carts"'::regclass 2013-05-18t12:44:28.205670+00:00 app[web.1]:  2013-05-18t12:44:28.205670+00:00 app[web.1]:  2013-05-18t12:44:28.419883+00:00 heroku[router]: at=info method=get path=/favicon.ico host=murmuring-sierra-7529.herokuapp.com fwd="78.154.136.249" dyno=web.1 connect=0ms service=8ms status=200 bytes=0 

and readed post - ruby on rails app deployed heroku showing "we're sorry, went wrong" , in case doesn't helps me =( can me problem?

upd 1: here create_cart_items.rb code:

class createcartitems < activerecord::migration   def change     create_table :cart_items |t|       t.column :book_id, :integer       t.column :cart_id, :integer       t.column :price, :float       t.column :amount, :integer       t.column :created_at, :datetime     end   end end 

upd 2: here db:migrate trace:

running `rake db:migrate --trace` attached terminal... up, run.7697 deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/rakefile:7) deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/rakefile:7) deprecation warning: have rails 2.3-style plugins in vendor/plugins! support these plugins removed in rails 4.0. move them out , bundle them in gemfile, or fold them in app lib/myplugin/* , config/initializers/myplugin.rb. see release notes more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called <top (required)> @ /app/rakefile:7) ** invoke db:migrate (first_time) ** invoke environment (first_time) ** execute environment connecting database specified database_url ** invoke db:load_config (first_time) ** execute db:load_config ** execute db:migrate migrating createauthors (20130302171259) migrating createpublishers (20130302185948) migrating createbooksandauthorsbooks (20130302195412) ==  createbooksandauthorsbooks: migrating ===================================== -- create_table(:books) notice:  create table create implicit sequence "books_id_seq" serial column "books.id" notice:  create table / primary key create implicit index "books_pkey" table "books"    -> 0.0557s -- create_table(:authors_books, {:id=>false})    -> 0.0031s -- adding foreign keys -- execute("create trigger fk_bk_authors before delete on authors each row begin delete authors_books author_id = old.id; end") rake aborted! error has occurred, , later migrations canceled:  pg::error: error:  syntax error @ or near "begin" line 1: ..._bk_authors before delete on authors each row begin dele...                                                              ^ : create trigger fk_bk_authors before delete on authors each row begin delete authors_books author_id = old.id; end/app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/postgresql_adapter.rb:652:in `exec' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/postgresql_adapter.rb:652:in `block in execute' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_adapter.rb:280:in `block in log' /app/vendor/bundle/ruby/1.9.1/gems/activesupport-3.2.11/lib/active_support/notifications/instrumenter.rb:20:in `instrument' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract_adapter.rb:275:in `log' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/postgresql_adapter.rb:651:in `execute' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:466:in `block in method_missing' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:438:in `block in say_with_time' /usr/local/lib/ruby/1.9.1/benchmark.rb:295:in `measure' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:438:in `say_with_time' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:458:in `method_missing' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:334:in `method_missing' /app/db/migrate/20130302195412_create_books_and_authors_books.rb:20:in `block in up' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:438:in `block in say_with_time' /usr/local/lib/ruby/1.9.1/benchmark.rb:295:in `measure' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:438:in `say_with_time' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:334:in `method_missing' /app/db/migrate/20130302195412_create_books_and_authors_books.rb:15:in `up' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:370:in `up' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:410:in `block (2 levels) in migrate' /usr/local/lib/ruby/1.9.1/benchmark.rb:295:in `measure' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:410:in `block in migrate' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/connection_pool.rb:129:in `with_connection' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:389:in `migrate' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:528:in `migrate' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:720:in `block (2 levels) in migrate' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:775:in `call' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:775:in `block in ddl_transaction' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/connection_adapters/abstract/database_statements.rb:192:in `transaction' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/transactions.rb:208:in `transaction' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:775:in `ddl_transaction' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:719:in `block in migrate' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:700:in `each' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:700:in `migrate' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:570:in `up' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/migration.rb:551:in `migrate' /app/vendor/bundle/ruby/1.9.1/gems/activerecord-3.2.11/lib/active_record/railties/databases.rake:179:in `block (2 levels) in <top (required)>' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `call' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:246:in `block in execute' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `each' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:241:in `execute' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:184:in `block in invoke_with_call_chain' /usr/local/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:177:in `invoke_with_call_chain' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/task.rb:170:in `invoke' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:143:in `invoke_task' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block (2 levels) in top_level' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `each' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:101:in `block in top_level' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:110:in `run_with_threads' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:95:in `top_level' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:73:in `block in run' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:160:in `standard_exception_handling' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/lib/rake/application.rb:70:in `run' /app/vendor/bundle/ruby/1.9.1/gems/rake-10.0.4/bin/rake:33:in `<top (required)>' /app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `load' /app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `<main>' tasks: top => db:migrate 

upd3: application_controller.rb code:

class applicationcontroller < actioncontroller::base   before_filter :set_locale   helper :all # include helpers, time   protect_from_forgery :only => [:create, :update, :destroy]   private   def set_locale     accept_lang = request.env['http_accept_language']     accept_lang = accept_lang.blank? ? nil : accept_lang[/[^,;]+/]     locale = params[:locale] || session[:locale] || accept_lang ||default_locale     begin       i18n.locale = locale       session[:locale] = locale     rescue           i18n.locale = default_locale     end   end   def initialize_cart     if session[:cart_id] , cart.exists?(session[:cart_id])       @cart = cart.find(session[:cart_id])     else       @cart = cart.create       session[:cart_id] = @cart.id     end   end end 

summary:

do heroku run rake db:migrate

details:

it looks carts table not exist.

please show rails migration creates it.

are sure migration has run on heroku, not locally?

if heroku run rake db:migrate get?


Comments

Popular posts from this blog

SPSS keyboard combination alters encoding -

Add new record to the table by click on the button in Microsoft Access -

CSS3 Transition to highlight new elements created in JQuery -