Gitlab CE Import - No space left on device

We are using self hosted Gitlab CE 10.5.2 on Centos 7. We have a really big repo on producrion. almost 40GB. I know this is not OK and we are planing to fix this in two steps. First on is to migrate to lfs and second is to move large binary files out of gitlab repo.

We did a test migration to test repo and than Gitlab export and that works. The second test is to import this export into test environment, to see if this works. But the probleem is that when importing it creates probably temporary files and it makes them on root. We ave 12GB free but it is not enough.

Log file tells me where it stores the files.
2018/05/28 08:25:00 [crit] 946#0: *34 pwrite() “/var/opt/gitlab/nginx/client_body_temp/0000000001” failed (28: No space left on device),

Although du and ls don’t show any files:
du /var/opt/gitlab/nginx/client_body_temp/
0 /var/opt/gitlab/nginx/client_body_temp/

Lfos show deleted but still locked by process files:
lsof | grep deleted
nginx 988 gitlab-www 20u REG 253,1 5479448576 36796282 /var/opt/gitlab/nginx/client_body_temp/0000000001 (deleted)

I tried to change every dir location for nginx in gitlab.rb and it doesn’t help. Is there any way to tell gitlab CE to make whatever it does (tmp files?) on different location? I have a data storage with plenty of disk space available.

BR Denis

Did you find the solution?

I have to dissapoint you. I extended disk space. BR Denis

1 Like