GitLab 9.2.0 CE Source: Backups Not Created
Update
- This is still an issue after updating from 9.2.0rc2 to 9.2.0-stable.
Summary
Although the backup output doesn't throw any errors, the actual .tar backup does not get created at all. This has only been a problem for me since updating from 9.1 stable
Steps to reproduce
- From GitLab version 9.2.0-rc2 (source), run the following command: sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production --trace
- Navigate to the backup location specified in your /home/git/gitlab/config/gitlab.yml file (mine was home/git/gitlab/tmp/backups)
- See if your recent backup .tar is there.
What is the current bug behavior?
The /tmp/backups folder is unchanged - there is no new backup. The disk space is also unchanged (seen from Gitlab > Admin > Monitoring page)
What is the expected correct behavior?
Your new .tar backup should be in the backup directory. Disk space should grow.
Relevant logs and/or screenshots
Output of checks
[git@gitlab backups]$ sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=production --trace
(in /home/git/gitlab)
** Invoke gitlab:backup:create (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:backup:create
** Invoke gitlab:backup:db:create (first_time)
** Invoke environment
** Execute gitlab:backup:db:create
Dumping database ...
Dumping PostgreSQL database gitlabhq_production ... [DONE]
done
** Invoke gitlab:backup:repo:create (first_time)
** Invoke environment
** Execute gitlab:backup:repo:create
Dumping repositories ...
[this section was removed for privacy reasons]
done
** Invoke gitlab:backup:uploads:create (first_time)
** Invoke environment
** Execute gitlab:backup:uploads:create
Dumping uploads ...
done
** Invoke gitlab:backup:builds:create (first_time)
** Invoke environment
** Execute gitlab:backup:builds:create
Dumping builds ...
done
** Invoke gitlab:backup:artifacts:create (first_time)
** Invoke environment
** Execute gitlab:backup:artifacts:create
Dumping artifacts ...
done
** Invoke gitlab:backup:pages:create (first_time)
** Invoke environment
** Execute gitlab:backup:pages:create
Dumping pages ...
done
** Invoke gitlab:backup:lfs:create (first_time)
** Invoke environment
** Execute gitlab:backup:lfs:create
Dumping lfs objects ...
done
** Invoke gitlab:backup:registry:create (first_time)
** Invoke environment
** Execute gitlab:backup:registry:create
Dumping container registry images ...
[DISABLED]
Creating backup archive: 1495410839_2017_05_21_9.2.0-rc2_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 ... done. (1 removed)
Results of GitLab environment info
git@gitlab backups]$ sudo -u git -H bundle exec rake gitlab:env:info RAILS_ENV=production --trace
(in /home/git/gitlab)
** Invoke gitlab:env:info (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute gitlab:env:info
System information
System:
Current User: git
Using RVM: no
Ruby Version: 2.3.3p222
Gem Version: 2.5.2
Bundler Version:1.14.6
Rake Version: 10.5.0
Redis Version: 3.2.3
Git Version: 2.9.0
Sidekiq Version:5.0.0
GitLab information
Version: 9.2.0-rc2
Revision: 7c54b4b
Directory: /home/git/gitlab
DB Adapter: postgresql
URL: https://<removed>
HTTP Clone URL: https://<removed>/some-group/some-project.git
SSH Clone URL: git@<removed>:some-group/some-project.git
Using LDAP: yes
Using Omniauth: yes
Omniauth Providers: github
GitLab Shell
Version: 5.0.3
Repository storage paths:
- default: /home/git/repositories
Hooks: /home/git/gitlab-shell/hooks
Git: /usr/local/bin/git
Results of GitLab application Check
Expand for output related to the GitLab application check
[git@gitlab backups]$ sudo -u git -H bundle exec rake gitlab:check RAILS_ENV=production SANITIZE=true (in /home/git/gitlab) Checking GitLab Shell ...
GitLab Shell version >= 5.0.3 ? ... OK (5.0.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: ... 2/2 ... ok 2/3 ... ok 2/4 ... ok 6/10 ... ok 6/11 ... ok 6/25 ... ok 3/26 ... ok 25/28 ... ok 3/29 ... repository is empty 3/31 ... ok 6/37 ... ok 6/38 ... ok 6/39 ... ok 6/40 ... ok 6/41 ... repository is empty 6/42 ... ok 6/43 ... ok 25/44 ... ok 25/45 ... repository is empty Running /home/git/gitlab-shell/bin/check Check GitLab API access: OK Access to /home/git/.ssh/authorized_keys: OK Send ping to redis server: OK gitlab-shell self-check successful
Checking GitLab Shell ... Finished
Checking Sidekiq ...
Running? ... yes Number of Sidekiq processes ... 1
Checking Sidekiq ... Finished
Checking Reply by email ...
IMAP server credentials are correct? ... yes Init.d configured correctly? ... yes MailRoom running? ... yes
Checking Reply by email ... Finished
Checking LDAP ...
Server: ldapmain LDAP authentication... Success LDAP users with access to your GitLab server (only showing the first 100 results)
Checking LDAP ... Finished
Checking GitLab ...
Git configured with autocrlf=input? ... yes Database config exists? ... yes All migrations up? ... yes Database contains orphaned GroupMembers? ... no GitLab config exists? ... yes GitLab config outdated? ... no Log directory writable? ... yes Tmp directory writable? ... yes Uploads directory setup correctly? ... yes Init script exists? ... yes Init script up-to-date? ... yes projects have namespace: ... 2/2 ... yes 2/3 ... yes 2/4 ... yes 6/10 ... yes 6/11 ... yes 6/25 ... yes 3/26 ... yes 25/28 ... yes 3/29 ... yes 3/31 ... yes 6/37 ... yes 6/38 ... yes 6/39 ... yes 6/40 ... yes 6/41 ... yes 6/42 ... yes 6/43 ... yes 25/44 ... yes 25/45 ... yes Redis version >= 2.8.0? ... yes Ruby version >= 2.1.0 ? ... yes (2.3.3) Your git bin path is "/usr/local/bin/git" Git version >= 2.7.3 ? ... yes (2.9.0) Active users:
Checking GitLab ... Finished