gitlab 启动不了? - V2EX
V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
zhazhadi
V2EX    问与答

gitlab 启动不了?

  •  
  •   zhazhadi 2018-08-01 07:53:11 +08:00 via iPhone 9358 次点击
    这是一个创建于 2710 天前的主题,其中的信息可能已经有所发展或是发生改变。
    在学 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     Solana     2302 人在线   最高记录 6679       Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 27ms UTC 03:41 PVG 11:41 LAX 19:41 JFK 22:41
    Do have faith in what you're doing.
    ubao msn snddm index pchome yahoo rakuten mypaper meadowduck bidyahoo youbao zxmzxm asda bnvcg cvbfg dfscv mmhjk xxddc yybgb zznbn ccubao uaitu acv GXCV ET GDG YH FG BCVB FJFH CBRE CBC GDG ET54 WRWR RWER WREW WRWER RWER SDG EW SF DSFSF fbbs ubao fhd dfg ewr dg df ewwr ewwr et ruyut utut dfg fgd gdfgt etg dfgt dfgd ert4 gd fgg wr 235 wer3 we vsdf sdf gdf ert xcv sdf rwer hfd dfg cvb rwf afb dfh jgh bmn lgh rty gfds cxv xcv xcs vdas fdf fgd cv sdf tert sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf sdf shasha9178 shasha9178 shasha9178 shasha9178 shasha9178 liflif2 liflif2 liflif2 liflif2 liflif2 liblib3 liblib3 liblib3 liblib3 liblib3 zhazha444 zhazha444 zhazha444 zhazha444 zhazha444 dende5 dende denden denden2 denden21 fenfen9 fenf619 fen619 fenfe9 fe619 sdf sdf sdf sdf sdf zhazh90 zhazh0 zhaa50 zha90 zh590 zho zhoz zhozh zhozho zhozho2 lislis lls95 lili95 lils5 liss9 sdf0ty987 sdft876 sdft9876 sdf09876 sd0t9876 sdf0ty98 sdf0976 sdf0ty986 sdf0ty96 sdf0t76 sdf0876 df0ty98 sf0t876 sd0ty76 sdy76 sdf76 sdf0t76 sdf0ty9 sdf0ty98 sdf0ty987 sdf0ty98 sdf6676 sdf876 sd876 sd876 sdf6 sdf6 sdf9876 sdf0t sdf06 sdf0ty9776 sdf0ty9776 sdf0ty76 sdf8876 sdf0t sd6 sdf06 s688876 sd688 sdf86