[MacPorts] #50469: Git clone fails - SSL certificate problem: Couldn't understand the server certificate format

MacPorts noreply at macports.org
Sat Jan 30 06:15:43 PST 2016


#50469: Git clone fails - SSL certificate problem: Couldn't understand the server
certificate format
---------------------+--------------------------------
  Reporter:  nils@…  |      Owner:  macports-tickets@…
      Type:  defect  |     Status:  new
  Priority:  Normal  |  Milestone:
 Component:  base    |    Version:  2.3.4
Resolution:          |   Keywords:
      Port:          |
---------------------+--------------------------------

Comment (by nils@…):

 The information about the git command being run is also in the issue and
 and the log I attached to this issue. I don't see anything about
 environment variables though:

 {{{
 $ sudo port clean ansible
 --->  Cleaning ansible
 $ sudo port -d fetch ansible
 DEBUG: Copying /Users/breun/Library/Preferences/com.apple.dt.Xcode.plist
 to /opt/local/var/macports/home/Library/Preferences
 DEBUG: Changing to port directory:
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/ansible
 DEBUG: OS darwin/15.3.0 (Mac OS X 10.11) arch i386
 DEBUG: Re-registering default for build.cmd
 DEBUG: Re-registering default for destroot.cmd
 DEBUG: Re-registering default for destroot.destdir
 DEBUG: Sourcing PortGroup python 1.0 from
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/python-1.0.tcl
 DEBUG: Sourcing PortGroup github 1.0 from
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/_resources/port1.0/group/github-1.0.tcl
 DEBUG: only one arch supported, so not adding the default universal
 variant
 DEBUG: Running callback portconfigure::add_automatic_compiler_dependencies
 DEBUG: Finished running callback
 portconfigure::add_automatic_compiler_dependencies
 DEBUG: Running callback portbuild::add_automatic_buildsystem_dependencies
 DEBUG: Finished running callback
 portbuild::add_automatic_buildsystem_dependencies
 DEBUG: Attempting ln -sf
 /opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ansible/ansible/work
 /opt/local/var/macports/sources/rsync.macports.org/release/ports/sysutils/ansible/work
 DEBUG: Starting logging for ansible
 DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
 --->  Computing dependencies for ansible
 DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
 DEBUG: Searching for dependency: git
 DEBUG: Didn't find receipt, going to depspec regex for: git
 DEBUG: Found Dependency: path: /usr/bin filename: git regex: ^git$
 DEBUG: Executing org.macports.main (ansible)
 DEBUG: fetch phase started at Sat Jan 30 15:13:22 CET 2016
 --->  Fetching distfiles for ansible
 DEBUG: Executing org.macports.fetch (ansible)
 DEBUG: Executing: /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
 fatal: unable to access 'https://github.com/ansible/ansible.git/': SSL
 certificate problem: Couldn't understand the server certificate format
 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
 Exit code: 128
 Error: org.macports.fetch for port ansible returned: Git clone failed
 DEBUG: Error code: NONE
 DEBUG: 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"
 Warning: targets not executed for ansible: org.macports.fetch
 Please see the log file for port ansible for details:
 /opt/local/var/macports/logs/_opt_local_var_macports_sources_rsync.macports.org_release_ports_sysutils_ansible/ansible/main.log
 To report a bug, follow the instructions in the guide:
     http://guide.macports.org/#project.tickets
 Error: Processing of port ansible failed
 }}}

 When I run the command myself that MacPorts says it ran (using `sudo`, of
 course), then there is no problem and the git clone works just fine:

 {{{
 $ sudo /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
 $ echo $?
 0
 $ ls
 /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
 CHANGELOG.md             MANIFEST.in              ansible-core-sitemap.xml
 examples                 setup.py
 CODING_GUIDELINES.md     Makefile                 bin
 hacking                  test
 CONTRIBUTING.md          README.md                contrib
 lib                      test-requirements.txt
 COPYING                  RELEASES.txt             docs
 packaging                ticket_stubs
 ISSUE_TEMPLATE.md        VERSION                  docsite
 samples                  tox.ini
 }}}

 Apparently there is something different when this command is executed by
 MacPorts on my computer. I also tried this on my work computer and there
 it works fine. Any idea what I could check for next?

-- 
Ticket URL: <https://trac.macports.org/ticket/50469#comment:9>
MacPorts <https://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list