Rinyuaru-Kun
Rinyuaru-Kun

Reputation: 59

Gitlab install fails at gitlab-ctl reconfigure

So, I have been following GitLab's install guide (on Debian Stretch) and I always get the same error...

The link: https://about.gitlab.com/install/#debian

The error:

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

I have tried some things, but since I cannot find this issue elsewhere, it didn't get me far. I am not that experienced with Linux, so I would appreciate some help.

Thanks in advance!

Upvotes: 1

Views: 3001

Answers (1)

Sakura Kinomoto
Sakura Kinomoto

Reputation: 1884

I think your problem are because you're using a latin collation.

Use any collation (LANG en_US.UTF-8) on UTF8.

If you're using Debian, do not change LANG or LC_ variables. Use this command:

dpkg-reconfigure locales

On the interface, please select the desired interface (You can even try with fr_FR, but use always the utf8 option). Do not use LATIN or ISO_8859 alternatives.

Upvotes: 1

Related Questions