R
R
rusikus2019-06-10 09:06:14
PostgreSQL
rusikus, 2019-06-10 09:06:14

Why is GitLab not starting?

GitLab throws an error when starting

spoiler

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.

The database cluster will be initialized with locales
  COLLATE:  en_US
  CTYPE:    en_US.UTF-8
  MESSAGES: en_US
  MONETARY: en_US
  NUMERIC:  en_US
  TIME:     en_US
STDERR: initdb: encoding mismatch
The encoding you selected (UTF8) and the encoding that the
selected locale uses (LATIN1) do not match.  This would lead to
misbehavior in various character string processing functions.
Rerun initdb and either do not specify an encoding explicitly,
or choose a matching combination.
---- 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

How to decide?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
T
taliano, 2019-06-11
@taliano

set | grep LANGreturns non-UTF-8?
As an option, run through LANG=en-US.UTF_8 gitlab-ctl reconfigure, but in general something with the locale.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question