gitlab-ci backups conflict with gitlab-rails?
gitlab preinstall: Backing up GitLab SQL database (excluding Git repositories, uploads)
Dumping database ...
rake aborted!
Errno::EACCES: Permission denied @ dir_s_mkdir - /var/opt/gitlab/backups/db
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/database.rb:10:in `initialize'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:64:in `new'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:64:in `block (4 levels) in <top (required)>'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:11:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:backup:db:create
<snip>
jacobvosmaer@ubuntu1404-test:~$ sudo ls -al ~git/backups
total 88
drwx------ 2 gitlab-ci root 4096 May 18 11:55 .
drwxr-xr-x 13 root root 4096 May 18 11:59 ..
-rw------- 1 git git 81920 May 18 11:55 1431942941_gitlab_backup.tar
I suspect this problem is more likely to happen the other way around, with git
owning /var/opt/gitlab/backups
getting in the way of gitlab-ci-rake backup:create
.
cc @marin