Docker-gitlab: HTTPS problem on Synology NAS DS916+

Created on 3 Nov 2016  路  8Comments  路  Source: sameersbn/docker-gitlab

Hello,

I've problem with https. Http working without problem, but when I run image with:

...
    --publish 30022:22 --publish 30080:80 --publish 30443:443 \
    --env 'GITLAB_PORT=30443' \
    --env 'GITLAB_HTTPS=true' \
...
Certificate is in :
root@gitlab:/home/git/gitlab# ls -la /home/git/data/certs/
-rw-r--r-- 1 git git  424 Nov  2 17:43 dhparam.pem
-rw-r--r-- 1 git git 3461 Nov  2 18:25 gitlab.crt
-r-------- 1 git git 1679 Nov  2 18:25 gitlab.key



md5-3ec99a6fbeca0db5cdeb427aebabc7c0



Terminal output (docker log):
2016-11-03 00:27:49,883 INFO spawned: 'nginx' with pid 3152                                                                                                   
2016-11-03 00:27:50,911 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)                                     
2016-11-03 00:27:52,414 INFO exited: nginx (exit status 1; not expected)                                                                                      
2016-11-03 00:27:53,418 INFO spawned: 'nginx' with pid 3153                                                                                                   
2016-11-03 00:27:54,448 INFO success: nginx entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)                                     
2016-11-03 00:27:55,950 INFO exited: nginx (exit status 1; not expected)                                                                                      
2016-11-03 00:27:56,953 INFO spawned: 'nginx' with pid 3154



md5-3ec99a6fbeca0db5cdeb427aebabc7c0



tailf /var/log/nginx/error.log :

2016/11/03 00:30:53 [emerg] 3264#3264: bind() to [::]:80 failed (98: Address already in use)                                                                  
2016/11/03 00:30:53 [emerg] 3264#3264: bind() to [::]:443 failed (98: Address already in use)                                                                 
2016/11/03 00:30:53 [emerg] 3264#3264: bind() to [::]:80 failed (98: Address already in use)                                                                  
2016/11/03 00:30:53 [emerg] 3264#3264: bind() to [::]:443 failed (98: Address already in use)                                                                 
2016/11/03 00:30:53 [emerg] 3264#3264: bind() to [::]:80 failed (98: Address already in use)                                                                  
2016/11/03 00:30:53 [emerg] 3264#3264: bind() to [::]:443 failed (98: Address already in use)                                                                 
2016/11/03 00:30:53 [emerg] 3264#3264: still could not bind()                                                                                                 
2016/11/03 00:30:57 [emerg] 3266#3266: bind() to [::]:80 failed (98: Address already in use)                                                                  
2016/11/03 00:30:57 [emerg] 3266#3266: bind() to [::]:443 failed (98: Address already in use)                                                                 

Thank you for any idea.

Most helpful comment

Ok, thank you for all. With comment out is working, but redirect from http is does not. Next when i restart container then default config is back. I'll be waiting for update :-)

All 8 comments

me too! and I can't login or push / pull! Any help please!

work around for me:

docker exec -t -i gitlab bash
cd /etc/nginx/site-enabled
vi gitlab

find line

listen [::]:80 ipv6only=off default_server;

changed it to

listen [::]:80 ipv6only=on default_server;

find line

listen [::]:443 ipv6only=off ssl http2 default_server;

changed it to

listen [::]:443 ipv6only=on ssl http2 default_server;

in vi editor x means delete i means insert and esc + wq + enter make file saved

Or simply comment out (with #) these two lines! Is a bit strange that they released an update with this huge bug!

Ok, thank you for all. With comment out is working, but redirect from http is does not. Next when i restart container then default config is back. I'll be waiting for update :-)

Same problem on Synology NAS 1515+
using HTTPS as well.

Fix is perhaps in gitlabhq: Merge pull request #8395 from sbeh/master
ipv6only must equal "on", but from nginx v1.3.4 is turned on by default.

It will be fixed in latest tag. You need only to wait when the build is done have a look at https://hub.docker.com/r/sameersbn/gitlab/builds/ . Thanks for your patient and work on it.

Thanks just checked the latest and it works!

Was this page helpful?
0 / 5 - 0 ratings

Related issues

lenovouser picture lenovouser  路  3Comments

azman0101 picture azman0101  路  4Comments

laoshancun picture laoshancun  路  5Comments

Daxten picture Daxten  路  4Comments

tarach picture tarach  路  5Comments