Gitlab as Docker无法启动-日志中没有警告和错误

eimct9ow  于 2023-02-07  发布在  Docker
关注(0)|答案(1)|浏览(172)

我对这个问题有点困惑。我使用Gitlab作为Docker已经有一段时间了,但是有时候它无法 Boot 。我在日志中得到的是这样的,没有错误或警告:

Thank you for using GitLab Docker Image!

Current version: gitlab-ce=15.8.0-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 editor /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

Cleaning stale PIDs & sockets

It seems you are upgrading from major version 14 to major version 15.

It is required to upgrade to the latest 15.0.x version first before proceeding.

Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrading-to-a-new-major-version

Thank you for using GitLab Docker Image!

Current version: gitlab-ce=15.8.0-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 editor /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

Cleaning stale PIDs & sockets

It seems you are upgrading from major version 14 to major version 15.

It is required to upgrade to the latest 15.0.x version first before proceeding.

Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrading-to-a-new-major-version

Thank you for using GitLab Docker Image!

Current version: gitlab-ce=15.8.0-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 editor /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

Cleaning stale PIDs & sockets

It seems you are upgrading from major version 14 to major version 15.

It is required to upgrade to the latest 15.0.x version first before proceeding.

Please follow the upgrade documentation at https://docs.gitlab.com/ee/update/index.html#upgrading-to-a-new-major-version

我试着在系统中找到其他日志,但没有成功,推荐的命令“update-permissions”也不起作用,我还用sudo启动了容器,但也没有成功。
接下来我可以尝试什么?

u5rb5r59

u5rb5r591#

回滚到docker映像14.10.3-ce.0。在那之后我得到奇怪的数据库错误。所以我做了(在Debian 11上):
1.登录Docker容器

docker exec -it gitlab_web_1 /bin/bash

1.已执行以下所有命令来迁移数据库
一个一个一个一个一个一个x一个一个二个一个x一个一个三个一个x一个一个x一个一个x一个一个
或作为一个命令:

rm /var/opt/gitlab/postgresql/data/postmaster.pid ; gitlab-rake gitlab:background_migrations:finalize[ProjectNamespaces::BackfillProjectNamespaces,projects,id,'[null\,"up"]'] && gitlab-rake db:migrate && gitlab-ctl reconfigure && apt dist-upgrade && gitlab-ctl restart

在那之后,我可以再次使用我的Gitlab。

相关问题