Repositories directories in archive backup are empty
Summary
The gitlab-rake gitlab:backup:create
create empty directories for repositories.
This is the exact symptoms of #39573 (closed).
Steps to reproduce
Run sudo gitlab-rake gitlab:backup:create
.
What is the current bug behavior?
Backup archive created but repositories
directory contains only namespaces sub-directories without actual repositories and its files (example: empty repositories/ArgentCrusade/packages
directory, without concrete repositories subfolders in it).
What is the expected correct behavior?
Backup archive should be created with all repositories files.
Relevant logs and/or screenshots
# gitlab-rake gitlab:backup:create -v
2019-06-27 09:55:08 +0200 -- Dumping database ...
Dumping PostgreSQL database gitlab ... [DONE]
2019-06-27 09:55:10 +0200 -- done
2019-06-27 09:55:10 +0200 -- Dumping repositories ...
* xxxxx/redmine ... [DONE]
[SKIPPED] Wiki
* xxxxx/yyyyyy ... [DONE]
[SKIPPED] Wiki
* xxxxx/yyyyyy ... [DONE]
[SKIPPED] Wiki
* xxxxx/yyyyyy ... [DONE]
[SKIPPED] Wiki
* xxxxx/redmine ... [DONE]
[SKIPPED] Wiki
* xxxxx/yyyyyy ... [DONE]
[SKIPPED] Wiki
* xxxxx/yyyyyy ... [DONE]
[SKIPPED] Wiki
* xxxxx/yyyyyyyy ... [DONE]
[SKIPPED] Wiki
[...]
2019-06-27 09:56:05 +0200 -- done
2019-06-27 09:56:05 +0200 -- Dumping uploads ...
2019-06-27 09:56:05 +0200 -- done
2019-06-27 09:56:05 +0200 -- Dumping builds ...
2019-06-27 09:56:05 +0200 -- done
2019-06-27 09:56:05 +0200 -- Dumping artifacts ...
2019-06-27 09:56:05 +0200 -- done
2019-06-27 09:56:05 +0200 -- Dumping pages ...
2019-06-27 09:56:05 +0200 -- done
2019-06-27 09:56:05 +0200 -- Dumping lfs objects ...
2019-06-27 09:56:05 +0200 -- done
2019-06-27 09:56:05 +0200 -- Dumping container registry images ...
2019-06-27 09:56:05 +0200 -- [DISABLED]
Creating backup archive: 1561622165_2019_06_27_11.9.0_gitlab_backup.tar ... done
Uploading backup archive to remote storage ... skipped
Deleting tmp directories ... done
done
done
done
done
done
done
done
Deleting old backups ... skipping
The root of the archive :
An example of empty directories :
Output of checks
Results of GitLab environment info
Expand for output related to GitLab environment info
# gitlab-rake gitlab:env:infoSystem information System: Ubuntu 16.04 Current User: git Using RVM: no Ruby Version: 2.5.3p105 Gem Version: 2.7.6 Bundler Version:1.16.6 Rake Version: 12.3.2 Redis Version: 3.2.12 Git Version: 2.18.1 Sidekiq Version:5.2.5 Go Version: unknown
GitLab information Version: 11.9.0 Revision: a47124c Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql URL: https://git.xxxxxx.xx HTTP Clone URL: https://git.xxxxxx.xx/some-group/some-project.git SSH Clone URL: git@git.xxxxxx.xx:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers:
GitLab Shell Version: 8.7.1 Repository storage paths:
- default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
# gitlab-rake gitlab:check SANITIZE=true Checking GitLab subtasks ...Checking GitLab Shell ...
GitLab Shell: ... GitLab Shell version >= 8.7.1 ? ... OK (8.7.1) 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 Gitaly ...
Gitaly: ... default ... OK
Checking Gitaly ... Finished
Checking Sidekiq ...
Sidekiq: ... Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Incoming Email ...
Incoming Email: ... Checking Reply by email ...
IMAP server credentials are correct? ... no Try fixing it: An error occurred: Net::IMAP::NoResponseError: Authentication failed. Check that the information in config/gitlab.yml is correct For more information see: doc/administration/reply_by_email.md Please fix the error above and rerun the checks. Init.d configured correctly? ... skipped MailRoom running? ... skipped
Checking Reply by email ... Finished
Checking Incoming Email ... Finished
Checking LDAP ...
LDAP: ... LDAP is disabled in config/gitlab.yml
Checking LDAP ... Finished
Checking GitLab App ...
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? ... no Try fixing it: sudo chown -R git /var/opt/gitlab/gitlab-rails/uploads sudo find /var/opt/gitlab/gitlab-rails/uploads -type f -exec chmod 0644 {} ; sudo find /var/opt/gitlab/gitlab-rails/uploads -type d -not -path /var/opt/gitlab/gitlab-rails/uploads -exec chmod 0700 {} ; For more information see: doc/install/installation.md in section "GitLab" Please fix the error above and rerun the checks. 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: ... 8/1 ... yes 8/2 ... yes 2/4 ... yes 5/5 ... yes 6/6 ... yes 8/7 ... yes 7/8 ... yes 7/9 ... yes 5/10 ... yes 5/11 ... yes 5/12 ... yes 8/13 ... yes 2/14 ... yes 2/15 ... yes 8/16 ... yes 8/17 ... yes 5/19 ... yes 2/20 ... yes 5/21 ... yes 11/23 ... yes 8/25 ... yes 5/26 ... yes 7/27 ... yes 5/28 ... yes 5/29 ... yes 5/31 ... yes 8/32 ... yes 13/34 ... yes 13/39 ... yes 13/40 ... yes 13/41 ... yes 8/42 ... yes 5/43 ... yes 13/44 ... yes 13/45 ... yes 13/46 ... yes 13/47 ... yes 13/48 ... yes 13/49 ... yes 5/51 ... yes 8/52 ... yes 17/54 ... yes 17/55 ... yes 8/56 ... yes 17/57 ... yes 5/58 ... yes 8/59 ... yes 8/60 ... yes 13/61 ... yes 20/62 ... yes 21/63 ... yes 4/65 ... yes 8/66 ... yes 8/67 ... yes 8/68 ... yes 19/69 ... yes 5/70 ... yes 8/71 ... yes 8/72 ... yes 22/73 ... yes 5/74 ... yes 24/76 ... yes 5/77 ... yes 25/78 ... yes 5/79 ... yes 26/80 ... yes 26/82 ... yes 4/83 ... yes 13/84 ... yes 26/85 ... yes 4/87 ... yes 26/89 ... yes 4/91 ... yes 26/92 ... yes 27/93 ... yes 26/94 ... yes 26/95 ... yes 26/96 ... yes 26/97 ... yes 26/98 ... yes 4/99 ... yes 33/106 ... yes 31/107 ... yes 30/108 ... yes 27/109 ... yes 34/110 ... yes 34/111 ... yes 35/114 ... yes 35/115 ... yes 35/116 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.3.5 ? ... yes (2.5.3) Git version >= 2.18.0 ? ... yes (2.18.1) Git user has default SSH configuration? ... yes Active users: ... 6
Checking GitLab App ... Finished
Checking GitLab subtasks ... Finished
Thanks for your support, David