2

Recently, I've tried to install Gitlab Enterprise Edition on my WSL system as I lack a proper development environment at the moment.

The install itself goes reasonably well, but I cannot configure Gitlab (gitlab-ctl reconfigure), as it returns this error:

  * 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

Attempting to force initctl to return true (using ln) causes even more problems than it solves, so it's really not an option.

Is there anything I can do to get Gitlab working?

muru
  • 207,228
Kaz Wolfe
  • 34,680

2 Answers2

2

I fear, I don't have any good news for You. It seems WSL still doesn't work with upstart, initctl things which start jobs upon booting machine. There was a similar issue reported on Github.

Quoting aseering from that issue

WSL doesn't use Upstart to start processes at system boot. If you work closely with Upstart, this might cause some surprises for you; the message is informative to people who work directly with initctl, upstart, etc that WSL doesn't yet expose that functionality.

furthermore, He pointed out that WSL is really a beta release yet and this kind of errors aren't unexpected.

WSL is beta software in this release. Some companies of late have had "beta" releases that are really production-ready. But WSL really is traditional beta software: There are many things that it does correctly; there are also many things that are still in progress so don't work yet. It's typical to hit messages such as this one, or to encounter tools that don't completely work yet, etc.

The issue is still open. My suggestion would be go and comment on that issue about your problem, so that they fix the issue soon.

Anwar
  • 77,855
1

Is there anything I can do to get Gitlab working?

Yes. Forget about upstart entirely. You're using upstart to run runit, which in turn is what is supervising the gitlab service(s). Upstart is an entirely unnecessary part of this on the Windows Subsystem for Linux.

Get runit itself running on the Windows Subsystem for Linux. (You might have to tweak it as it has known package problems even on Ubuntu Linux.) Then simply use it directly to manage your gitlab service(s).

Further reading

JdeBP
  • 3,979