You are not logged in.

#1 2017-04-28 12:30:10

jvb
Member
Registered: 2015-03-16
Posts: 11

[SOLVED] git silently fails on clone/pull

I noticed something very weird (at least to me) after the last git, libgit2 and libgit2-glib upgrade. When clonning repo, the git just fails with no error:

$ git clone https://github.com/sanduhrs/phpstorm-url-handler.git
Cloning into 'phpstorm-url-handler'...
$ echo $?
128

The repo is not cloned at all. It doesnt matter what repo I try to clone, the above is just an example.

I tried to get some more verbosity, this is what I was able to get:

$ GIT_CURL_VERBOSE=1 GIT_TRACE=1 git clone https://github.com/sanduhrs/phpstorm-url-handler.git
14:23:09.933065 git.c:371               trace: built-in: git 'clone' 'https://github.com/sanduhrs/phpstorm-url-handler.git'
Cloning into 'phpstorm-url-handler'...
14:23:09.933990 run-command.c:369       trace: run_command: 'git-remote-https' 'origin' 'https://github.com/sanduhrs/phpstorm-url-handler.git'
* Couldn't find host github.com in the .netrc file; using defaults
*   Trying 192.30.253.113...
* Connected to github.com (192.30.253.113) port 443 (#0)
* ALPN, offering http/1.1
* Cipher selection: ALL:!EXPORT:!EXPORT40:!EXPORT56:!aNULL:!LOW:!RC4:@STRENGTH
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: none
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:

I don't see anything fishy there, it "just stops".  git --version is: git version 2.12.2


Anybody able to reproduce or help please?

Last edited by jvb (2017-04-30 11:24:49)

Offline

#2 2017-04-28 12:41:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] git silently fails on clone/pull

I'm not really sure what this could be, but the results of the following might help in diagnosing this:

pacman -Qo /etc/ssl/certs/ca-certificates.crt
pacman -Qkk ca-certificates-utils
pacman -Q curl openssl

"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#3 2017-04-28 13:03:39

jvb
Member
Registered: 2015-03-16
Posts: 11

Re: [SOLVED] git silently fails on clone/pull

I don't think the certs will be the issue here, I would experience much more problems than this.

 # pacman -Qo /etc/ssl/certs/ca-certificates.crt
/etc/ssl/certs/ca-certificates.crt is owned by ca-certificates-utils 20170307-1
# pacman -Qkk ca-certificates-utils
ca-certificates-utils: 25 total files, 0 altered files
# pacman -Q curl openssl
error: package 'curl' was not found
openssl 1.1.0.e-1
# pacman -Q curl-http2-git 
curl-http2-git 7.47.1.96.gd42dbe6-1

Proof of curl working fine:

curl https://github.com -I
HTTP/1.1 200 OK
Server: GitHub.com
Date: Fri, 28 Apr 2017 13:02:41 GMT
Content-Type: text/html; charset=utf-8
Status: 200 OK
Cache-Control: no-cache
Vary: X-PJAX
X-UA-Compatible: IE=Edge,chrome=1
Set-Cookie: logged_in=no; domain=.github.com; path=/; expires=Tue, 28 Apr 2037 13:02:41 -0000; secure; HttpOnly
Set-Cookie: _gh_sess=eyJzZXNzaW9uX2lkIjoiDFlNmNmN2Q4OWQiLaaaaaaaaaaaaaaaaaaaaCJfY3NyZl90b2tlbiI6Ikw1aUVhcmE3TXlrTEJRYURpYlgzMHM9In0%3D--08f4f0538c2531b0382e9aaaaaaaaa4b468629f150; path=/; secure; HttpOnly
X-Request-Id: 3b52664bac3569e8f07c694bb2b9a7fb
X-Runtime: 0.045079
Content-Security-Policy: default-src 'none'; base-uri 'self'; block-all-mixed-content; child-src render.githubusercontent.com; connect-src 'self' uploads.github.com status.github.com collector.githubapp.com api.github.com www.google-analytics.com github-cloud.s3.amazonaws.com wss://live.github.com; font-src assets-cdn.github.com; form-action 'self' github.com gist.github.com; frame-ancestors 'none'; img-src 'self' data: assets-cdn.github.com identicons.github.com collector.githubapp.com github-cloud.s3.amazonaws.com *.githubusercontent.com; media-src 'none'; script-src assets-cdn.github.com; style-src 'unsafe-inline' assets-cdn.github.com
Strict-Transport-Security: max-age=31536000; includeSubdomains; preload
Public-Key-Pins: max-age=5184000; pin-sha256="WoiWRyIOVNa9ihaBciRSC7XHjliYS9VwUGOIud4PB18="; pin-sha256="RRM1dGqnDFsCJXBTHky16vi1obOlCgFFn/yOhI/y+ho="; pin-sha256="k2v657xBsOVe1PQRwOsHsw3bsGT2VzIqz5K+59sNQws="; pin-sha256="K87oWBWM9UZfyddvDfoxL+8lpNyoUB2ptGtn0fv6G2Q="; pin-sha256="IQBnNBEiFuhj+8x6X8XLgh01V9Ic5/V3IRQLNFFc7v4="; pin-sha256="iie1VXtL7HzAMF+/PVPR9xzT80kQxdZeJ+zduCB3uj0="; pin-sha256="LvRiGEjRqfzurezaWuj8Wie2gyHMrW5Q06LspMnox7A="; includeSubDomains
X-Content-Type-Options: nosniff
X-Frame-Options: deny
X-XSS-Protection: 1; mode=block
Vary: Accept-Encoding
X-Served-By: f73c8d23c32022bae17eb1c3afb3b62b
X-GitHub-Request-Id: C68E:657B:2289DAC:3321EC1:59033D71

Last edited by jvb (2017-04-28 13:03:57)

Offline

#4 2017-04-28 13:24:50

Trilby
Inspector Parrot
Registered: 2011-11-29
Posts: 29,449
Website

Re: [SOLVED] git silently fails on clone/pull

*headdesk*  The fact that you've replaced curl with something from the AUR should have been mentioned in the first post.

Rebuild your curl package against the new openssl.  Your version predates the openssl change.


"UNIX is simple and coherent..." - Dennis Ritchie, "GNU's Not UNIX" -  Richard Stallman

Offline

#5 2017-04-30 11:24:25

jvb
Member
Registered: 2015-03-16
Posts: 11

Re: [SOLVED] git silently fails on clone/pull

Trilby wrote:

*headdesk*  The fact that you've replaced curl with something from the AUR should have been mentioned in the first post.

Sorry, it didnt occur to me, that it was important, now I know why. *lighbulb*

Trilby wrote:

Rebuild your curl package against the new openssl.  Your version predates the openssl change.


Done and yep, that fixed it. I usually rebuild -git packages quite often, but I did not think about rebuilding curl in the fist place. Thanks.

Offline

Board footer

Powered by FluxBB