本文介绍了GitLab安装程序无法为应用程序/opt/GitLab/Embedded/SERVICE/GitLab-rails派生进程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在centos 7服务器上安装GitLab,并尝试使用现有的nginx来配置许多域。但它有关于GitLab-Rails的错误,但我不知道它是什么。

my/var/log/nginx/error.log显示错误:

我的GitLab配置/ETC/GitLab/gitLab.rb:

external_url 'http://gitlab.ifbuyer.com'
nginx['enable'] = false
unicorn['enable'] = false
web_server['external_users'] = ['nginx']
gitlab_rails['internal_api_url'] = 'http://gitlab.ifbuyer.com'
nginx['redirect_http_to_https'] = true

我的gitlab.ifbuyer.com.conf后面跟着链接https://docs.gitlab.com/omnibus/settings/nginx.html#using-an-existing-passenger-nginx-installation

我使用的是GitLab-ce-9.5.0-ce.0.el7.x86_64

如有任何帮助,我们将不胜感激。非常感谢

推荐答案

您应该尝试使用Docker运行GitLab,这将帮助您专注于ngix部分

您可以使用以下脚本安装docker和docker-Composer

curl -SsL https://get.docker.com | sh
pip install docker-compose

然后为GitLab创建一个文件夹并创建一个docker-compose.yml文件

docker-compose.yml

version: '3'
services:
  gitlab:
    image: gitlab/gitlab-ce:${GITLAB_VERSION}
    hostname: gitlab.example.com
    environment:
      GITLAB_OMNIBUS_CONFIG: |
        external_url 'https://gitlab.example.com'
        gitlab_rails['gitlab_shell_ssh_port'] = 22
    ports:
      - "22:22"
      - "80:80"
      - "443:443"
    volumes:
      - ./config:/etc/gitlab
      - ./logs:/var/log/gitlab
      - ./data:/var/opt/gitlab
      - ./scrtips:/scripts
最新GitLab_Version为9.5.2-ce.0。因此,您可以在文件中替换它,也可以在运行上述命令之前使用以下命令将其导出

$ GITLAB_VERSION='9.5.2-ce.0' docker-compose up
一旦服务器启动,就可以在gitlab.example.com访问它,要么输入主机条目,要么在配置中使用IP。然后您可以从您的nginx代理_传递它。

这篇关于GitLab安装程序无法为应用程序/opt/GitLab/Embedded/SERVICE/GitLab-rails派生进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 19:13