首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >Gitlab安装在gitlab-ctl重新配置时失败

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

Stack Overflow用户
提问于 2018-12-03 19:35:01
回答 1查看 945关注 0票数 1

所以,我一直在遵循GitLab的安装指南(在Debian Stretch上),我总是得到同样的错误……

链接:https://about.gitlab.com/install/#debian

错误:

代码语言:javascript
复制
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没有太多的经验,所以我希望能得到一些帮助。

提前感谢!

EN

回答 1

Stack Overflow用户

发布于 2018-12-05 09:45:05

我认为您的问题是因为您使用的是拉丁语校对。

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

如果你正在使用Debian,不要改变LANG或LC_变量。使用以下命令:

代码语言:javascript
复制
dpkg-reconfigure locales

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

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53592993

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档