title: Gitlab not starting after upgrade to Ubuntu 18.04
body: <p>I have successfully upgraded Gitlab to 12.1.6 on Ubuntu 16.04 and checked that all was working. After making sure Ubuntu was fully up to date I checked again: Gitlab worked.
  I then used the <code>do-release-upgrade</code> command to update to Ubuntu 18.04. After restart, everything seems to work ok, but Gitlab refuses to start.</p>
  
  <p>I get the following errors:</p>
  
  <pre><code>fail: alertmanager: runsv not running
  fail: gitaly: runsv not running
  fail: gitlab-exporter: runsv not running
  fail: gitlab-workhorse: runsv not running
  fail: grafana: runsv not running
  fail: logrotate: runsv not running
  fail: nginx: runsv not running
  fail: node-exporter: runsv not running
  fail: postgres-exporter: runsv not running
  fail: postgresql: runsv not running
  fail: prometheus: runsv not running
  fail: redis: runsv not running
  fail: redis-exporter: runsv not running
  fail: sidekiq: runsv not running
  fail: unicorn: runsv not running
  </code></pre>
  
  <p>I tried:</p>
  
  <pre><code>gitlab-ctl reconfigure --&gt; runs with success
  </code></pre>
  
  <p>I installed runit with success, rebooted the machine but the errors remain</p>
  
  <p>I found a similar issue here: <a href="https://stackoverflow.com/questions/57357265/gitlab-cannot-start-runsv-is-not-running">on Stackoverflow</a>, followed the instructions (yum --> apt), still no success</p>
  
  <p>and here <a href="https://gitlab.com/gitlab-org/omnibus-gitlab/issues/1504" rel="nofollow noreferrer">on Gitlab</a>. This advised to run</p>
  
  <pre><code>sudo systemctl restart gitlab-runsvdir
  sudo gitlab-ctl restart
  
  </code></pre>
  
  <p>But the first command never finishes</p>
  
  <p>I found this: <a href="https://gitlab.com/gitlab-org/omnibus-gitlab/issues/4578" rel="nofollow noreferrer">on Gitlab</a> which states to run </p>
  
  <pre><code>sudo gitlab-rake gitlab:env:info --trace
  </code></pre>
  
  <p>Output:</p>
  
  <pre><code>** Invoke gitlab:env:info (first_time)
  ** Invoke gitlab_environment (first_time)
  ** Invoke environment (first_time)
  ** Execute environment
  ** Execute gitlab_environment
  ** Execute gitlab:env:info
  
  System information
  System:     Ubuntu 18.04
  Current User:   git
  Using RVM:  no
  Ruby Version:   2.6.3p62
  Gem Version:    2.7.9
  Bundler Version:1.17.3
  Rake Version:   12.3.3
  Redis Version:  3.2.12
  Git Version:    2.24.1
  Sidekiq Version:5.2.7
  Go Version: unknown
  rake aborted!
  PG::ConnectionBad: could not connect to server: No such file or directory
      Is the server running locally and accepting
      connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
  /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `initialize'
  /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `new'
  /opt/gitlab/embedded/lib/ruby/gems/2.6.0/gems/pg-1.1.4/lib/pg.rb:56:in `connect'
  </code></pre>
  
  <p>which suggests that the Postgresql server is not running. I have no idea how to start it. Any ideas?</p>