Internal Server Error on Upgrade page

Hello,

I just got an error on the upgrade page, is there a documented way to debug / report those cases?

discourse

Thank you for your help !

2 Likes

You should be able to find more information on your /logs page for the error. If you could share what you find here that should help us figure out what’s going on. :+1:

1 Like

There was a recently fixed big relating to the new version numbering system. I can’t find it, but doing a command line upgrade should fix it.

3 Likes

This one?

3 Likes

That one required a fix on our central version check server, so it should be fixed everywhere now. Rebuilding won’t change anything. Also I don’t think that one was affecting the /admin/upgrade path :thinking:

1 Like

That’s what the logs show when I trigger the error:

Screenshot

Message (7 copies reported)

ArgumentError (Malformed version number string < 3.1.0.beta6)
lib/version.rb:44:in `block in find_compatible_resource'
lib/version.rb:44:in `each'
lib/version.rb:44:in `sort_by'
lib/version.rb:44:in `find_compatible_resource'
lib/version.rb:79:in `find_compatible_git_resource'
app/controllers/application_controller.rb:420:in `block in with_resolved_locale'
app/controllers/application_controller.rb:420:in `with_resolved_locale'
lib/middleware/omniauth_bypass_middleware.rb:74:in `call'
lib/content_security_policy/middleware.rb:12:in `call'
lib/middleware/anonymous_cache.rb:369:in `call'
config/initializers/100-quiet_logger.rb:20:in `call'
config/initializers/100-silence_logger.rb:29:in `call'
lib/middleware/enforce_hostname.rb:24:in `call'
lib/middleware/request_tracker.rb:228:in `call'

Backtrace

/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/version.rb:223:in `initialize'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/version.rb:206:in `new'
/usr/local/lib/ruby/site_ruby/3.2.0/rubygems/version.rb:206:in `new'
lib/version.rb:44:in `block in find_compatible_resource'
lib/version.rb:44:in `each'
lib/version.rb:44:in `sort_by'
lib/version.rb:44:in `find_compatible_resource'
lib/version.rb:79:in `find_compatible_git_resource'
plugins/docker_manager/lib/docker_manager/git_repo.rb:153:in `tracking_branch'
plugins/docker_manager/lib/docker_manager/git_repo.rb:100:in `tracking_ref'
4 Likes

Thanks @Campano. We were hoping this docker_manager problem would be handled via this commit, but it looks like we have some more work to do here.

In the meantime, I’d recommend following @pfaffman’s advice of doing a command line rebuild (./launcher rebuild app) - that should get everything up-to-date and working properly

5 Likes

I’ve posted this topic describing the error, and how to recover:

4 Likes

3 posts were split to a new topic: Undefined method `sub!’ when visiting `/admin/upgrade`

Thank you so much @david, that worked for me.

1 Like

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.