pg-upgrade fail 'analyze_new_cluster.sh: No such file or directory' because postgresql['home'] have been changed
When I try to launch
sudo gitlab-ctl pg-upgrade at the end I get this error :
Database upgrade is complete, running analyze_new_cluster.sh Could not run: /bin/sh /var/opt/gitlab/postgresql/data/../analyze_new_cluster.sh STDOUT: STDERR: /bin/sh: /var/opt/gitlab/postgresql/data/../analyze_new_cluster.sh: No such file or directory
omnibus-gitlab package version : gitlab-ce-8.15.5-ce.0.el6.x86_64.rpm
Relevant sections of
postgresql['data_dir'] = "/applis/[...]" postgresql['dir'] = "/applis/[...]" postgresql['log_directory'] = "/applis/[...]" postgresql['home'] = "/applis/[...]"
As you noticed, I moved all postgresql data to another path.
The problem is that Gitlab is looking for the script
analyze_new_cluster.sh with the default path instead of using the path in
If you need more informations just ask.