无法在ubuntu 12.04上安装Gitlab

无法在ubuntu 12.04上安装Gitlab,git,ubuntu-12.04,gitlab,deb,Git,Ubuntu 12.04,Gitlab,Deb,我已经下载了gitlab deb文件和rpm(外星人转换)。 在所有两种情况下,dpkg均成功完成安装 但是当我尝试开始的时候 gitlab-ctl reconfigure 此行上的进程停止(暂停): * ruby_block[supervise_redis_sleep] action run 我只能用ctrl+c shourtcut在读到这个错误后停止它 ====================================================================

我已经下载了gitlab deb文件和rpm(外星人转换)。 在所有两种情况下,dpkg均成功完成安装

但是当我尝试开始的时候

gitlab-ctl reconfigure
此行上的进程停止(暂停):

* ruby_block[supervise_redis_sleep] action run
我只能用ctrl+c shourtcut在读到这个错误后停止它

================================================================================
Error executing action `run` on resource 'ruby_block[supervise_redis_sleep]'
================================================================================
如果我尝试默认启动

gitlab-ctl start or gitlab-ctl restart
我有这样的信息:

warning: redis: unable to open supervise/ok: file does not exist
我能解决这个问题吗


*PS下载的deb文件是gitlab_6.6.4-omnibus-1.ubuntu.12.04\u amd64.deb*

您是否安装并运行了redis服务器?GitLab要求它工作。我还建议您遵循他们存储库中的官方安装说明:

这(现在)是一个。对于一个示例,请使用以下命令:

sudo cp /opt/gitlab/embedded/cookbooks/runit/files/default/gitlab-runsvdir.conf /etc/init/
sudo initctl start gitlab-runsvdir
sudo gitlab-ctl reconfigure
对于CentOS:

错误: 警告:redis:无法打开/ok:文件不存在

  # gitlab-ctl status
  run: gitaly: (pid 11526) 907s; run: log: (pid 11581) 906s
  run: postgresql: (pid 11810) 881s; run: log: (pid 11834) 880s
  warning: puma: unable to open supervise/ok: file does not exist
  run: redis: (pid 11484) 913s; run: log: (pid 11483) 913s
参考:


我尝试了上述所有答案,但没有一个有用

为了节省时间,您可以重新启动服务器 只需重新启动服务器,它将杀死所有runsv进程:

sudo reboot

为什么redis服务器不会像所有deb文件那样由依赖项自动安装?包装不对吗?通常在debian软件包中,所有依赖项都将由apt/deb“dependens:”标记控制文件来解决……如果deb被链接,我们可以查看一下。它的安装也并不自动意味着服务正在运行。update.rc冻结可能处于活动状态,等等,面临相同的问题。。如果你使用
systemd
而不是
upstart
的话,用
sudo-service-gitlab-runsvdir-start
替换
sudo-initctl-start-gitlab-runsvdir-start
,谢谢!这解决了我在升级gitlab后在Debian机器上遇到的问题。我不得不使用martin-g建议的命令(找不到initctl命令)
# /opt/gitlab/embedded/bin/runsvdir-start &
# gitlab-ctl reconfigure
…………..
Running handlers:
Running handlers complete
Chef Client finished, 5/794 resources updated in 21 seconds
GitLab Reconfigured!
sudo reboot