Skip to content

Instantly share code, notes, and snippets.

@mark-ellul
Created April 23, 2011 10:39
Show Gist options
  • Save mark-ellul/938536 to your computer and use it in GitHub Desktop.
Save mark-ellul/938536 to your computer and use it in GitHub Desktop.
Heroku to Cloudant Error
2011-04-23T10:27:43+00:00 app[web.5]: Stopping due to timeout...
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `call'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `select'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `rbuf_fill'
2011-04-23T10:27:43+00:00 app[web.8]: Stopping due to timeout...
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `call'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `select'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/monkeypatches.rb:27:in `rbuf_fill'
2011-04-23T10:27:43+00:00 app[web.8]: /usr/ruby1.8.7/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
2011-04-23T10:27:43+00:00 app[web.5]: /usr/ruby1.8.7/lib/ruby/1.8/net/protocol.rb:116:in `readuntil'
2011-04-23T10:27:43+00:00 app[web.8]: /usr/ruby1.8.7/lib/ruby/1.8/net/protocol.rb:126:in `readline'
2011-04-23T10:27:43+00:00 app[web.5]: /usr/ruby1.8.7/lib/ruby/1.8/net/protocol.rb:126:in `readline'
2011-04-23T10:27:43+00:00 app[web.5]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:2026:in `read_status_line'
2011-04-23T10:27:43+00:00 app[web.8]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:2026:in `read_status_line'
2011-04-23T10:27:43+00:00 app[web.5]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:2015:in `read_new'
2011-04-23T10:27:43+00:00 app[web.5]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:1051:in `__request__'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/net_http_ext.rb:17:in `request'
2011-04-23T10:27:43+00:00 app[web.8]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:2015:in `read_new'
2011-04-23T10:27:43+00:00 app[web.8]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:1051:in `__request__'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/net_http_ext.rb:17:in `request'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:167:in `transmit'
2011-04-23T10:27:43+00:00 app[web.8]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:543:in `start'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:167:in `transmit'
2011-04-23T10:27:43+00:00 app[web.5]: /usr/ruby1.8.7/lib/ruby/1.8/net/http.rb:543:in `start'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:166:in `transmit'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient.rb:76:in `put'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/rest_api.rb:13:in `put'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/server.rb:69:in `create_db'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:60:in `execute'
2011-04-23T10:27:43+00:00 app[web.5]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/server.rb:58:in `database!'
2011-04-23T10:27:43+00:00 app[web.5]: config.ru:10
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient/request.rb:31:in `execute'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/rest-client-1.6.1/lib/restclient.rb:76:in `put'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/rest_api.rb:13:in `put'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/server.rb:69:in `create_db'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/server.rb:58:in `database!'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/server.rb:25:in `define_available_database'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/couchrest-5df5a04164bc/lib/couchrest/server.rb:39:in `default_database='
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/bundler/gems/RCM-Engine-15a93a766d84/config/initializers/couchdb.rb:45
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.7.rc1/lib/active_support/dependencies.rb:235:in `load'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.7.rc1/lib/active_support/dependencies.rb:235:in `load'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.7.rc1/lib/active_support/dependencies.rb:227:in `load_dependency'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/activesupport-3.0.7.rc1/lib/active_support/dependencies.rb:235:in `load'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7.rc1/lib/rails/engine.rb:201
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7.rc1/lib/rails/engine.rb:200:in `each'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7.rc1/lib/rails/engine.rb:200
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7.rc1/lib/rails/initializable.rb:25:in `instance_exec'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7.rc1/lib/rails/initializable.rb:25:in `run'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7.rc1/lib/rails/initializable.rb:50:in `run_initializers'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7.rc1/lib/rails/initializable.rb:49:in `each'
2011-04-23T10:27:43+00:00 app[web.8]: /app/.bundle/gems/ruby/1.8/gems/railties-3.0.7.rc1/lib/rails/initializable.rb:49:in `run_initializers'
@mark-ellul
Copy link
Author

Hi Florian,

Cloudant had some issues a while back with their service of creating Databases from code. So I imagine that explains that solution.

For better or worse I am using couchrest_model, so the fix was a little more complex as I had to customize the gem.

Anyway thanks for getting back, sorry I didn't get a chance to answer you before you found the solution.

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