Gitlab автономная установка не удалась - PullRequest
0 голосов
/ 27 сентября 2018

Я использую

  • Сервер Ubuntu 18.04

Пытаюсь установить Gitlab standalone , используя этот блог и Официальный один тоже

Я получаю сообщение об ошибке ниже: -

Running handlers:
There was an error running gitlab-ctl reconfigure:

bash[migrate gitlab-rails database] (gitlab::database_migrations line 49) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0], but received '1'
---- Begin output of "bash"  "/tmp/chef-script20180927-7185-157g8fm" ----
STDOUT: rake aborted!
PG::ConnectionBad: could not connect to server: No such file or directory
    Is the server running locally and accepting
    connections on Unix domain socket "/var/opt/gitlab/postgresql/.s.PGSQL.5432"?
/opt/gitlab/embedded/service/gitlab-rails/lib/tasks/gitlab/db.rake:51:in `block (3 levels) in <top (required)>'
/opt/gitlab/embedded/bin/bundle:23:in `load'
/opt/gitlab/embedded/bin/bundle:23:in `<main>'
Tasks: TOP => gitlab:db:configure
(See full trace by running task with --trace)
STDERR: 
---- End output of "bash"  "/tmp/chef-script20180927-7185-157g8fm" ----
Ran "bash"  "/tmp/chef-script20180927-7185-157g8fm" returned 1

Running handlers complete
Chef Client failed. 4 resources updated in 01 minutes 21 seconds

Я думал, что запутался с URL.

$grep "external" /etc/gitlab/gitlab.rb | head -n 3
##! For more details on configuring external_url see:
##! https://docs.gitlab.com/omnibus/settings/configuration.html#configuring-the-external-url-for-gitlab
external_url 'http://192.168.4.215'

Я пробовал варианты varius для external_url например

  • IP-адрес
  • имя домена

Дайте мне знать, что происходит не так.

1 Ответ

0 голосов
/ 23 октября 2018

У меня была та же проблема, и я нашел здесь обходной путь:

gitlab.com / gitlab-org / omnibus-gitlab / Issues / 3744

Выполнение следующих действийШаги решили проблему:

sudo systemctl disable gitlab-runsvdir
sudo systemctl enable gitlab-runsvdir
sudo gitlab-ctl restart
...