Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

gitLab update : curl returns ssl error 35

Tags:

curl

ssl

gitlab

I am trying to update my gitLab installation from 7.7.2. When I am running the following command nothing downloads.

curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/script.deb.sh | sudo bash

And I get this error:

0* Unknown SSL protocol error in connection to packages.gitlab.com:443
  0     0    0     0    0     0      0      0 --:--:--  0:02:00 --:--:--
0
* Closing connection 0
curl: (35) Unknown SSL protocol error in connection to packages.gitlab.com:44
3
curl is unable to connect to packagecloud.io over TLS when running:
    curl https://packages.gitlab.com/install/repositories/gitlab/gitlab-ce/co
nfig_file.list?os=Ubuntu&dist=trusty&name=git.curuba2.fr&source=script
This is usually due to one of two things:

 1.) Missing CA root certificates (make sure the ca-certificates package is i
nstalled)
 2.) An old version of libssl. Try upgrading libssl on your system to a more
recent version

My ubuntu Trusty is up to date, I have ca-certificates installed and I also did update-ca-certificates.

No idea what's wrong. I need to migrate my server. I installed it properly on the new one but I fail updating the old one...

[EDIT] I also tried with -k with no luck...

like image 261
curuba Avatar asked Jun 28 '26 22:06

curuba


1 Answers

I ran into the same problem trying to install the runner via a non-https proxy. I tried using -x [proxy] --insecure in the command but it still failed. I decided to look at the script itself and realised the issue is with the curl calls inside the script. I update the calls I could find in a local copy of script.deb.sh to include -x [proxy] --insecure then just executed that using sudo ./script.deb.sh and it worked.

like image 89
Truan Avatar answered Jul 02 '26 06:07

Truan