500 Internal Server Error on Jobs::VersionCheck


(Jonas Stendahl) #1

Hello!

I’ve been trying to get an instance running using the docker image and everything seems to work just fine except for the Jobs::VersionCheck.

The admin dashboard says “A check for updates has not been performed. Ensure sidekiq is running.”, but Sidekiq is without doubt running. If I go to example.com/sidekiq it says that Jobs::VersionCheck fails with the error “RestClient::InternalServerError: 500 Internal Server Error”.

I went through the logs and found the following stacktrace:

exception: 500 Internal Server Error
context: {"retry"=>true, "queue"=>"default", "class"=>"Jobs::VersionCheck", "args"=>[{}], "jid"=>"9fec4a6aca59becd31d3244e", "enqueued_at"=>1401494376.5670652, "error_message"=>"500 Internal Server Error", "error_class"=>"RestClient::InternalServerError", "failed_at"=>1401494378.2052548, "retry_count"=>5, "retried_at"=>1401495107.6883876}
backtrace: /var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rest-client-1.6.7/lib/restclient/abstract_response.rb:48:in `return!'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rest-client-1.6.7/lib/restclient/request.rb:230:in `process_result'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rest-client-1.6.7/lib/restclient/request.rb:178:in `block in transmit'
/usr/local/lib/ruby/2.0.0/net/http.rb:852:in `start'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rest-client-1.6.7/lib/restclient/request.rb:172:in `transmit'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rest-client-1.6.7/lib/restclient/request.rb:64:in `execute'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rest-client-1.6.7/lib/restclient/request.rb:33:in `execute'
/var/www/discourse/vendor/bundle/ruby/2.0.0/gems/rest-client-1.6.7/lib/restclient.rb:68:in `get'
/var/www/discourse/lib/discourse_hub.rb:106:in `singular_action'
/var/www/discourse/lib/discourse_hub.rb:90:in `get'
/var/www/discourse/lib/discourse_hub.rb:83:in `discourse_version_check'
/var/www/discourse/app/jobs/scheduled/version_check.rb:13:in `execute'
/var/www/discourse/app/jobs/base.rb:131:in `block (2 levels) in perform'

Any ideas?

Thanks! :slight_smile:


(Radical Linux) #2

I’m having this same issue with version 0.9.9.6


(Jeff Atwood) #3

I think this is because hub has errors since we upgraded the switch @neil @supermathie.


(Neil Lalonde) #4

It’s fixed now. Technical things happened.


(Jonas Stendahl) #5

Yep, seems to work now. Thanks!


(Sam Saffron) #6