gpt4 book ai didi

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

转载 作者:塔克拉玛干 更新时间:2023-11-03 00:33:33 26 4
gpt4 key购买 nike

所以,我一直在遵循 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 不是很熟悉,所以我希望得到一些帮助。

提前致谢!

最佳答案

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

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

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

dpkg-reconfigure locales

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

关于linux - Gitlab 安装在 gitlab-ctl 重新配置时失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53592993/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com