V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
leifholic
V2EX  ›  Linux

cenos7 里安装 gitlab 总是安装失败,总是在停止在连接 redis 位置

  •  
  •   leifholic · 2019-06-12 18:55:43 +08:00 · 5189 次点击
    这是一个创建于 1751 天前的主题,其中的信息可能已经有所发展或是发生改变。
    安装停止在这里:


    Recipe: redis::enable
    * runit_service[redis] action enable
    * ruby_block[restart_service] action nothing (skipped due to action :nothing)
    * ruby_block[restart_log_service] action nothing (skipped due to action :nothing)
    * ruby_block[reload_log_service] action nothing (skipped due to action :nothing)
    * directory[/opt/gitlab/sv/redis] action create (up to date)
    * template[/opt/gitlab/sv/redis/run] action create (up to date)
    * directory[/opt/gitlab/sv/redis/log] action create (up to date)
    * directory[/opt/gitlab/sv/redis/log/main] action create (up to date)
    * template[/opt/gitlab/sv/redis/log/run] action create (up to date)
    * template[/var/log/gitlab/redis/config] action create (up to date)
    * directory[/opt/gitlab/sv/redis/env] action create (up to date)
    * ruby_block[Delete unmanaged env files for redis service] action run (skipped due to only_if)
    * template[/opt/gitlab/sv/redis/check] action create (skipped due to only_if)
    * template[/opt/gitlab/sv/redis/finish] action create (skipped due to only_if)
    * directory[/opt/gitlab/sv/redis/control] action create (up to date)
    * link[/opt/gitlab/init/redis] action create (up to date)
    * file[/opt/gitlab/sv/redis/down] action delete (up to date)
    * directory[/opt/gitlab/service] action create (up to date)
    * link[/opt/gitlab/service/redis] action create (up to date)
    * ruby_block[wait for redis service socket] action run
    去 /var/opt/gitlab/redis 目录下 发现没有生成 redis.socket

    每次都停在这里
    第 1 条附言  ·  2019-06-13 17:20:08 +08:00
    这是错误信息

    Traceback (most recent call last):
    7: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `<main>'
    6: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `load'
    5: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/bin/omnibus-ctl:31:in `<top (required)>'
    4: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:746:in `run'
    3: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:516:in `reconfigure'
    2: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:503:in `run_chef'
    1: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:238:in `run_command'
    /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:238:in `system': Interrupt
    第 2 条附言  ·  2019-06-13 19:17:38 +08:00
    来个大佬给个建议。。。呀
    10 条回复    2020-11-28 00:57:41 +08:00
    Takamine
        1
    Takamine  
       2019-06-12 19:53:37 +08:00 via Android
    安装 gitlab 我记得不需要配置 redis 的阿。(。ò ∀ ó。)
    leifholic
        2
    leifholic  
    OP
       2019-06-12 20:02:01 +08:00
    @Takamine 安装 gitlab 会默认安装 redis 的组件的,也可以配成自己,我这里 每次执行 reconfigure 都会停在这个地方
    raysonx
        3
    raysonx  
       2019-06-12 20:31:47 +08:00 via iPad
    我只用 docker 部署过 gitlab,不知道题主执行的命令和参照的文档在哪?
    另外贴的日志不够详细,看不见实际执行的命令和输出
    MuscleOf2016
        4
    MuscleOf2016  
       2019-06-12 20:39:00 +08:00
    直接 docekr 傻瓜式安装。
    Takamine
        5
    Takamine  
       2019-06-12 21:26:10 +08:00 via Android
    @leifholic 原来如此,我装的时候 nginx 还有 pg 什么的都是他自带的。
    你是配置成自己的 redis 了重载配置卡住了吗。(。ò ∀ ó。)
    leifholic
        6
    leifholic  
    OP
       2019-06-13 17:03:40 +08:00
    现在又是其它新问题了,安装成功后,无法执行 gitlab-runsvdir start 然后 就一直卡住了,心痛呀
    leifholic
        7
    leifholic  
    OP
       2019-06-13 19:19:20 +08:00
    @MuscleOf2016 doceker 也是失败。。。重装 centos7.4 然后按照官网的步骤依旧停在这一步,
    报错

    7: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `<main>'
    6: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `load'
    5: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/bin/omnibus-ctl:31:in `<top (required)>'
    4: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:746:in `run'
    3: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:516:in `reconfigure'
    2: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:503:in `run_chef'
    1: from /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:238:in `run_command'
    /opt/gitlab/embedded/lib/ruby/gems/2.5.0/gems/omnibus-ctl-0.6.0/lib/omnibus-ctl.rb:238:in `system': Interrupt
    lixuedong
        8
    lixuedong  
       2019-07-22 18:09:39 +08:00
    我也停在了这里
    * ruby_block[wait for redis service socket] action run
    请问题主怎么解决的 ,从 Google 过来就看到您这个贴了
    leifholic
        9
    leifholic  
    OP
       2019-10-11 18:06:26 +08:00
    @lixuedong 版本不一致导致的。。。不要用最新版的回退几个版本 就解决了
    famiuer
        10
    famiuer  
       2020-11-28 00:57:41 +08:00   ❤️ 1
    可以新开一个 terminal
    sudo /opt/gitlab/embedded/bin/runsvdir-start

    我这样可以继续安装
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   4911 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 09:42 · PVG 17:42 · LAX 02:42 · JFK 05:42
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.