启动gitlab 报错

来源:12-2 搭建GitLab服务器

慕姐3337517

2018-07-29

Running handlers:

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 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



写回答

1回答

麦兜搞IT

2018-07-30

您设置一下编码的环境变量吧,它报错

STDERR: initdb: invalid locale settings; check LANG and LC_* environment variables

设成utf-8

0
0

系统学习Docker 践行DevOps理念

无论你是开发、测试还是运维,Docker都是你的必备技能。

3297 学习 · 1895 问题

查看课程