技术解析

cenos7 里安装 gitlab 总是安装失败,总是在停止在连接 redis 位置
0
2021-06-19 00:56:45
idczone
安装停止在这里:


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

每次都停在这里
安装 gitlab 我记得不需要配置 redis 的阿。(。ò ∀ ó。)

安装 gitlab 会默认安装 redis 的组件的,也可以配成自己,我这里 每次执行 reconfigure 都会停在这个地方

我只用 docker 部署过 gitlab,不知道题主执行的命令和参照的文档在哪?
另外贴的日志不够详细,看不见实际执行的命令和输出

直接 docekr 傻瓜式安装。

原来如此,我装的时候 nginx 还有 pg 什么的都是他自带的。
你是配置成自己的 redis 了重载配置卡住了吗。(。ò ∀ ó。)

现在又是其它新问题了,安装成功后,无法执行 gitlab-runsvdir start 然后 就一直卡住了,心痛呀

doceker 也是失败。。。重装 centos7.4 然后按照官网的步骤依旧停在这一步,
报错
7: from /opt/gitlab/embedded/bin/omnibus-ctl:23:in `
'
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 `'
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

我也停在了这里
* ruby_block[wait for redis service socket] action run
请问题主怎么解决的 ,从 Google 过来就看到您这个贴了

版本不一致导致的。。。不要用最新版的回退几个版本 就解决了

可以新开一个 terminal
sudo /opt/gitlab/embedded/bin/runsvdir-start
我这样可以继续安装

数据地带为您的网站提供全球顶级IDC资源
在线咨询
专属客服