gitlab 启动不了?

2018-08-01 07:53:11 +08:00
 zhazhadi
在学 docker,想搭个 gitlab 服务,为什么 gitlab 容器一直 starting,或者启动后几秒就 starting,求各路大神赐教
8681 次点击
所在节点    问与答
12 条回复
xiaket
2018-08-01 07:59:58 +08:00
docker logs 看看报错
zhazhadi
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
2018-08-01 09:37:40 +08:00
是不是安装完 gitlab 后有 apt update 过?你的 git 配置坏掉了
iUnix
2018-08-01 09:40:27 +08:00
log 里面都告诉你怎么处理了。
zhazhadi
2018-08-01 10:01:26 +08:00
@f2f2f 没有哦,docker pull 下来就直接跑
reechang
2018-08-01 10:04:24 +08:00
这台电脑内存多大? git lab 经常爆内存
ArthurKing
2018-08-01 10:14:41 +08:00
之前也在 Docker 中跑过 GitLab,经常出问题,后来虚拟机里面装个 Ubuntu,然后再装 GitLab,完美运行……后来想最大问题应该是 GitLab 要求最小 4G 内存……
samaxu
2018-08-01 11:00:07 +08:00
Please run `sudo gitlab-ctl reconfigure` to fix it and try again.

已经告诉你了啊 日志
zhazhadi
2018-08-01 14:12:16 +08:00
@reechang 8G 的哦,虚拟机 centOS7
zhazhadi
2018-08-01 14:13:07 +08:00
@ArthurKing Ubuntu 里直接装 gitlab ?没用 docker 了吗?
zhazhadi
2018-08-01 14:14:41 +08:00
@samaxu docker 里跑的 gitlab,报 sudo:gitlab-ctl:找不到命令
zhazhadi
2018-08-01 14:18:15 +08:00
@iUnix docker 里跑的 gitlab,是要改 /etc/gitlab/gitlab.rb 么?

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/475809

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX