Project deletion fails with "Can't modify frozen hash" when export data is present

Summary

I try to delete 2 repositories on my Gitlab CE instance. The repositories in /var/opt/gitlab/git-data/repositories are renamed (+deleted) but the project stays in the database. In the logs I find the entry: October 08, 2018 15:30: Deletion failed on [repository] with the following message: Can't modify frozen hash

Steps to reproduce

I am not sure how you can reproduce this issue.

Example Project

not possible

What is the current bug behavior?

Project is not deleted

What is the expected correct behavior?

Project is deleted

Relevant logs and/or screenshots

application.log: October 08, 2018 15:30: Deletion failed on [repository] with the following message: Can't modify frozen hash

Output of checks

Results of GitLab environment info

Expand for output related to GitLab environment info

System information System: Debian 9.5 Current User: git Using RVM: no Ruby Version: 2.4.4p296 Gem Version: 2.7.6 Bundler Version:1.16.2 Rake Version: 12.3.1 Redis Version: 3.2.11 Git Version: 2.18.1 Sidekiq Version:5.1.3 Go Version: unknown

GitLab information Version: 11.3.4 Revision: 30f019d Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: *** HTTP Clone URL: *** SSH Clone URL: *** Using LDAP: yes Using Omniauth: no

GitLab Shell Version: 8.3.3 Repository storage paths:

  • default: /var/opt/gitlab/git-data/repositories Hooks: /opt/gitlab/embedded/service/gitlab-shell/hooks Git: /opt/gitlab/embedded/bin/git

Results of GitLab application Check

Expand for output related to the GitLab application check
GitLab Shell version >= 8.3.3 ? ... OK (8.3.3)
Repo base directory exists?
default... yes
Repo storage directories are symlinks?
default... no
Repo paths owned by git:root, or git:git?
default... yes
Repo paths access is drwxrws---?
default... yes
hooks directories in repos are links: ...
3/2 ... ok
6/3 ... ok
3/4 ... ok
3/5 ... ok
3/6 ... ok
3/7 ... ok
10/10 ... ok
10/11 ... ok
3/12 ... ok
12/13 ... ok
12/14 ... ok
12/15 ... ok
12/16 ... ok
12/17 ... ok
12/19 ... ok
12/20 ... ok
12/21 ... ok
12/22 ... ok
3/23 ... ok
14/24 ... ok
12/25 ... ok
12/26 ... repository is empty
12/27 ... ok
14/28 ... ok
12/29 ... ok
12/30 ... ok
3/31 ... ok
12/32 ... ok
20/33 ... ok
12/34 ... ok
12/35 ... repository is empty
12/36 ... ok
12/38 ... repository is empty
3/39 ... repository is empty
12/40 ... ok
Running /opt/gitlab/embedded/service/gitlab-shell/bin/check
Check GitLab API access: OK
Redis available via internal API: OK

Access to /var/opt/gitlab/.ssh/authorized_keys: OK gitlab-shell self-check successful

Checking GitLab Shell ... Finished

Checking Sidekiq ...

Running? ... yes Number of Sidekiq processes ... 1

Checking Sidekiq ... Finished

Reply by email is disabled in config/gitlab.yml Checking LDAP ...

Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results) -- trunkated --

Checking LDAP ... Finished

Checking GitLab ...

Git configured correctly? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config up to date? ... yes Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory exists? ... yes Uploads directory has correct permissions? ... yes Uploads directory tmp has correct permissions? ... yes Init script exists? ... skipped (omnibus-gitlab has no init script) Init script up-to-date? ... skipped (omnibus-gitlab has no init script) Projects have namespace: ... 3/2 ... yes 6/3 ... yes 3/4 ... yes 3/5 ... yes 3/6 ... yes 3/7 ... yes 10/10 ... yes 10/11 ... yes 3/12 ... yes 12/13 ... yes 12/14 ... yes 12/15 ... yes 12/16 ... yes 12/17 ... yes 12/19 ... yes 12/20 ... yes 12/21 ... yes 12/22 ... yes 3/23 ... yes 14/24 ... yes 12/25 ... yes 12/26 ... yes 12/27 ... yes 14/28 ... yes 12/29 ... yes 12/30 ... yes 3/31 ... yes 12/32 ... yes 20/33 ... yes 12/34 ... yes 12/35 ... yes 12/36 ... yes 12/38 ... yes 3/39 ... yes 12/40 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.4.4) Git version >= 2.9.5 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 22

Checking GitLab ... Finished

Possible fixes

Edited by Stan Hu