[DRE-maint] Bug#838433: gitlab: Error 500 on some projects

Dmitry Smirnov onlyjob at debian.org
Wed Sep 21 05:13:59 UTC 2016


Package: gitlab
Version: 8.11.3+dfsg1-3
Severity: important
Control: forwarded -1 https://gitlab.com/gitlab-org/gitlab-ce/issues/21564

Upgrade from 8.10.5+dfsg-3 to 8.11.3+dfsg1-3 broke some projects:

~~~~
Processing by ProjectsController#show as HTML
  Parameters: {"namespace_id"=>"team", "id"=>"myproject"}
Completed 500 Internal Server Error in 96ms (ActiveRecord: 8.8ms)

OpenSSL::Cipher::CipherError (bad decrypt):
  app/models/project.rb:489:in `import_url'
  app/models/project.rb:525:in `external_import?'
  app/models/project.rb:517:in `import?'
  app/models/project.rb:533:in `import_in_progress?'
  app/controllers/projects_controller.rb:94:in `show'
  lib/gitlab/request_profiler/middleware.rb:15:in `call'
  lib/gitlab/middleware/go.rb:16:in `call'
~~~~

To resolve the problem I had to run the following command
from gitlab rails console:

~~~~
Project.where.not(import_url: nil).each { |p| p.import_data.destroy if p.import_data }
~~~~

Since manual step is required to upgrade a NEWS file with instructions
would be much appreciated. It would be even better if it is possible
to automate this action.

Thanks.

-- 
Cheers,
 Dmitry Smirnov.

---

Good luck happens when preparedness meets opportunity.

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: This is a digitally signed message part.
URL: <http://lists.alioth.debian.org/pipermail/pkg-ruby-extras-maintainers/attachments/20160921/d4162a3b/attachment.sig>


More information about the Pkg-ruby-extras-maintainers mailing list