Search code examples
dockergitlabgitlab-ce

Gitlab as Docker won't start - no warnings, errors in the logs


I am a bit lost on this problem. I've been using Gitlab as Docker for some time now, but at some point it wouldn't boot up. All I get in the logs is this, with no errors or warnings:

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

I tried to find other logs in the system with no luck. The recommended command to fix "update-permissions" didn't do the trick and I also started the container with sudo without success.

What can I try next?


Solution

  • Did a rollback to docker image 14.10.3-ce.0. After that I got weird databse errors. So I did (on Debian 11):

    1. login in docker container
    docker exec -it gitlab_web_1 /bin/bash
    
    1. excuted all following commands to migrate the database
    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
    

    or as one command:

    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
    

    After that I could use my Gitlab again.