gitlab-rake gitlab:backup:create fails
Summary
gitlab-rake gitlab:backup:create aborts
Steps to reproduce
run gitlab-rake gitlab:backup:create
What is the current bug behavior?
tarball is created, but error is backup reported
What is the expected correct behavior?
tarball with all backups as one file created, no error message.
Relevant logs and/or screenshots
Creating backup archive: 1534861737_2018_08_21_11.1.4-ee_gitlab_backup.tar ... tar: repositories/a: file changed as we read it
tar: repositories/b: file changed as we read it
tar: repositories/c: file changed as we read it
tar: repositories/d: file changed as we read it
tar: repositories/e: file changed as we read it
tar: repositories/f: file changed as we read it
tar: repositories/g: file changed as we read it
tar: repositories/h: file changed as we read it
tar: repositories: file changed as we read it
creating archive 1534861737_2018_08_21_11.1.4-ee_gitlab_backup.tar failed
rake aborted!
Backup::Error: Backup failed
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:30:in `block in pack'
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:17:in `chdir'
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/manager.rb:17:in `pack'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:20:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Also happens with STRATEGY=copy
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Proxy: no 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.17.1 Sidekiq Version:5.1.3 Go Version: unknown
GitLab information Version: 11.1.4-ee Revision: d17962f Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: postgresql DB Version: 9.6.3 URL: http://oururl:10087 HTTP Clone URL: http://oururl:10087/some-group/some-project.git SSH Clone URL: ssh://git@oururl:10088/some-group/some-project.git Elasticsearch: no Geo: no Using LDAP: yes Using Omniauth: no
GitLab Shell Version: 7.1.4 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
All executed checks ended with "yes"