所以,我一直在遵循GitLab的安装指南(在Debian Stretch上),我总是得到同样的错误……
链接:https://about.gitlab.com/install/#debian
错误:
There was an error running gitlab-ctl reconfigure:
execute[/opt/gitlab/embedded/bin/initdb -D p /var/opt/gitlab/postgresql/data -E UTF8 (postgresql::enable line 80) 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.
STDERR: initdb: invalid locale settings; check LANG and LC_* environment variables
---- 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我尝试过一些方法,但是因为我在其他地方找不到这个问题,所以我没有走多远。我对Linux没有太多的经验,所以我希望能得到一些帮助。
提前感谢!
发布于 2018-12-05 09:45:05
我认为您的问题是因为您使用的是拉丁语校对。
在UTF8上使用任何排序规则(LANG en_US.UTF-8)。
如果你正在使用Debian,不要改变LANG或LC_变量。使用以下命令:
dpkg-reconfigure locales在界面上,请选择所需的接口(您甚至可以尝试使用fr_FR,但始终使用utf8选项)。不要使用拉丁语或ISO_8859替代。
https://stackoverflow.com/questions/53592993
复制相似问题