我在CentOS 7服务器上安装了一个新的Gitlab服务器。当我试图将sudo yum install gitlab-ce包更新为8.0.2版本时,我有一个错误:
... truncated ...
gitlab-ce-8.0.2-ce.1.el7.x86_64.rpm | 336 MB 00:00:39
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
gitlab preinstall: Backing up GitLab SQL database (excluding Git repositories, uploads)
rake aborted!
Errno::EACCES: Permission denied @ dir_s_mkdir - /var/opt/gitlab/backups
/opt/gitlab/embedded/service/gitlab-rails/lib/backup/database.rb:15:in `dump'
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/backup.rake:66: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
(See full trace by running task with --trace)
Dumping database ...
gitlab preinstall:
gitlab preinstall: Backup failed! If you want to skip this backup, run the following command and
gitlab preinstall: try again:
gitlab preinstall:
gitlab preinstall: sudo touch /etc/gitlab/skip-auto-migrations
gitlab preinstall:
... truncated ...发布于 2015-09-28 09:16:07
解决办法很简单。您可以创建一个备份dir /var/opt/gitlab/backups,并将正确的所有者和组设置为它。
sudo mkdir /var/opt/gitlab/backups
sudo chown git:root /var/opt/gitlab/backups运行更新之后。
sudo yum install gitlab-ce安装不更新,请参阅文档
https://serverfault.com/questions/725227
复制相似问题