Skip to content

Update documentation to check postgre status

Silvester Wainaina requested to merge docs-check-postgre-status into master

What does this MR do?

While installing from source, executing the step below without first ensuring that the postgre service is started will result in the error below

  1. Create a database user for GitLab:

    root@f04ec368f96e:/tmp# sudo -u postgres psql -d template1 -c "CREATE USER git CREATEDB;"
    psql: could not connect to server: No such file or directory
     Is the server running locally and accepting
          connections on Unix domain socket "/var/run/postgresql/.s.PGSQL.5432"?

I propose to include in the documentation a process to start the postgre database service and confirm if the service is up and running.

This can be done using these two commands

   sudo service postgresql start
   sudo service postgresql status

Related issues

Author's checklist

Review checklist

All reviewers can help ensure accuracy, clarity, completeness, and adherence to the Documentation Guidelines and Style Guide.

Edited by 🤖 GitLab Bot 🤖

Merge request reports

Loading