I am running the latest version of the GitLab CE Omnibus package on CentOS 7. On that same machine I have other Postgres database running. I seem to be unable to change the port of the in-build Postgres instance to 5433, for example.
I have added the two following lines to the /еtc/gitlab/gitlab.rb
postgresql['enable'] = true
postgresql['port'] = 5433
And I have executed the following commands:
# gitlab-ctl reconfigure
# gitlab-rake gitlab:setup
The second of which fails with the following error:
Couldn't create database for {"adapter"=>"postgresql", "encoding"=>"unicode", "database"=>"gitlabhq_production", "pool"=>10, "username"=>"gitlab", "password"=>nil, "host"=>nil, "port"=>5433, "socket"=>nil}
-- enable_extension("plpgsql")
rake aborted!
PG::Error: could not connect to server: No such file or directory
Is the server running locally and accepting
connections on Unix domain socket "/tmp/.s.PGSQL.5433"?
postgresql['enable'] = true, it specifies that gitlab should use its own Postgres installation.portsetting, and restart PostgreSQL. Review Connections and Authentication (it's a little tricky if you don't admin PostgreSQL all the time).