Authored by Toon Claes

Fix projects stuck in hashed migration storage


USE AT YOUR OWN RISK: Although this script has proven to work on our system, there is no guarantee it will also work for you. Adapt it so it does a "dry-run" on one project or one shard, before you run it on all projects.


Some projects failed to save to the database after their repo was migrated to the database. This snippets finds those and updates them.

Related issues

gitlab-com/gl-infra/infrastructure#6022 #56618 gitlab-com/gl-infra/production#661

Snippet was originally created at

fix_bad_projects.rb 866 Bytes
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment