Skip to content

Instantly share code, notes, and snippets.

@lgs
Created June 3, 2012 20:16
Show Gist options
  • Save lgs/2864870 to your computer and use it in GitHub Desktop.
Save lgs/2864870 to your computer and use it in GitHub Desktop.
heroku run:detached rake environment tire:import CLASS=Event FORCE=true
lsoave@ubuntu:~/rails/github/gitwatcher$ heroku run:detached rake environment tire:import CLASS=Event FORCE=true
Running rake environment tire:import CLASS=Event FORCE=true... up, run.2
Use 'heroku logs -p run.2' to view the log output.
lsoave@ubuntu:~/rails/github/gitwatcher$
2012-06-03T20:13:08+00:00 heroku[run.2]: State changed from created to starting
2012-06-03T20:13:13+00:00 heroku[run.2]: Starting process with command `bundle exec rake environment tire:import CLASS=Event FORCE=true`
2012-06-03T20:13:14+00:00 heroku[run.2]: State changed from starting to up
2012-06-03T20:13:25+00:00 app[run.2]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:19)
2012-06-03T20:13:25+00:00 app[run.2]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:19)
2012-06-03T20:13:27+00:00 app[run.2]: ** [NewRelic][06/03/12 20:13:27 +0000 93a3821e-15d2-4bc7-b6d5-55e7fdda8bfa (1)] INFO : Dispatcher: thin
2012-06-03T20:13:27+00:00 app[run.2]: ** [NewRelic][06/03/12 20:13:27 +0000 93a3821e-15d2-4bc7-b6d5-55e7fdda8bfa (1)] INFO : Application: gitwatcher
2012-06-03T20:13:27+00:00 app[run.2]: ** [NewRelic][06/03/12 20:13:27 +0000 93a3821e-15d2-4bc7-b6d5-55e7fdda8bfa (1)] INFO : New Relic Ruby Agent 3.3.3 Initialized: pid = 1
2012-06-03T20:13:31+00:00 app[run.2]: rake aborted!
2012-06-03T20:13:31+00:00 app[run.2]: uninitialized constant Event
2012-06-03T20:13:31+00:00 app[run.2]:
2012-06-03T20:13:31+00:00 app[run.2]: Tasks: TOP => tire:import
2012-06-03T20:13:31+00:00 app[run.2]: (See full trace by running task with --trace)
2012-06-03T20:13:31+00:00 app[run.2]: MONGODB [DEBUG] Logging level is currently :debug which could negatively impact client-side performance. You should set your logging level no lower than :info in production.
2012-06-03T20:13:31+00:00 app[run.2]: MONGODB (1ms) admin['$cmd'].find({:ismaster=>1}).limit(-1)
2012-06-03T20:13:31+00:00 app[run.2]: MONGODB (1ms) heroku_app1707530['$cmd'].find({:getnonce=>1}).limit(-1)
2012-06-03T20:13:31+00:00 app[run.2]: MONGODB (1ms) heroku_app1707530['$cmd'].find({"authenticate"=>1, "user"=>"heroku_app1707530", "nonce"=>"56a88583a74e1ea7", "key"=>"9e4a5be3d7ecc5afb7453745954c74b8"}).limit(-1)
2012-06-03T20:13:31+00:00 app[run.2]: MONGODB (1ms) heroku_app1707530['$cmd'].find({:getnonce=>1}).limit(-1)
2012-06-03T20:13:31+00:00 app[run.2]: MONGODB (1ms) heroku_app1707530['$cmd'].find({"authenticate"=>1, "user"=>"heroku_app1707530", "nonce"=>"3e7869d9ff27d7ec", "key"=>"1f5f6fd52c8584dd2bd9b04b264d62dd"}).limit(-1)
2012-06-03T20:13:32+00:00 heroku[run.2]: State changed from up to complete
2012-06-03T20:13:32+00:00 heroku[run.2]: Process exited with status 1
@lgs
Copy link
Author

lgs commented Jun 3, 2012

