Skip to content

Webapp "503 Service Unavailable" often at night

could this be a cronjob interfering with the webapp ?

i get this frequently from chameleon, last time tonight, 3am utc

rake aborted!
RestClient::ServiceUnavailable: 503 Service Unavailable
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/rest_api.rb:94:in `execute'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/rest_api.rb:74:in `head'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/server.rb:58:in `database!'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/connection.rb:38:in `prepare_database'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/connection.rb:26:in `database'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest-1.1.3/lib/couchrest/support/inheritable_attributes.rb:48:in `database'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/connection.rb:26:in `database'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:413:in `use_database'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:418:in `execute'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:61:in `rows'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:81:in `docs'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:74:in `all'
/srv/leap/webapp/vendor/bundle/ruby/1.9.1/gems/couchrest_model-2.0.1/lib/couchrest/model/designs/view.rb:144:in `each'
/srv/leap/webapp/app/models/token.rb:36:in `destroy_all_expired'
/srv/leap/webapp/lib/tasks/leap_web_core_tasks.rake:22:in `block (2 levels) in '
Tasks: TOP => cleanup:tokens
(See full trace by running task with --trace)


(from redmine: created on 2014-10-31, closed on 2015-03-31)