AskOverflow.Dev

AskOverflow.Dev Logo AskOverflow.Dev Logo

AskOverflow.Dev Navigation

  • 主页
  • 系统&网络
  • Ubuntu
  • Unix
  • DBA
  • Computer
  • Coding
  • LangChain

Mobile menu

Close
  • 主页
  • 系统&网络
    • 最新
    • 热门
    • 标签
  • Ubuntu
    • 最新
    • 热门
    • 标签
  • Unix
    • 最新
    • 标签
  • DBA
    • 最新
    • 标签
  • Computer
    • 最新
    • 标签
  • Coding
    • 最新
    • 标签
主页 / ubuntu / 问题 / 825101
Accepted
Kaz Wolfe
Kaz Wolfe
Asked: 2016-09-15 20:50:39 +0800 CST2016-09-15 20:50:39 +0800 CST 2016-09-15 20:50:39 +0800 CST

无法在 WSL 上安装 Gitlab:Initctl 错误

  • 772

最近,我尝试在我的 WSL 系统上安装 Gitlab 企业版,因为我目前缺乏合适的开发环境。

安装本身进行得相当顺利,但我无法配置 Gitlab ( gitlab-ctl reconfigure),因为它返回此错误:

  * service[create a temporary mailroom service] action nothing (skipped due to action :nothing)
Recipe: runit::upstart
  * cookbook_file[/etc/init/gitlab-runsvdir.conf] action create (up to date)
  * execute[initctl reload-configuration] action run
    [execute] initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused

    ================================================================================
    Error executing action `run` on resource 'execute[initctl reload-configuration]'
    ================================================================================

    Mixlib::ShellOut::ShellCommandFailed
    ------------------------------------
    Expected process to exit with [0], but received '1'
    ---- Begin output of initctl reload-configuration ----
    STDOUT:
    STDERR: initctl: Unable to connect to Upstart: Failed to connect to socket /com/ubuntu/upstart: Connection refused
    ---- End output of initctl reload-configuration ----
    Ran initctl reload-configuration returned 1

试图强制initctl返回 true (使用ln)会导致比它解决的问题更多的问题,所以它真的不是一个选择。

我能做些什么来让 Gitlab 正常工作吗?

14.04
  • 2 2 个回答
  • 1428 Views

2 个回答

  • Voted
  1. Best Answer
    Anwar
    2016-09-15T22:44:28+08:002016-09-15T22:44:28+08:00

    我担心,我没有任何好消息要告诉你。似乎 WSL 仍然不适用于在启动机器时启动作业的东西upstart。Githubinitctl上报告了一个类似的问题。

    引用 那个问题

    WSL 不使用 Upstart 在系统启动时启动进程。如果您与 Upstart 密切合作,这可能会给您带来一些惊喜;该消息向直接使用 initctl、upstart 等的人提供了 WSL 尚未公开该功能的信息。

    此外,他指出 WSL 还真的是一个beta版本,出现这种错误并不意外。

    WSL 是此版本中的测试版软件。一些公司最近发布了真正可以投入生产的“测试版”版本。但 WSL 确实是传统的 beta 软件:它做的很多事情都是正确的;还有很多事情还在进行中,所以不要工作。通常会点击诸如此类的消息,或者遇到尚未完全工作的工具等。

    这个问题仍然悬而未决。我的建议是去评论关于你的问题的那个问题,以便他们尽快解决这个问题。

    • 2
  2. JdeBP
    2016-09-16T05:32:54+08:002016-09-16T05:32:54+08:00

    我能做些什么来让 Gitlab 正常工作吗?

    是的。完全忘记暴发户。您正在使用 upstart 来运行 runit,而这又是监督 gitlab 服务的东西。在适用于 Linux 的 Windows 子系统上,Upstart 是完全不必要的部分。

    让 runit 本身在适用于 Linux 的 Windows 子系统上运行。(你可能需要调整它,因为它甚至在 Ubuntu Linux 上也存在包问题。)然后直接使用它来管理你的 gitlab 服务。

    进一步阅读

    • https://unix.stackexchange.com/questions/284249/
    • https://news.ycombinator.com/item?id=11416376
    • /etc/service (runit) 中的启动脚本不适用于守护进程
    • 1

相关问题

Sidebar

Stats

  • 问题 205573
  • 回答 270741
  • 最佳答案 135370
  • 用户 68524
  • 热门
  • 回答
  • Marko Smith

    如何运行 .sh 脚本?

    • 16 个回答
  • Marko Smith

    如何安装 .tar.gz(或 .tar.bz2)文件?

    • 14 个回答
  • Marko Smith

    如何列出所有已安装的软件包

    • 24 个回答
  • Marko Smith

    无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗?

    • 25 个回答
  • Martin Hope
    Flimm 如何在没有 sudo 的情况下使用 docker? 2014-06-07 00:17:43 +0800 CST
  • Martin Hope
    Ivan 如何列出所有已安装的软件包 2010-12-17 18:08:49 +0800 CST
  • Martin Hope
    La Ode Adam Saputra 无法锁定管理目录 (/var/lib/dpkg/) 是另一个进程在使用它吗? 2010-11-30 18:12:48 +0800 CST
  • Martin Hope
    David Barry 如何从命令行确定目录(文件夹)的总大小? 2010-08-06 10:20:23 +0800 CST
  • Martin Hope
    jfoucher “以下软件包已被保留:”为什么以及如何解决? 2010-08-01 13:59:22 +0800 CST
  • Martin Hope
    David Ashford 如何删除 PPA? 2010-07-30 01:09:42 +0800 CST

热门标签

10.10 10.04 gnome networking server command-line package-management software-recommendation sound xorg

Explore

  • 主页
  • 问题
    • 最新
    • 热门
  • 标签
  • 帮助

Footer

AskOverflow.Dev

关于我们

  • 关于我们
  • 联系我们

Legal Stuff

  • Privacy Policy

Language

  • Pt
  • Server
  • Unix

© 2023 AskOverflow.DEV All Rights Reserve