在gitlab-ctl重新配置时,gitlab安装失败

时间:2018-12-03 11:35:01

标签: linux git postgresql debian gitlab

因此,我一直遵循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没有那么丰富的经验,所以我将不胜感激。

谢谢!

1 个答案:

答案 0 :(得分:1)

我认为您的问题是因为您使用的是拉丁文排序规则。

在UTF8上使用任何排序规则(LANG en_US.UTF-8)。

如果您使用的是Debian,请不要更改LANG或LC_变量。使用以下命令:

node_modules

在界面上,请选择所需的界面(您甚至可以尝试使用fr_FR,但始终使用utf8选项)。不要使用LATIN或ISO_8859替代方法。