Skip to content

GitLab EE Upload a license file with 500 error

Gitlab-EE Upload a license file with 500 error

GitLab version: 14.6.7-ee

We have tested to upgrade a gitlab instance from 14.6.7 CE to 14.6.7 EE and tried to active the subscription with a FREE Trial License Key. But when goto the Admin pages, Subscription, and then Upload a license file, we got a 500 error.

Image1

And on server side, we have log like:

ee/app/models/license.rb:411:in `method_missing'
ee/app/models/license.rb:394:in `license'
  … (repeat N times)
ee/app/models/license.rb:411:in `method_missing'
ee/app/models/license.rb:394:in `license'
ee/app/models/license.rb:421:in `respond_to_missing?'
ee/app/controllers/admin/licenses_controller.rb:14:in `new'

In our test gitlab instance, there are already many users and groups/projects, it seems that some controls are not passed and throw a 500 error.

There are some conditions and limits when using this EE subcription license keys.

Expected behavior

  • No 500 error pages, but add some the clear error messages to tell user the KO raison.
  • Document these conditions somewhere, for example: the Free trial License Key is only available for GitLab instance which has less than 5 active users.

Steps to reproduce

  • create a gitlab 14.6.7-ce instance
  • Add more users and projects
  • upgrade it to gitlab ee the same version
  • the button "Upload a license file" will give a 500 error page