/usr/bin/gitlab-ci-rake error: could not load /opt/gitlab/etc/gitlab-ci/gitlab-ci-rc
After install a clean GitLab 8.2.3 in Ubuntu with
curl https://packages.gitlab.com/gpg.key | sudo apt-key add -
sudo apt-get update
sudo apt-get install -y apt-transport-https
sudo vi /etc/apt/sources.list.d/gitlab_gitlab-ce.list
deb https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main
deb-src https://packages.gitlab.com/gitlab/gitlab-ce/ubuntu/ trusty main
sudo apt-get update
sudo apt-get install gitlab-ce=8.2.3-ce.0
sudo gitlab-ctl reconfigure
When I try to restore from an older machine, executing:
153 sudo gitlab-ci-rake backup:restore BACKUP=1453975782
I get this error:
/usr/bin/gitlab-ci-rake error: could not load /opt/gitlab/etc/gitlab-ci/gitlab-ci-rc
Either you are not allowed to read the file, or it does not exist yet.
You can generate it with: sudo gitlab-ctl reconfigure
Content of the folder:
ls -la /opt/gitlab/etc/
total 56
drwxrwxr-x 4 root root 4096 Jan 28 13:05 .
drwxrwxr-x 9 root root 4096 Jan 28 12:47 ..
drwx------ 3 git root 4096 Jan 28 13:06 gitlab-rails
drwx------ 3 git root 4096 Jan 28 12:48 gitlab-workhorse
-rw-rw-r-- 1 root root 39723 Jan 28 01:15 gitlab.rb.template