Score:1

Curl (35) trying to install Gitlab Ubuntu server 18.04

us flag

Hi i'm trying to install gitlab on an virtual server Ubuntu 18.04, following these steps from the official website.

But when in the second step curl -v https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh | sudo bash I'm receiving:

    % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0*   Trying 54.153.54.194...
* TCP_NODELAY set
* Connected to packages.gitlab.com (54.153.54.194) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
} [5 bytes data]
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
} [512 bytes data]
* OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.gitlab.com:443
* stopped the pause stream!
  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
* Closing connection 0
curl: (35) OpenSSL SSL_connect: SSL_ERROR_SYSCALL in connection to packages.gitlab.com:443

Curl version: curl 7.58.0; OpenSSL: 1.1.1

Anyone knows how can i fix this? or at least investigate deeper.

Thanks

Edit: wget does not work either. It returns:

--2021-08-05 19:40:01--  https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh
Resolving packages.gitlab.com (packages.gitlab.com)... 54.153.54.194, 2600:1f1c:2d4:8900:17a1:2e94:9f90:f91e
Connecting to packages.gitlab.com (packages.gitlab.com)|54.153.54.194|:443... connected.
Unable to establish SSL connection.
Converted links in 0 files in 0 seconds.
Paul avatar
us flag
Works fine for me. Have you changed anything? Does `wget` download the script?
Wesley de Faria Cazelli avatar
us flag
wget does not work too. --2021-08-05 19:40:01-- https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh Resolving packages.gitlab.com (packages.gitlab.com)... 54.153.54.194, 2600:1f1c:2d4:8900:17a1:2e94:9f90:f91e Connecting to packages.gitlab.com (packages.gitlab.com)|54.153.54.194|:443... connected. Unable to establish SSL connection. Converted links in 0 files in 0 seconds.
Paul avatar
us flag
How about `curl -vvv https://example.com`?
Wesley de Faria Cazelli avatar
us flag
https://example.com works fine.
Score:1
pl flag

Usually when you have certificate errors like this you should always make sure you are accessing the correct websites and you are not redirected somewhere else.. but in your case I do not think it's the case.

In order to fix this do:

apt-get clean && apt-get update && apt-get upgrade

This should clean your repos cache and update everything. You have an old version of curl and OpenSSL and this issue I think is OpenSSL related.

Upgrade everything and it should work.

If not, to bypass ssl checks use:

curl --insecure https://packages.gitlab.com/install/repositories/gitlab/gitlab-ee/script.deb.sh
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.