[MacPorts] #50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format
#50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format --------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Keywords: | Port: ansible --------------------+-------------------------------- Running '''sudo port install ansible''' on my OS X 10.11.3 installation fails with the following lines in the log: {{{ :info:fetch fatal: unable to access 'https://github.com/ansible/ansible.git/': SSL certificate problem: Couldn't understand the server certificate format :info:fetch Command failed: /usr/bin/git clone -q https://github.com/ansible/ansible.git /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ansible/ansible/work/ansible-2.0.0.2-1 2>&1 :info:fetch Exit code: 128 :error:fetch org.macports.fetch for port ansible returned: Git clone failed :debug:fetch Error code: NONE :debug:fetch Backtrace: Git clone failed while executing "gitfetch" (procedure "portfetch::fetch_main" line 14) invoked from within "portfetch::fetch_main org.macports.fetch" ("eval" body line 1) invoked from within "eval $procedure $targetname" }}} I have tried installed the git port and trying again, but that doesn't make a difference. The log mentions using /usr/bin/git either way, so I didn't expect it to. Manually cloning the Ansible Git repository by running '''git clone https://github.com/ansible/ansible.git''' works fine. -- Ticket URL: <https://trac.macports.org/ticket/50467> MacPorts <https://www.macports.org/> Ports system for OS X
#50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format ----------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: ansible | ----------------------+-------------------------------- Comment (by adfernandes@…): Do you have all of apple's latest updates installed? If you're using `/usr/bin/git` you're using Apple's certificate store. SSL Labs' tests for github [https://www.ssllabs.com/ssltest/analyze.html?d=github.com&s=192.30.252.131&h... are here]. With your manual `git clone`, are you using MacPorts' git or the system git? Could you please try both? (This really seems like a MacPorts issue, not the `ansible` port, BTW!) -- Ticket URL: <https://trac.macports.org/ticket/50467#comment:1> MacPorts <https://www.macports.org/> Ports system for OS X
#50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format ----------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: ansible | ----------------------+-------------------------------- Comment (by adfernandes@…): There's also [https://help.github.com/articles/error-ssl-certificate- problem-verify-that-the-ca-cert-is-ok/ this (via google)] from GitHub re SSL certificate checks. -- Ticket URL: <https://trac.macports.org/ticket/50467#comment:2> MacPorts <https://www.macports.org/> Ports system for OS X
#50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format ----------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: ansible | ----------------------+-------------------------------- Comment (by nils@…): Yes, this is on OS X 10.11.3 with all updates applied. I'm not choosing the git client myself, but I just see in the build log that `/usr/bin/git` is being used. I can clone the ansible git repository using both `/usr/bin/git` and `/opt/local/bin/git` without any problems: {{{ ~/tmp1 $ /usr/bin/git clone https://github.com/ansible/ansible.git Cloning into 'ansible'... remote: Counting objects: 107584, done. remote: Compressing objects: 100% (70/70), done. remote: Total 107584 (delta 35), reused 0 (delta 0), pack-reused 107506 Receiving objects: 100% (107584/107584), 37.61 MiB | 935.00 KiB/s, done. Resolving deltas: 100% (64374/64374), done. Checking connectivity... done. ~/tmp2 $ /opt/local/bin/git clone https://github.com/ansible/ansible.git Cloning into 'ansible'... remote: Counting objects: 107584, done. remote: Compressing objects: 100% (70/70), done. remote: Total 107584 (delta 35), reused 0 (delta 0), pack-reused 107506 Receiving objects: 100% (107584/107584), 37.61 MiB | 591.00 KiB/s, done. Resolving deltas: 100% (64374/64374), done. Checking connectivity... done. }}} But when I run `sudo port install ansible` I get an error about the SSL certificate in the build log. -- Ticket URL: <https://trac.macports.org/ticket/50467#comment:3> MacPorts <https://www.macports.org/> Ports system for OS X
#50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format ----------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: ansible | ----------------------+-------------------------------- Comment (by adfernandes@…): Huh. I don't even know how that's ''possible''. Seems similar to #49539. Do you have any git plugins installed? It almost looks like there's some sort of proxy screwing around with the SSL handshake, but why it would differ at the command line vs `port` I have no idea. -- Ticket URL: <https://trac.macports.org/ticket/50467#comment:4> MacPorts <https://www.macports.org/> Ports system for OS X
#50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format ----------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: ansible | ----------------------+-------------------------------- Comment (by nils@…): Sadly #49539 doesn't have a solution, but was solved by switching to another port. I didn't know git had support for plugins. I don't know how to check for them, but I'm pretty sure I've never installed anything like that. -- Ticket URL: <https://trac.macports.org/ticket/50467#comment:5> MacPorts <https://www.macports.org/> Ports system for OS X
#50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format ----------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: ansible | ----------------------+-------------------------------- Comment (by nils@…): I have created #50469 to report this issue against MacPorts base. -- Ticket URL: <https://trac.macports.org/ticket/50467#comment:6> MacPorts <https://www.macports.org/> Ports system for OS X
#50467: ansible @2.0.0.2.1_0 Git clone failed - SSL certificate problem: Couldn't understand the server certificate format ----------------------+-------------------------------- Reporter: nils@… | Owner: macports-tickets@… Type: defect | Status: new Priority: Normal | Milestone: Component: ports | Version: 2.3.4 Resolution: | Keywords: Port: ansible | ----------------------+-------------------------------- Comment (by nhoj.patrick@…): Any update as I would like to install ansible using macports. -- Ticket URL: <https://trac.macports.org/ticket/50467#comment:7> MacPorts <https://www.macports.org/> Ports system for OS X
participants (1)
-
MacPorts