2012-06-03T21:35:18+00:00 heroku[run.1]: State changed from created to starting
2012-06-03T21:35:23+00:00 heroku[run.1]: Starting process with command bundle exec rake environment tire:import CLASS=Category FORCE=true
2012-06-03T21:35:23+00:00 heroku[run.1]: State changed from starting to up
2012-06-03T21:35:33+00:00 app[run.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:19)
2012-06-03T21:35:33+00:00 app[run.1]: DEPRECATION WARNING: You have Rails 2.3-style plugins in vendor/plugins! Support for these plugins will be removed in Rails 4.0. Move them out and bundle them in your Gemfile, or fold them in to your app as lib/myplugin/* and config/initializers/myplugin.rb. See the release notes for more on this: http://weblog.rubyonrails.org/2012/1/4/rails-3-2-0-rc2-has-been-released. (called from <top (required)> at /app/Rakefile:19)
2012-06-03T21:35:37+00:00 app[run.1]: ** [NewRelic][06/03/12 21:35:37 +0000 195c1a6b-ee6a-4214-81fc-b3aa3468d19a (1)] INFO : Dispatcher: thin
2012-06-03T21:35:37+00:00 app[run.1]: ** [NewRelic][06/03/12 21:35:37 +0000 195c1a6b-ee6a-4214-81fc-b3aa3468d19a (1)] INFO : Application: gitwatcher
2012-06-03T21:35:37+00:00 app[run.1]: ** [NewRelic][06/03/12 21:35:37 +0000 195c1a6b-ee6a-4214-81fc-b3aa3468d19a (1)] INFO : New Relic Ruby Agent 3.3.3 Initialized: pid = 1
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB [DEBUG] Logging level is currently :debug which could negatively impact client-side performance. You should set your logging level no lower than :info in production.
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB (2ms) admin['$cmd'].find({:ismaster=>1}).limit(-1)
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB (3ms) heroku_app1707530['$cmd'].find({:getnonce=>1}).limit(-1)
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB (1ms) heroku_app1707530['$cmd'].find({"authenticate"=>1, "user"=>"heroku_app1707530", "nonce"=>"ea6f5cd559e6c8c1", "key"=>"4742069dc7e22fb932b81a6813f85af3"}).limit(-1)
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB (1ms) heroku_app1707530['$cmd'].find({:getnonce=>1}).limit(-1)
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB (1ms) heroku_app1707530['$cmd'].find({"authenticate"=>1, "user"=>"heroku_app1707530", "nonce"=>"9099b65b53fee59c", "key"=>"d169e795b21d48248557e036a7e44b44"}).limit(-1)
2012-06-03T21:35:41+00:00 app[run.1]: [IMPORT] Deleting index 'asjgayz4s827lhj8u3r7'
2012-06-03T21:35:41+00:00 app[run.1]: [IMPORT] Starting import for the 'Category' class
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB (1ms) heroku_app1707530['system.namespaces'].find({})
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB (1ms) heroku_app1707530['$cmd'].find({"count"=>"categories", "query"=>{}, "fields"=>nil}).limit(-1)
2012-06-03T21:35:41+00:00 app[run.1]: --------------------------------------------------------------------------------
2012-06-03T21:35:41+00:00 app[run.1]: MONGODB (1ms) heroku_app1707530['categories'].find({}).limit(1000)
19/19 | 100% MONGODB (1ms) heroku_app1707530['categories'].find({}).skip(1000).limit(1000)################
2012-06-03T21:35:41+00:00 app[run.1]:
2012-06-03T21:35:41+00:00 app[run.1]: ================================================================================
2012-06-03T21:35:41+00:00 app[run.1]: Import finished in 0.08086 seconds
2012-06-03T21:35:42+00:00 heroku[run.1]: Process exited with status 0
2012-06-03T21:35:42+00:00 heroku[run.1]: State changed from up to complete

@lgs
Copy link
Author

lgs commented Jun 3, 2012

500 Internal Server Error after ElasticSearch query, which logs the following on Heroku:

2012-06-03T21:56:37+00:00 heroku[router]: GET gitwatcher.com/categories dyno=web.1 queue=0 wait=0ms service=10295ms status=200 bytes=61422
2012-06-03T21:56:37+00:00 heroku[nginx]: 93.34.112.205 - - [03/Jun/2012:21:56:37 +0000] "GET /categories HTTP/1.1" 200 12068 "http://gitwatcher.com/" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0" gitwatcher.com
2012-06-03T21:56:37+00:00 heroku[router]: GET gitwatcher.com/assets/application-02cfedf8524ef0a3da8856f66a3c61df.css dyno=web.1 queue=0 wait=0ms service=127ms status=200 bytes=178764
2012-06-03T21:56:37+00:00 heroku[router]: GET gitwatcher.com/assets/application-4083955e163027c3e232b6edc9cf4dd1.js dyno=web.1 queue=0 wait=0ms service=88ms status=200 bytes=204559
2012-06-03T21:56:37+00:00 heroku[nginx]: 93.34.112.205 - - [03/Jun/2012:21:56:37 +0000] "GET /assets/application-02cfedf8524ef0a3da8856f66a3c61df.css HTTP/1.1" 200 21098 "http://gitwatcher.com/categories" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0" gitwatcher.com
2012-06-03T21:56:37+00:00 heroku[nginx]: 93.34.112.205 - - [03/Jun/2012:21:56:37 +0000] "GET /assets/application-4083955e163027c3e232b6edc9cf4dd1.js HTTP/1.1" 200 64790 "http://gitwatcher.com/categories" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0" gitwatcher.com
2012-06-03T21:56:50+00:00 app[web.1]: MONGODB (263ms) heroku_app1707530['users'].find({:_id=>BSON::ObjectId('4f82c1127c0c220001000001')}).limit(-1).sort([[:_id, :asc]])
2012-06-03T21:56:51+00:00 heroku[router]: GET gitwatcher.com/categories?utf8=%E2%9C%93&query=Web+Frameworks dyno=web.1 queue=0 wait=0ms service=303ms status=500 bytes=728
2012-06-03T21:56:51+00:00 heroku[nginx]: 93.34.112.205 - - [03/Jun/2012:21:56:51 +0000] "GET /categories?utf8=%E2%9C%93&query=Web+Frameworks HTTP/1.1" 500 728 "http://gitwatcher.com/categories" "Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:12.0) Gecko/20100101 Firefox/12.0" gitwatcher.com

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment