Can't get registry working correctly, it says 500 Docker connection error

Problem to solve

Can somebody help me to get registry up and running?

  • What are you seeing, and how does that differ from what you expect to see?
  • Consider including screenshots, error messages, and/or other helpful visuals

When I click on a container registry link I see that error message:

image

Steps to reproduce

Which troubleshooting steps have you already taken? Can you link to any docs or other resources so we know where you have been?

Here is the docs I followed, GitLab container registry administration | GitLab

I really don’t know what to troubleshoot here, /var/log/gitlab/registry/current looks clear.
In other hand, gitlab-ctl tail throws a lot of info, I’m not sure what info is relevant to the problem.

Configuration

On self-managed instances, add the relevant configuration settings or changes.

Here is my config so far,

registry_external_url 'https://gitlab.home.lan'

### Settings used by GitLab application
gitlab_rails['registry_enabled'] = true
gitlab_rails['registry_host'] = "gitlab.home.lan"
gitlab_rails['registry_port'] = "5000"
gitlab_rails['registry_path'] = "/var/opt/gitlab/gitlab-rails/shared/registry"

### SSL certificates
registry_nginx['ssl_certificate'] = "/etc/gitlab/ssl/gitlab.home.lan.crt"
registry_nginx['ssl_certificate_key'] = "/etc/gitlab/ssl/gitlab.home.lan.key"
registry_nginx['redirect_http_to_https'] = true
registry_nginx['listen_port'] = 443

gitlab_rails['registry_api_url'] = "https://gitlab.home.lan:5000"
gitlab_rails['registry_issuer'] = "gitlab-issuer"
### Settings used by Registry application
registry['enable'] = true
registry['username'] = "registry"
registry['group'] = "registry"
# registry['uid'] = nil
# registry['gid'] = nil
registry['dir'] = "/var/opt/gitlab/registry"
registry['registry_http_addr'] = "gitlab.home.lan:5000"
# registry['debug_addr'] = "gitlab.home.lan:5005"
registry['log_directory'] = "/var/log/gitlab/registry"
registry['env_directory'] = "/opt/gitlab/etc/registry/env"
registry['env'] = {
 'SSL_CERT_DIR' => "/opt/gitlab/embedded/ssl/certs/"
}
registry['log_level'] = "info"
registry['log_formatter'] = "text"
registry['rootcertbundle'] = "/etc/gitlab/ssl/gitlab.home.lan_bundle.crt"
registry['health_storagedriver_enabled'] = true
registry['storage_delete_enabled'] = true
registry['internal_key'] = "-----BEGIN RSA PRIVATE KEY-----\nMIIEpQIBAAKCAQEA79pJ3BGtv5bcCDJswXWr7Sh4IhMFEkHrTHIg0SeSd5ajhO3BQUgInT2rK\n-----END RSA PRIVATE KEY-----"

Just a note, I have removed a few lines from the private key.

Versions

Please select whether options apply, and add the version information.

Versions

root@behemoth.home.lan:/etc/gitlab# gitlab-rake gitlab:env:info

System information
System:         Ubuntu 22.04
Current User:   git
Using RVM:      no
Ruby Version:   3.1.5p253
Gem Version:    3.5.11
Bundler Version:2.5.11
Rake Version:   13.0.6
Redis Version:  7.0.15
Sidekiq Version:7.1.6
Go Version:     unknown

GitLab information
Version:        17.3.1
Revision:       20a3292b4e6
Directory:      /opt/gitlab/embedded/service/gitlab-rails
DB Adapter:     PostgreSQL
DB Version:     14.11
URL:            https://gitlab.home.lan
HTTP Clone URL: https://gitlab.home.lan/some-group/some-project.git
SSH Clone URL:  git@gitlab.home.lan:some-group/some-project.git
Using LDAP:     yes
Using Omniauth: yes
Omniauth Providers:

GitLab Shell
Version:        14.38.0
Repository storages:
- default:      unix:/var/opt/gitlab/gitaly/gitaly.socket
GitLab Shell path:              /opt/gitlab/embedded/service/gitlab-shell

Gitaly
- default Address:      unix:/var/opt/gitlab/gitaly/gitaly.socket
- default Version:      17.3.1
- default Git Version:  2.45.2
root@behemoth.home.lan:/etc/gitlab#

Any help is more than appreciated.
Thanks.