{"action":"created","issue":{"url":"https://api.github.com/repos/rails/rails/issues/28508","repository_url":"https://api.github.com/repos/rails/rails","labels_url":"https://api.github.com/repos/rails/rails/issues/28508/labels{/name}","comments_url":"https://api.github.com/repos/rails/rails/issues/28508/comments","events_url":"https://api.github.com/repos/rails/rails/issues/28508/events","html_url":"https://github.com/rails/rails/issues/28508","id":215834711,"number":28508,"title":"5.1.0.rc1. Problem on heroku during `rake db:migrate`.","user":{"login":"mrkongo","id":20625823,"avatar_url":"https://avatars1.githubusercontent.com/u/20625823?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkongo","html_url":"https://github.com/mrkongo","followers_url":"https://api.github.com/users/mrkongo/followers","following_url":"https://api.github.com/users/mrkongo/following{/other_user}","gists_url":"https://api.github.com/users/mrkongo/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkongo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkongo/subscriptions","organizations_url":"https://api.github.com/users/mrkongo/orgs","repos_url":"https://api.github.com/users/mrkongo/repos","events_url":"https://api.github.com/users/mrkongo/events{/privacy}","received_events_url":"https://api.github.com/users/mrkongo/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2017-03-21T18:23:10Z","updated_at":"2017-03-21T18:57:53Z","closed_at":null,"body":"### Steps to reproduce\r\n\r\nJust updated my Gemfile with:\r\n\r\n```\r\n# gem 'rails', '5.1.0.beta1'\r\ngem 'rails', '~> 5.1.0.rc1'\r\n```\r\nand everything works (including migrate) on my local machine.\r\n\r\nBut after `git push heroku master` I need to run `heroku run rake db:migrate` and here we go:\r\n\r\n```\r\n$ heroku run rake db:migrate\r\nRunning rake db:migrate on myApp... up, run.4825 (Free)\r\n[Scout] [03/21/17 17:32:34 +0000 run.4825 (4)] WARN : Deferring agent start. Standing by for first request\r\nI, [2017-03-21T17:32:34.961399 #4]  INFO -- : ** [Opbeat] Starting client\r\nI, [2017-03-21T17:32:34.961654 #4]  INFO -- : ** [Opbeat] Client running\r\nrake aborted!\r\nActiveSupport::MessageEncryptor::InvalidMessage: ActiveSupport::MessageEncryptor::InvalidMessage\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/message_encryptor.rb:133:in `rescue in _decrypt'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/message_encryptor.rb:112:in `_decrypt'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/message_encryptor.rb:84:in `decrypt_and_verify'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:47:in `decrypt'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:92:in `preprocess'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:28:in `block in parse'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:25:in `each'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:25:in `each_with_object'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:25:in `parse'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:389:in `secrets'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:172:in `key_generator'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:203:in `message_verifier'\r\n/app/vendor/bundle/ruby/2.4.0/gems/globalid-0.3.7/lib/global_id/railtie.rb:25:in `block (2 levels) in <class:Railtie>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/lazy_load_hooks.rb:43:in `execute_hook'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/lazy_load_hooks.rb:51:in `each'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application/finisher.rb:73:in `block in <module:Finisher>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/initializable.rb:30:in `instance_exec'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/initializable.rb:30:in `run'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/initializable.rb:59:in `block in run_initializers'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/initializable.rb:58:in `run_initializers'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:353:in `initialize!'\r\n/app/config/environment.rb:5:in `<top (required)>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/opbeat-3.0.10/lib/opbeat/injections.rb:74:in `require'\r\n/app/vendor/bundle/ruby/2.4.0/gems/opbeat-3.0.10/lib/opbeat/injections.rb:74:in `require'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:329:in `require_environment!'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:443:in `block in run_tasks_blocks'\r\n/app/vendor/bundle/ruby/2.4.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `load'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `kernel_load'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:in `run'\r\n\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in `exec'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in `dispatch'\r\n\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in `start'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/exe/bundle:34:in `block in <top (required)>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/exe/bundle:26:in `<top (required)>'\r\n\r\n/app/bin/bundle:3:in `load'\r\n/app/bin/bundle:3:in `<main>'\r\nArgumentError: invalid base64\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/message_encryptor.rb:113:in `block in _decrypt'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/message_encryptor.rb:113:in `map'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/message_encryptor.rb:113:in `_decrypt'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/message_encryptor.rb:84:in `decrypt_and_verify'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:47:in `decrypt'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:92:in `preprocess'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:28:in `block in parse'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:25:in `each'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:25:in `each_with_object'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/secrets.rb:25:in `parse'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:389:in `secrets'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:172:in `key_generator'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:203:in `message_verifier'\r\n/app/vendor/bundle/ruby/2.4.0/gems/globalid-0.3.7/lib/global_id/railtie.rb:25:in `block (2 levels) in <class:Railtie>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/lazy_load_hooks.rb:43:in `execute_hook'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/lazy_load_hooks.rb:52:in `block in run_load_hooks'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/lazy_load_hooks.rb:51:in `each'\r\n/app/vendor/bundle/ruby/2.4.0/gems/activesupport-5.1.0.rc1/lib/active_support/lazy_load_hooks.rb:51:in `run_load_hooks'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application/finisher.rb:73:in `block in <module:Finisher>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/initializable.rb:30:in `instance_exec'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/initializable.rb:30:in `run'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/initializable.rb:59:in `block in run_initializers'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/initializable.rb:58:in `run_initializers'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:353:in `initialize!'\r\n/app/config/environment.rb:5:in `<top (required)>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/opbeat-3.0.10/lib/opbeat/injections.rb:74:in `require'\r\n/app/vendor/bundle/ruby/2.4.0/gems/opbeat-3.0.10/lib/opbeat/injections.rb:74:in `require'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:329:in `require_environment!'\r\n/app/vendor/bundle/ruby/2.4.0/gems/railties-5.1.0.rc1/lib/rails/application.rb:443:in `block in run_tasks_blocks'\r\n/app/vendor/bundle/ruby/2.4.0/gems/rake-11.3.0/exe/rake:27:in `<top (required)>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `load'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:74:in `kernel_load'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli/exec.rb:27:in `run'\r\n\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli.rb:332:in `exec'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/command.rb:27:in `run'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/invocation.rb:126:in `invoke_command'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor.rb:359:in `dispatch'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli.rb:20:in `dispatch'\r\n\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/vendor/thor/lib/thor/base.rb:440:in `start'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/cli.rb:11:in `start'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/exe/bundle:34:in `block in <top (required)>'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/lib/bundler/friendly_errors.rb:100:in `with_friendly_errors'\r\n/app/vendor/bundle/ruby/2.4.0/gems/bundler-1.13.7/exe/bundle:26:in `<top (required)>'\r\n\r\n/app/bin/bundle:3:in `load'\r\n/app/bin/bundle:3:in `<main>'\r\nTasks: TOP => db:migrate => environment\r\n(See full trace by running task with --trace)\r\n```\r\n\r\nCan it be **Opbeat** the problem?\r\n\r\n**Ruby version**: 2.4.0\r\n**Heroku stack**: heroku-16\r\n"},"comment":{"url":"https://api.github.com/repos/rails/rails/issues/comments/288183544","html_url":"https://github.com/rails/rails/issues/28508#issuecomment-288183544","issue_url":"https://api.github.com/repos/rails/rails/issues/28508","id":288183544,"user":{"login":"mrkongo","id":20625823,"avatar_url":"https://avatars1.githubusercontent.com/u/20625823?v=3","gravatar_id":"","url":"https://api.github.com/users/mrkongo","html_url":"https://github.com/mrkongo","followers_url":"https://api.github.com/users/mrkongo/followers","following_url":"https://api.github.com/users/mrkongo/following{/other_user}","gists_url":"https://api.github.com/users/mrkongo/gists{/gist_id}","starred_url":"https://api.github.com/users/mrkongo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mrkongo/subscriptions","organizations_url":"https://api.github.com/users/mrkongo/orgs","repos_url":"https://api.github.com/users/mrkongo/repos","events_url":"https://api.github.com/users/mrkongo/events{/privacy}","received_events_url":"https://api.github.com/users/mrkongo/received_events","type":"User","site_admin":false},"created_at":"2017-03-21T18:57:53Z","updated_at":"2017-03-21T18:57:53Z","body":"Maybe this is the problem. Can you explain it better?\r\n\r\nWhat is this code?"}}
{"actor":{"display_login":"mrkongo"}}