Unable to enable GitLab Container Registry adress in use

Hi

I am unable to enable Gitlab container registry

the process is not running

down: registry: 0s, normally up, want up; run: log: (pid 24267) 1116s
run: sidekiq: (pid 7234) 253s; run: log: (pid 2508) 367723s
run: unicorn: (pid 7262) 252s; run: log: (pid 2485) 367723s

[root@fabvordpsdb002m registry]#
the 2019-01-27_14:16:31.55056 time=“2019-01-27T18:16:31.550510075+04:00” level=fatal msg="listen tcp 127.0.0.1:5000: bind: address already in use "

[root@fabvordpsdb002m registry]# netstat -anlp | grep 5000
tcp6 0 0 :::5000 :::* LISTEN 2263/docker-proxy
unix 2 [ ] STREAM CONNECTED 7379197 5000/sudo```

My gitlab.rb settings

external_url ‘https://gabujnbthiukdb005m.gabdc.local
registry_external_url ‘https://gabujnbthiukdb005m.gabdc.local:5000

registry_nginx[‘ssl_certificate’] = ‘/etc/gitlab/ssl/server.local.pem’
registry_nginx[‘ssl_certificate_key’] = ‘/etc/gitlab/ssl/server.local.key’

use registry_external_url with different port because gitlab already using 5000 port.

1 Like

Hi!
I think, i have same problem.
I tried different ports. 5000, 5678, 443.
nginx always wanted to use my local registry port.

vi /etc/gitlab/gitlab.rb

external_url 'http://gitlab.local'

registry_external_url 'https://registry.local'
registry_nginx['ssl_certificate'] = "/home/vagrant/certs/selfsigned.crt"
registry_nginx['ssl_certificate_key'] = "/home/vagrant/certs/selfsigned.key"

# gitlab-ctl tail nginx

2019-05-18_14:38:12.42711 2019/05/18 14:38:09 [emerg] 29563#0: still could not bind()
2019-05-18_14:38:12.44728 2019/05/18 14:38:12 [emerg] 29567#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2019-05-18_14:38:12.94769 2019/05/18 14:38:12 [emerg] 29567#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2019-05-18_14:38:13.44949 2019/05/18 14:38:12 [emerg] 29567#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2019-05-18_14:38:13.94971 2019/05/18 14:38:12 [emerg] 29567#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2019-05-18_14:38:14.45180 2019/05/18 14:38:12 [emerg] 29567#0: bind() to 0.0.0.0:443 failed (98: Address already in use)
2019-05-18_14:38:14.95414 2019/05/18 14:38:12 [emerg] 29567#0: still could not bind()
2019-05-18_14:38:14.97390 2019/05/18 14:38:14 [emerg] 29571#0: bind() to 0.0.0.0:443 failed (98: Address already in use)

GitLab information

Version: 11.10.4
Revision: 62c464651d2


Any suggestion?

Since we have, registry_external_url enable we are having the same problem. Has anyone have an idea to solve this? Everything was working fine, until we try to enable the url. The error is in /var/log/gitlab/nginx/current.