gpt4 book ai didi

ruby-on-rails - 命令结束时显示 Errno : :EEXIST Message

转载 作者:太空宇宙 更新时间:2023-11-04 05:22:50 24 4
gpt4 key购买 nike

所以我尝试使用以下脚本从源代码备份 git:https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/backup_restore.md (和命令: sudo -u git -H bundle exec rake gitlab:backup:create RAILS_ENV=生产)它在开始时有效,但在转储存储库时停止。我需要解决什么问题?

Dumping repositories ...
rake aborted!
Errno::EEXIST: File exists @ dir_s_mkdir - /home/git/gitlab/tmp/backups/repositories
/home/git/gitlab/lib/backup/repository.rb:136:in `prepare'
/home/git/gitlab/lib/backup/repository.rb:8:in `dump'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:69:in `block (4 levels) in <top (required)>'
/home/git/gitlab/lib/tasks/gitlab/backup.rake:12:in `block (3 levels) in <top (required)>'
Tasks: TOP => gitlab:backup:repo:create
(See full trace by running task with --trace)
root@gitlab-test gitlab/public#

最佳答案

消息很明确!看起来该目录已经存在!

将其删除或移动到临时位置。

移动它

mv /home/git/gitlab/tmp/backups/repositories /home/git/gitlab/tmp/backups/repositories.old

关于ruby-on-rails - 命令结束时显示 Errno : :EEXIST Message,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/38607759/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com