gitlab ошибка при установке
Делал установку согласно инструкции https://about.gitlab.com/install/ Но после запуска gitlab-ctl reconfigure получил ошибку:
1 2 3 4 5 6 7 |
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 |
Чтобы исправить, выполним 2 команды:
1 2 |
export LC_CTYPE=en_US.UTF-8 export LC_ALL=en_US.UTF-8 |
И снова запускаем gitlab-ctl reconfigure