Gitlab install fails at gitlab-ctl reconfigure
因此,我一直遵循GitLab的安装指南(在Debian Stretch上),并且总是收到相同的错误...
链接:https://about.gitlab.com/install/#debian
错误:
1 2 3 4 5 6 7 8 | 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没有那么丰富的经验,所以我将不胜感激。
提前致谢!
我认为您的问题是因为您使用的是拉丁归类。
在UTF8上使用任何排序规则(LANG en_US.UTF-8)。
如果您使用的是Debian,请不要更改LANG或LC_变量。 使用此命令:
1 | dpkg-reconfigure locales |
在界面上,请选择所需的界面(您甚至可以尝试使用fr_FR,但始终使用utf8选项)。 不要使用LATIN或ISO_8859替代方法。