Skip to content

Geo: Error during failover process `gitlab-pg-ctl: command not found`

Error:

jlouie@jsl-geo-2ndry-postgres2:~$ sudo gitlab-pg-ctl promote

sudo: gitlab-pg-ctl: command not found

Workaround

The gitlab-pg-ctl binary exists in /opt/gitlab/embedded/bin/ so we specified the absolute path like sudo /opt/gitlab/embedded/bin/gitlab-pg-ctl promote and it succeeded.

How does gitlab-pg-ctl normally get into $PATH?