Skip to main content
Sep 28, 2017 12:59 PM UTC

Git fatal: Could not switch to '/rsusr/rocket/etc/': EDC5129I No such file or directory

A user tried to use this command:
$ git config --system --edit
fatal: Could not switch to ‘/rsusr/rocket/etc/’: EDC5129I No such file or directory.

Did I miss a configuration item during the install? I didn’t see anything in the zOS git Release Notes.pdf.

These commands work properly:
git config --global --edit and git config --local --edit

Thanks.

    7 replies

    Tatiana Balaburkina
    Rocketeer
    Sep 29, 2017 6:13 AM UTC

    A user tried to use this command:
    $ git config --system --edit
    fatal: Could not switch to ‘/rsusr/rocket/etc/’: EDC5129I No such file or directory.

    Did I miss a configuration item during the install? I didn’t see anything in the zOS git Release Notes.pdf.

    These commands work properly:
    git config --global --edit and git config --local --edit

    Thanks.

    Hi,

    We recommend to install Vim and make this setting:

    git config --glob core.editor “vim”

    Sep 29, 2017 12:33 PM UTC

    A user tried to use this command:
    $ git config --system --edit
    fatal: Could not switch to ‘/rsusr/rocket/etc/’: EDC5129I No such file or directory.

    Did I miss a configuration item during the install? I didn’t see anything in the zOS git Release Notes.pdf.

    These commands work properly:
    git config --global --edit and git config --local --edit

    Thanks.

    Hi,
    We are using this: core.editor=/bin/vi -W filecodeset=ISO8859-1 which is set from the git config --global core.editor “/bin/vi -W filecodeset=ISO8859-1” command.

    From the first time Git setup…
    /etc/gitconfig file: Contains values for every user on the system and all their repositories. If you pass the option --system to git config, it reads and writes from this file specifically.

    How do I configure Git on z/OS to use my system config file? (/myrocketdir/gitconfig)

    I read this but couldn’t determine what the resolution was.

    Thanks

    Tatiana Balaburkina
    Rocketeer
    Oct 3, 2017 7:47 AM UTC

    Hi,
    We are using this: core.editor=/bin/vi -W filecodeset=ISO8859-1 which is set from the git config --global core.editor “/bin/vi -W filecodeset=ISO8859-1” command.

    From the first time Git setup…
    /etc/gitconfig file: Contains values for every user on the system and all their repositories. If you pass the option --system to git config, it reads and writes from this file specifically.

    How do I configure Git on z/OS to use my system config file? (/myrocketdir/gitconfig)

    I read this but couldn’t determine what the resolution was.

    Thanks

    Hi,

    As I know, there is no way to change the path to system config.
    Thank for reporting. We have found an issue related with system config.

    Tatiana Balaburkina
    Rocketeer
    Oct 3, 2017 7:48 AM UTC

    Hi,

    As I know, there is no way to change the path to system config.
    Thank for reporting. We have found an issue related with system config.

    Internal ticket

    Oct 3, 2017 9:57 AM UTC

    A user tried to use this command:
    $ git config --system --edit
    fatal: Could not switch to ‘/rsusr/rocket/etc/’: EDC5129I No such file or directory.

    Did I miss a configuration item during the install? I didn’t see anything in the zOS git Release Notes.pdf.

    These commands work properly:
    git config --global --edit and git config --local --edit

    Thanks.

    I tried setting the environment variable GIT_CONFIG_NOSYSTEM which is supposed to skip reading the settings from the system-wide $(prefix)/etc/gitconfig file but it didn’t work.

    Thanks.

    New Participant
    Feb 3, 2021 1:00 PM UTC

    A user tried to use this command:
    $ git config --system --edit
    fatal: Could not switch to ‘/rsusr/rocket/etc/’: EDC5129I No such file or directory.

    Did I miss a configuration item during the install? I didn’t see anything in the zOS git Release Notes.pdf.

    These commands work properly:
    git config --global --edit and git config --local --edit

    Thanks.

    I know this is very old, but it seems this is still an issue with git version 2.14.4_zos_b09 as I've just run into it as well. I've solved the problem at our site by hex-editing the git code and altering the /rsuser/ported located near x145F00 and replacing it with low values (x00). Now, git looks for the gitconfig file in /etc/gitconfig for system-level settings. Of course, I've made a backup of the original, unedited code first. I'm wondering what the status of the internal ticket opened by Tatiana on 2017/10/03 is.

    ------------------------------
    Andrew Arentsen
    Acuity Insurance
    ------------------------------
    Alex Tishkov
    Rocketeer
    Feb 10, 2021 10:53 PM UTC
    I know this is very old, but it seems this is still an issue with git version 2.14.4_zos_b09 as I've just run into it as well. I've solved the problem at our site by hex-editing the git code and altering the /rsuser/ported located near x145F00 and replacing it with low values (x00). Now, git looks for the gitconfig file in /etc/gitconfig for system-level settings. Of course, I've made a backup of the original, unedited code first. I'm wondering what the status of the internal ticket opened by Tatiana on 2017/10/03 is.

    ------------------------------
    Andrew Arentsen
    Acuity Insurance
    ------------------------------
    Hi, Andrew

    This issue was fixed in 2017 with build 13.

    Rocket has moved to a new system – conda – for downloading, installing, and upgrading all z/OS open source ports developed by Rocket.
    All ported tools should be installed via package manager conda.

    https://www.rocketsoftware.com/openappdev-for-z

    Regards, Alex

    ------------------------------
    Alex Tishkov
    Rocket Software
    ------------------------------