docker-gitlab: Pages service does not start after upgrading from 13.12.4 to 14.0.0

Pages service does not start after upgrading from 13.12.4 to 14.0.0,then upgraded to 14.0.1 and the same problem occurred.

time="2021-06-28T01:01:42Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T01:01:42Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T01:01:42Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T01:01:43Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T01:01:43Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T01:01:43Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T01:01:45Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T01:01:45Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T01:01:45Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T01:01:48Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T01:01:48Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T01:01:48Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T02:28:27Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T02:28:27Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T02:28:27Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T02:28:28Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T02:28:28Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T02:28:28Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T02:28:30Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T02:28:30Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T02:28:30Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T02:28:34Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T02:28:34Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T02:28:34Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
```time="2021-06-28T01:01:42Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T01:01:42Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T01:01:42Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T01:01:43Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T01:01:43Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T01:01:43Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T01:01:45Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T01:01:45Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T01:01:45Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T01:01:48Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T01:01:48Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T01:01:48Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T02:28:27Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T02:28:27Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T02:28:27Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T02:28:28Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T02:28:28Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T02:28:28Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T02:28:30Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T02:28:30Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T02:28:30Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"
time="2021-06-28T02:28:34Z" level=info msg="GitLab Pages Daemon" revision=0e711de version=1.40.0
time="2021-06-28T02:28:34Z" level=info msg="URL: https://gitlab.com/gitlab-org/gitlab-pages"
time="2021-06-28T02:28:34Z" level=fatal msg="could not create domains config source" error="GitLab API URL or API secret has not been provided"

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 27 (20 by maintainers)

Commits related to this issue

Most upvoted comments

Unfortunately same situation on our setup after an upgrade from 13.12.1 to 14.0.2, so for now juste “+1, me too” comment. Also tried a few things, but no success yet. Nothing in the changelog of gitlab 14.0.4 or 14.0.5 seems to mention this issue either.

@sue445 I updated to 14.1.0 and this issue does not seem to be fixed.

@statnmap

  1. See github’s documentation to checkout pull request locally.
    Following the documents, checkout the MR you want to test (for this case it is #2400).
  2. build the image as described in README.md. Executing make build is also a choice because this repository contains Makefile that wraps docker build. It takes a while (depends on your environment. it took around 30 minutes in my case)

best,

Current workaround on top of the existing fix, if you jump into the container with docker exec:

  1. Edit /etc/supervisor/conf.d/gitlab-pages.conf so it has these two added arguments:
      -internal-gitlab-server http://localhost:8181
      -api-secret-key /home/git/gitlab/.gitlab_pages_secret
    
  2. Reread this edited configuration with supervisorctl reread.
  3. Recreate process group for GitLab Pages with supervisorctl remove gitlab-pages and supervisorctl add gitlab-pages, at this point the service should be back up and running, you can double-check with supervisorctl status gitlab-pages.