twang2218 / gitlab-ce-zh

GitLab Community Edition (中文社区版)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

安装一年之后突然无法启动状态一直 Restarting

50785397 opened this issue · comments

之前一直使用正常,不是通过Docker Compose启动的,麻烦看一下日志是什么问题。

Preparing services...
Starting services...
Configuring GitLab package...
/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/571622cde35f.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.4-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

删除镜像,重新run就好了