gitlab-ce 使用yum卸载后,又用yum重新安装,执行gitlab-ctl reconfigure时,就出现了下面的问题,这个要怎么解决?
There was an error running gitlab-ctl reconfigure:
execute[/opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8] (postgresql::enable line 75) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ----
STDOUT: The files belonging to this database system will be owned by user "gitlab-psql".
This user must also own the server process.
The database cluster will be initialized with locale "zh_CN.UTF-8".
The default text search configuration will be set to "simple".
Data page checksums are disabled.
STDERR: initdb: could not find suitable text search configuration for locale "zh_CN.UTF-8"
initdb: error: could not access directory "/var/opt/gitlab/postgresql/data": 权限不够
---- End output of /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 ----
Ran /opt/gitlab/embedded/bin/initdb -D /var/opt/gitlab/postgresql/data -E UTF8 returned 1