当前位置: 首页 > 工具软件 > Ruby/Git > 使用案例 >

GitLab 升级 502 Error executing action `run` 'ruby_block[resource: /var/opt/gitlab/git-data/repositor

任绪
2023-12-01

欢迎访问我的个人博客网站:http://www.yanmin99.com/

GitLab 升级 502问题的解决 Error executing action run on resource ‘ruby_block[directory resource: /var/opt/gitlab/git-data/repositories]’

  • 1、异常信息

    resolving cookbooks for run list: ["gitlab"]
    Synchronizing Cookbooks:
    - package (0.0.0)
    - runit (0.14.2)
    - gitlab (0.0.1)
    Installing Cookbook Gems:
    Compiling Cookbooks...
    Recipe: gitlab::default
    * directory[/etc/gitlab] action create (up to date)
    /sbin/init: Unbekannte Option »--version«
    -.mount                                                                                                 loaded active mounted   /
    Converging 284 resources
    * directory[/etc/gitlab] action create (up to date)
    * directory[Create /var/opt/gitlab] action create (up to date)
    * directory[/opt/gitlab/embedded/etc] action create (up to date)
    * template[/opt/gitlab/embedded/etc/gitconfig] action create (up to date)
    Recipe: gitlab::web-server
    * group[gitlab-www] action create (up to date)
    * user[gitlab-www] action create (up to date)
    Recipe: gitlab::users
    * directory[/var/opt/gitlab] action create (up to date)
    * group[git] action create (up to date)
    * user[git] action create (up to date)
    * template[/var/opt/gitlab/.gitconfig] action create (up to date)
    Recipe: gitlab::gitlab-shell
    * ruby_block[directory resource: /var/opt/gitlab/git-data] action run
    
      ================================================================================
      Error executing action `run` on resource 'ruby_block[directory resource: /var/opt/gitlab/git-data]'
      ================================================================================
    
    Mixlib::ShellOut::ShellCommandFailed
    
  • 2、解决方案

    chmod 2770 /var/opt/gitlab/git-data/repositories
 类似资料: