V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
zhazhadi
V2EX  ›  问与答

gitlab 启动不了?

  •  
  •   zhazhadi · 2018-08-01 07:53:11 +08:00 via iPhone · 8787 次点击
    这是一个创建于 2308 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在学 docker,想搭个 gitlab 服务,为什么 gitlab 容器一直 starting,或者启动后几秒就 starting,求各路大神赐教
    12 条回复    2018-08-01 14:18:15 +08:00
    xiaket
        1
    xiaket  
       2018-08-01 07:59:58 +08:00
    docker logs 看看报错
    zhazhadi
        2
    zhazhadi  
    OP
       2018-08-01 09:31:20 +08:00
    @xiaket 麻烦看一下什么问题
    Preparing services...
    Starting services...
    Configuring GitLab package...
    /opt/gitlab/embedded/bin/runsvdir-start: line 24: ulimit: pending signals: cannot modify limit: Operation not permitted
    /opt/gitlab/embedded/bin/runsvdir-start: line 29: ulimit: open files: cannot modify limit: Operation not permitted
    /opt/gitlab/embedded/bin/runsvdir-start: line 34: ulimit: max user processes: cannot modify limit: Operation not permitted
    /opt/gitlab/embedded/bin/runsvdir-start: line 37: /proc/sys/fs/file-max: Read-only file system
    Malformed configuration JSON file found at /opt/gitlab/embedded/nodes/144.202.9.30.json.
    This usually happens when your last run of `gitlab-ctl reconfigure` didn't complete successfully.
    This file is used to check if any of the unsupported configurations are enabled,
    and hence require a working reconfigure before upgrading.
    Please run `sudo gitlab-ctl reconfigure` to fix it and try again.
    Thank you for using GitLab Docker Image!
    Current version: gitlab-ce=11.1.2-ce.0

    Configure GitLab for your system by editing /etc/gitlab/gitlab.rb file
    And restart this container to reload settings.
    To do it use docker exec:

    docker exec -it gitlab vim /etc/gitlab/gitlab.rb
    docker restart gitlab

    For a comprehensive list of configuration options please see the Omnibus GitLab readme
    https://gitlab.com/gitlab-org/omnibus-gitlab/blob/master/README.md

    If this container fails to start due to permission problems try to fix it by executing:

    docker exec -it gitlab update-permissions
    docker restart gitlab

    Preparing services...
    Starting services...
    Configuring GitLab package...
    /opt/gitlab/embedded/bin/runsvdir-start: line 24: ulimit: pending signals: cannot modify limit: Operation not permitted
    /opt/gitlab/embedded/bin/runsvdir-start: line 29: ulimit: open files: cannot modify limit: Operation not permitted
    /opt/gitlab/embedded/bin/runsvdir-start: line 34: ulimit: max user processes: cannot modify limit: Operation not permitted
    /opt/gitlab/embedded/bin/runsvdir-start: line 37: /proc/sys/fs/file-max: Read-only file system
    Malformed configuration JSON file found at /opt/gitlab/embedded/nodes/144.202.9.30.json.
    This usually happens when your last run of `gitlab-ctl reconfigure` didn't complete successfully.
    This file is used to check if any of the unsupported configurations are enabled,
    and hence require a working reconfigure before upgrading.
    Please run `sudo gitlab-ctl reconfigure` to fix it and try again.
    f2f2f
        3
    f2f2f  
       2018-08-01 09:37:40 +08:00
    是不是安装完 gitlab 后有 apt update 过?你的 git 配置坏掉了
    iUnix
        4
    iUnix  
       2018-08-01 09:40:27 +08:00 via Android
    log 里面都告诉你怎么处理了。
    zhazhadi
        5
    zhazhadi  
    OP
       2018-08-01 10:01:26 +08:00
    @f2f2f 没有哦,docker pull 下来就直接跑
    reechang
        6
    reechang  
       2018-08-01 10:04:24 +08:00 via Android
    这台电脑内存多大? git lab 经常爆内存
    ArthurKing
        7
    ArthurKing  
       2018-08-01 10:14:41 +08:00
    之前也在 Docker 中跑过 GitLab,经常出问题,后来虚拟机里面装个 Ubuntu,然后再装 GitLab,完美运行……后来想最大问题应该是 GitLab 要求最小 4G 内存……
    samaxu
        8
    samaxu  
       2018-08-01 11:00:07 +08:00
    Please run `sudo gitlab-ctl reconfigure` to fix it and try again.

    已经告诉你了啊 日志
    zhazhadi
        9
    zhazhadi  
    OP
       2018-08-01 14:12:16 +08:00
    @reechang 8G 的哦,虚拟机 centOS7
    zhazhadi
        10
    zhazhadi  
    OP
       2018-08-01 14:13:07 +08:00
    @ArthurKing Ubuntu 里直接装 gitlab ?没用 docker 了吗?
    zhazhadi
        11
    zhazhadi  
    OP
       2018-08-01 14:14:41 +08:00
    @samaxu docker 里跑的 gitlab,报 sudo:gitlab-ctl:找不到命令
    zhazhadi
        12
    zhazhadi  
    OP
       2018-08-01 14:18:15 +08:00
    @iUnix docker 里跑的 gitlab,是要改 /etc/gitlab/gitlab.rb 么?
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   3624 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 11:03 · PVG 19:03 · LAX 03:03 · JFK 06:03
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.