{"action":"opened","issue":{"url":"https://api.github.com/repos/shts/nogi_tweet_observer/issues/1","labels_url":"https://api.github.com/repos/shts/nogi_tweet_observer/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/shts/nogi_tweet_observer/issues/1/comments","events_url":"https://api.github.com/repos/shts/nogi_tweet_observer/issues/1/events","html_url":"https://github.com/shts/nogi_tweet_observer/issues/1","id":58456371,"number":1,"title":"ローカルでは動作するがheroku上で動作しない","user":{"login":"shts","id":7928836,"avatar_url":"https://avatars.githubusercontent.com/u/7928836?v=3","gravatar_id":"","url":"https://api.github.com/users/shts","html_url":"https://github.com/shts","followers_url":"https://api.github.com/users/shts/followers","following_url":"https://api.github.com/users/shts/following{/other_user}","gists_url":"https://api.github.com/users/shts/gists{/gist_id}","starred_url":"https://api.github.com/users/shts/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shts/subscriptions","organizations_url":"https://api.github.com/users/shts/orgs","repos_url":"https://api.github.com/users/shts/repos","events_url":"https://api.github.com/users/shts/events{/privacy}","received_events_url":"https://api.github.com/users/shts/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-02-21T11:35:58Z","updated_at":"2015-02-21T11:35:58Z","closed_at":null,"body":"ローカルで動作確認後、Herokuにデプロイしたが正しく動作しない。`heroku logs`コマンドでログを見たところ下記ログが出力されていた。\r\n\r\n```\r\n2015-02-21T09:50:47.443193+00:00 heroku[observer.1]: State changed from crashed to starting\r\n2015-02-21T09:50:47.425787+00:00 heroku[observer.1]: Process exited with status 1\r\n2015-02-21T09:50:49.806923+00:00 heroku[observer.1]: Starting process with command `bundle exec ruby observer.rb`\r\n2015-02-21T09:50:50.414194+00:00 heroku[observer.1]: State changed from starting to up\r\n2015-02-21T10:01:22.966632+00:00 app[observer.1]: /app/vendor/bundle/ruby/2.0.0/gems/tweetstream-2.6.1/lib/tweetstream/client.rb:449:in `block in connect': Failed to reconnect after 6 tries. (TweetStream::ReconnectError)\r\n2015-02-21T10:01:22.966647+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `call'\r\n2015-02-21T10:01:22.966648+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `invoke_callback'\r\n2015-02-21T10:01:22.966650+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:269:in `rescue in schedule_reconnect'\r\n2015-02-21T10:01:22.966657+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:1457:in `event_callback'\r\n2015-02-21T10:01:22.966652+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:264:in `schedule_reconnect'\r\n2015-02-21T10:01:22.966656+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:92:in `unbind'\r\n2015-02-21T10:01:22.966660+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'\r\n2015-02-21T10:01:22.966658+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'\r\n2015-02-21T10:01:22.966661+00:00 app[observer.1]: \tfrom observer.rb:42:in `<main>'\r\n2015-02-21T10:01:23.652772+00:00 heroku[observer.1]: State changed from crashed to starting\r\n2015-02-21T10:01:23.651780+00:00 heroku[observer.1]: State changed from up to crashed\r\n2015-02-21T10:01:23.640472+00:00 heroku[observer.1]: Process exited with status 1\r\n2015-02-21T10:01:27.389154+00:00 heroku[observer.1]: Starting process with command `bundle exec ruby observer.rb`\r\n2015-02-21T10:01:27.935639+00:00 heroku[observer.1]: State changed from starting to up\r\n2015-02-21T10:12:00.999318+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'\r\n2015-02-21T10:12:00.999293+00:00 app[observer.1]: /app/vendor/bundle/ruby/2.0.0/gems/tweetstream-2.6.1/lib/tweetstream/client.rb:449:in `block in connect': Failed to reconnect after 6 tries. (TweetStream::ReconnectError)\r\n2015-02-21T10:12:00.999308+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `invoke_callback'\r\n2015-02-21T10:12:00.999310+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:269:in `rescue in schedule_reconnect'\r\n2015-02-21T10:12:00.999307+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `call'\r\n2015-02-21T10:12:00.999315+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:92:in `unbind'\r\n2015-02-21T10:12:00.999316+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:1457:in `event_callback'\r\n2015-02-21T10:12:00.999321+00:00 app[observer.1]: \tfrom observer.rb:42:in `<main>'\r\n2015-02-21T10:12:00.999311+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:264:in `schedule_reconnect'\r\n2015-02-21T10:12:00.999319+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'\r\n2015-02-21T10:12:01.772823+00:00 heroku[observer.1]: State changed from up to crashed\r\n2015-02-21T10:12:01.759937+00:00 heroku[observer.1]: Process exited with status 1\r\n2015-02-21T10:24:04.082886+00:00 heroku[observer.1]: State changed from crashed to starting\r\n2015-02-21T10:24:06.460188+00:00 heroku[observer.1]: Starting process with command `bundle exec ruby observer.rb`\r\n2015-02-21T10:24:07.097034+00:00 heroku[observer.1]: State changed from starting to up\r\n2015-02-21T10:34:39.290915+00:00 app[observer.1]: /app/vendor/bundle/ruby/2.0.0/gems/tweetstream-2.6.1/lib/tweetstream/client.rb:449:in `block in connect': Failed to reconnect after 6 tries. (TweetStream::ReconnectError)\r\n2015-02-21T10:34:39.290932+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `invoke_callback'\r\n2015-02-21T10:34:39.290930+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `call'\r\n2015-02-21T10:34:39.290934+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:269:in `rescue in schedule_reconnect'\r\n2015-02-21T10:34:39.290939+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:264:in `schedule_reconnect'\r\n2015-02-21T10:34:39.290941+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:92:in `unbind'\r\n2015-02-21T10:34:39.290942+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:1457:in `event_callback'\r\n2015-02-21T10:34:39.290944+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'\r\n2015-02-21T10:34:39.290945+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'\r\n2015-02-21T10:34:39.290947+00:00 app[observer.1]: \tfrom observer.rb:42:in `<main>'\r\n2015-02-21T10:34:39.989332+00:00 heroku[observer.1]: Process exited with status 1\r\n2015-02-21T10:34:40.001200+00:00 heroku[observer.1]: State changed from up to crashed\r\n2015-02-21T10:34:40.002201+00:00 heroku[observer.1]: State changed from crashed to starting\r\n2015-02-21T10:34:41.894085+00:00 heroku[observer.1]: Starting process with command `bundle exec ruby observer.rb`\r\n2015-02-21T10:34:42.500343+00:00 heroku[observer.1]: State changed from starting to up\r\n2015-02-21T10:45:14.688326+00:00 app[observer.1]: /app/vendor/bundle/ruby/2.0.0/gems/tweetstream-2.6.1/lib/tweetstream/client.rb:449:in `block in connect': Failed to reconnect after 6 tries. (TweetStream::ReconnectError)\r\n2015-02-21T10:45:14.688343+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `call'\r\n2015-02-21T10:45:14.688345+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `invoke_callback'\r\n2015-02-21T10:45:14.688347+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:269:in `rescue in schedule_reconnect'\r\n2015-02-21T10:45:14.688349+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:264:in `schedule_reconnect'\r\n2015-02-21T10:45:14.688354+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:92:in `unbind'\r\n2015-02-21T10:45:14.688355+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:1457:in `event_callback'\r\n2015-02-21T10:45:14.688357+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'\r\n2015-02-21T10:45:14.688359+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'\r\n2015-02-21T10:45:14.688360+00:00 app[observer.1]: \tfrom observer.rb:42:in `<main>'\r\n2015-02-21T10:45:15.418558+00:00 heroku[observer.1]: Process exited with status 1\r\n2015-02-21T10:45:15.437312+00:00 heroku[observer.1]: State changed from up to crashed\r\n2015-02-21T10:48:21.877029+00:00 heroku[observer.1]: State changed from crashed to starting\r\n2015-02-21T10:48:23.621564+00:00 heroku[observer.1]: Starting process with command `bundle exec ruby observer.rb`\r\n2015-02-21T10:48:24.181573+00:00 heroku[observer.1]: State changed from starting to up\r\n2015-02-21T10:58:55.922993+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `call'\r\n2015-02-21T10:58:55.922978+00:00 app[observer.1]: /app/vendor/bundle/ruby/2.0.0/gems/tweetstream-2.6.1/lib/tweetstream/client.rb:449:in `block in connect': Failed to reconnect after 6 tries. (TweetStream::ReconnectError)\r\n2015-02-21T10:58:55.922995+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `invoke_callback'\r\n2015-02-21T10:58:55.922998+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:264:in `schedule_reconnect'\r\n2015-02-21T10:58:55.923003+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:92:in `unbind'\r\n2015-02-21T10:58:55.922997+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:269:in `rescue in schedule_reconnect'\r\n2015-02-21T10:58:55.923005+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:1457:in `event_callback'\r\n2015-02-21T10:58:55.923006+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'\r\n2015-02-21T10:58:55.923008+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'\r\n2015-02-21T10:58:55.923010+00:00 app[observer.1]: \tfrom observer.rb:42:in `<main>'\r\n2015-02-21T10:58:56.570987+00:00 heroku[observer.1]: Process exited with status 1\r\n2015-02-21T10:58:56.585390+00:00 heroku[observer.1]: State changed from up to crashed\r\n2015-02-21T11:00:49.567647+00:00 heroku[api]: Starting process with command `ruby -e \"puts RUBY_VERSION\"` by shts.dev@gmail.com\r\n2015-02-21T11:00:52.345047+00:00 heroku[run.7642]: Awaiting client\r\n2015-02-21T11:00:52.385153+00:00 heroku[run.7642]: Starting process with command `ruby -e \"puts RUBY_VERSION\"`\r\n2015-02-21T11:00:52.671760+00:00 heroku[run.7642]: State changed from starting to up\r\n2015-02-21T11:00:54.670456+00:00 heroku[run.7642]: Process exited with status 0\r\n2015-02-21T11:00:54.681451+00:00 heroku[run.7642]: State changed from up to complete\r\n2015-02-21T11:04:46.496218+00:00 heroku[api]: Scale to observer=1 by shts.dev@gmail.com\r\n2015-02-21T11:07:57.399491+00:00 heroku[observer.1]: State changed from crashed to starting\r\n2015-02-21T11:07:59.317720+00:00 heroku[observer.1]: Starting process with command `bundle exec ruby observer.rb`\r\n2015-02-21T11:07:59.884989+00:00 heroku[observer.1]: State changed from starting to up\r\n2015-02-21T11:18:32.321294+00:00 app[observer.1]: /app/vendor/bundle/ruby/2.0.0/gems/tweetstream-2.6.1/lib/tweetstream/client.rb:449:in `block in connect': Failed to reconnect after 6 tries. (TweetStream::ReconnectError)\r\n2015-02-21T11:18:32.321310+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `call'\r\n2015-02-21T11:18:32.321312+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:297:in `invoke_callback'\r\n2015-02-21T11:18:32.321316+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:269:in `rescue in schedule_reconnect'\r\n2015-02-21T11:18:32.321318+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:264:in `schedule_reconnect'\r\n2015-02-21T11:18:32.321320+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/em-twitter-0.3.5/lib/em-twitter/connection.rb:92:in `unbind'\r\n2015-02-21T11:18:32.321322+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:1457:in `event_callback'\r\n2015-02-21T11:18:32.321323+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run_machine'\r\n2015-02-21T11:18:32.321325+00:00 app[observer.1]: \tfrom /app/vendor/bundle/ruby/2.0.0/gems/eventmachine-1.0.7/lib/eventmachine.rb:187:in `run'\r\n2015-02-21T11:18:32.321327+00:00 app[observer.1]: \tfrom observer.rb:42:in `<main>'\r\n2015-02-21T11:18:33.051890+00:00 heroku[observer.1]: State changed from up to crashed\r\n2015-02-21T11:18:33.035858+00:00 heroku[observer.1]: Process exited with status 1\r\n2015-02-21T11:27:26.681867+00:00 heroku[observer.1]: State changed from crashed to starting\r\n2015-02-21T11:27:28.792308+00:00 heroku[observer.1]: Starting process with command `bundle exec ruby observer.rb`\r\n2015-02-21T11:27:29.442962+00:00 heroku[observer.1]: State changed from starting to up\r\n\r\n```\r\n\r\n"}}