Fork error - NFS
Created by: jmjoly
Hi everyone,
I'm consistently getting the following error when forking a project I have already forked and deleted from my namespace:
Fork Error!
You tried to fork <namespace> / <project> but it failed for the following reason:
– Fork transaction failed.
My Gitlab runs in 2 instances (active and passive), using NFS storage for repositories.
To reproduce the problem, execute the following steps:
- Fork a repository;
- Delete the repository from your namespace;
- Fork again the repository, it should then fail.
Gitlab doesn't succeed in removing all project folders, as some deleted files are still open (NFS protocol creates .nfs[0..9] files pointing to the inodes to be deleted). The fork error pops up when forking again, because the project folder already exists in the user namespace.
This issue also affects local storage! Even though the project folders can be removed, the deleted files are wasting disk space because the inodes are still being used by the application.
The error appears in GitLab 7.0.0, 7.4.3, 7.5.3, 7.6.2 (Gitlab-shell 2.2.0 and 2.4.0). Has anyone any workaround or solution for this issue? Thanks.