title: Gitlab 500 Error: PG::ConnectionBad
body: <p>I'm running Gitlab-CE v8.11.3-ce.1</p>
  
  <p>My house lost power, and so that abruptly shut down my Gitlab server. I power it back on, and it gives me a 500 error.
  When I do <code>sudo gitlab-ctl reconfigure</code>, I'm getting this in the log:</p>
  
  <pre><code>[execute] psql: could not connect to server: Connection refused
              Is the server running locally and accepting
              connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
  </code></pre>
  
  <p>Here's my database section of <code>gitlab.rb</code>:</p>
  
  <pre><code># gitlab_rails['db_adapter'] = "postgresql"
  # gitlab_rails['db_encoding'] = "unicode"
  # gitlab_rails['db_collation'] = nil
  # gitlab_rails['db_database'] = "gitlabhq_production"
  # gitlab_rails['db_pool'] = 10
  # gitlab_rails['db_username'] = "gitlab"
  # gitlab_rails['db_password'] = nil
  # gitlab_rails['db_host'] = nil
  # gitlab_rails['db_port'] = 5432
  # gitlab_rails['db_socket'] = nil
  # gitlab_rails['db_sslmode'] = nil
  # gitlab_rails['db_sslrootcert'] = nil
  </code></pre>
  
  <p>I didn't change any host or anything. Help.</p>