Gitlab独立安装失败

时间:2018-09-27 13:19:07

标签: gitlab ubuntu-server

我正在使用

  • Ubuntu 18.04服务器

尝试使用this博客和official一个博客来单独安装 Gitlab

  

我收到以下错误:-

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'

我尝试了 external_url 的varius选项,例如

  • IP地址
  • 域名

让我知道出了什么问题。

1 个答案:

答案 0 :(得分:1)

我遇到了同样的问题,并在这里找到了解决方法:

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

执行以下步骤可以解决问题:

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