z/OS Tools & Language

Expand all | Collapse all

Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

  • 1.  Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-09-2018 13:32

    git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Attempting command bash-4.3$ git clone --recursive git@github.com:xyz/abc.git results in the above error.

    echo $GIT_EXEC_PATH shows the directory containing index-pack. Adding the exports to my profile as suggested in an earlier post did not help.

    I can get a little further if I run the same “git clone” command from the /bin/ directory:

    remote: Counting objects: 30, done.
    remote: Compressing objects: 100% (3/3), done.
    remote: Total 30 (delta 0), reused 0 (delta 0), pack-reused 27
    Receiving objects: 100% (30/30), 7.22 KiB | 0 bytes/s, done.
    Resolving deltas: 100% (8/8), done.
    Checking connectivity… done.
    error: cannot run submodule: EDC5129I No such file or directory.
    warning: Clone succeeded, but checkout failed.
    You can inspect what was checked out with 'git status’
    and retry the checkout with ‘git checkout -f HEAD’

    I assume a setup problem but can not find it.

    Any advice appreciated - thanks,
    Jim



  • 2.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-12-2018 08:24

    Hello Jim!

    Could you provide us with your env | sort output so we could see that all needed variables is set and loaded correctly? Also to make sure this is not repository issue, could you try to clone exact same repo on another linux machine?

    With respect, Dan.



  • 3.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-12-2018 10:28

    Thanks Dan - here’s the output:
    bash-4.3$ env | sort
    CAOMWV12_HOME=/a/rosni02/CA_OM_Web_Viewer12_1
    COLUMNS=132
    GIT_EXEC_PATH=/z/poija01/rsusr/rocket/libexec/git-core
    GIT_SHELL=/z/poija01/rsusr/rocket/bin/bash
    GIT_TEMPLATE_DIR=/z/poija01/rsusr/rocket/share/git-core/templates
    HOME=/z/poija01
    LANG=C
    LIBPATH=/lib:/usr/lib:/usr/lpp/Printsrv/lib:.::/z/poija01/rsusr/rocket/lib/perl5/5.24.0/os390/CORE:/z/poija01/rsusr/rocket/lib/perl5/5.24.0/os390/CORE
    LINES=23
    LOGNAME=POIJA01
    MAIL=/usr/mail/POIJA01
    MANPATH=/usr/lpp/Printsrv/man/C:/usr/man/%L::/z/poija01/rsusr/rocket/man/:/z/poija01/rsusr/rocket/man/
    NLSPATH=/usr/lib/nls/msg/%L/%N:/usr/lpp/Printsrv/en_US/%N
    PATH=./:/bin:/usr/sbin:/usr/lpp/NFS:/usr/lpp/Printsrv/bin:/sys/s390util/bin:/usr/local/bin:/z/
    poija01/rsusr/rocket/bin:/z/poija01/rsusr/rocket/bin
    PERL5LIB=:/z/poija01/rsusr/rocket/lib/perl5:/z/poija01/rsusr/rocket/lib/perl5
    PWD=/z/poija01
    RESOLVER_CONFIG=//'VTAM.TCPIP.TCPIP.DATA’
    SHELL=/bin/sh
    SHLVL=1
    STEPLIB=none
    TERM=dumb
    TZ=EST5EDT
    X_ADDR=//'VTAM.TCPIP.HOSTS.ADDRINFO’
    X_SITE=//‘VTAM.TCPIP.HOSTS.SITEINFO’
    _=/bin/env
    _BPXK_AUTOCVT=ON
    _BPX_TERMPATH=OMVS
    _CEE_RUNOPTS=FILETAG(AUTOCVT,AUTOTAG) POSIX(ON)
    _TAG_REDIR_ERR=txt
    _TAG_REDIR_IN=txt
    _TAG_REDIR_OUT=txt



  • 4.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-13-2018 06:04

    Your env looks fine, could you try to clone your repo on another machine please to make sure it’s not repository issue. Or provide us a link to it (if it is public) so we can reproduce your issue.
    Thanks, Dan.



  • 5.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-13-2018 10:06

    Dan,
    The same repository can be downloaded in Windows.

    I’ve tested further and, while I still have to execute from the /bin directory, the clone works without the --recursive parameter. This means, after cloning the the high level project, I have to then do a “git clone” for each of the sub-projects separately.
    And since I’m in the bin directory I then have to move the structure to the correct location.

    Thanks,
    Jim



  • 6.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-15-2018 05:00

    I’ve created sample repo with submodules and successfuly cloned it back. Could you please try to clone git@github.com:theuxus/submod.git" rel="nofollow noopener">this repo and provide me your output.
    PS: whats your git and bash exact version(builds)?

    Thanks, Dan.



  • 7.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-15-2018 08:45

    Dan,
    These are the results:

    bash-4.3$ git clone --recursive git@github:theuxus/submod.git
    Cloning into ‘submod’…
    FOTS2204 ssh: connect to host github port 22: EDC8127I Connection timed out. (errno2=0x76630291)
    fatal: Could not read from remote repository.

    Please make sure you have the correct access rights
    and the repository exists.



  • 8.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-16-2018 05:20

    Jim,
    I’m noticed a typo in your link: …git@github:theuxus… instead of …git@github.com:theuxus
    also I removed any private submodules from this repo. To exclude any typos please copy this commands one-by-one and give us it’s output:

    mkdir ~/submod; cd ~/submod
    git clone --recursive git@github.com:theuxus/submod.git .
    git --version
    bash --version
    which git
    

    Thanks, Dan.



  • 9.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-18-2018 12:26

    This is the output I get:

    lGEYsdlLJizHhbn2mUjvSAHQqZETYP81eFzLQNnPHt4EVVUh7VfDESU84KezmD5
    Enter passphrase for key ‘/z/poija01/.ssh/id_rsa’:
    remote: Counting objects: 6, done.
    remote: Compressing objects: 100% (5/5), done.
    remote: Total 6 (delta 1), reused 5 (delta 0), pack-reused 0
    error: cannot run index-pack: EDC5129I No such file or directory.
    fatal: fetch-pack: unable to fork off index-pack
    bash-4.3$ git --version
    git version 2.3.5_os390_b013
    bash-4.3$ bash --version
    GNU bash, version 4.2.50(49)-release (i370-ibm-openedition)
    Copyright © 2011 Free Software Foundation, Inc.
    License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html

    This is free software; you are free to change and redistribute it.
    There is NO WARRANTY, to the extent permitted by law.
    bash-4.3$ which git
    bash: which: command not found

    Jim Poinsett
    609 379 2004



  • 10.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-19-2018 06:17

    Hello Jim,
    now it is clearly not connectivity or repository issue indeed.
    As all evironments are set, source of an error could be in missing git files.
    I suggest you to unpack your git again in same directories and look for files that will not be replaced (and is missing in your current installation).
    For me it looks like you’re missing git-index-pack executable in your git-core folder.
    Thanks, Dan.



  • 11.  RE: Git z/OS error: cannot run index-pack: EDC5129I No such file or directory

    Posted 02-21-2018 11:56

    Hi Dan,
    git-index-pack is in libexec/git-core. I’ll review for other possible missing members.

    -rwxr-xr-x 112 POIJA01 OMVSGRP 6270976 Dec 27 2016 git-index-pack

    Thanks,
    Jim