Skip to main content
Manfred Lotz
New Participant
Mar 21, 2024 11:49 AM UTC

git: fatal: protocol error: bad line length character

Trying to `git clone` from a repository on another z/OS system I get

$git clone -v demnt15@stutvs2a:/u/demnt15/tmp/mytest
Cloning into 'mytest'...
fatal: protocol error: bad line length character: ����
fatal: the remote end hung up unexpectedly

where the characters are 

<<^ 
88D0
CCD6

I have no idea why this happens. Any advice would be appreciated. If I try to clone from WSL in Windows I get the same error.




------------------------------
Manfred Lotz
Kyndryl Deutschland GmbH
Kelsterbach DE
------------------------------

    3 replies

    Benjamin Maloy
    Rocketeer
    Mar 22, 2024 11:28 AM UTC

    Trying to `git clone` from a repository on another z/OS system I get

    $git clone -v demnt15@stutvs2a:/u/demnt15/tmp/mytest
    Cloning into 'mytest'...
    fatal: protocol error: bad line length character: ����
    fatal: the remote end hung up unexpectedly

    where the characters are 

    <<^ 
    88D0
    CCD6

    I have no idea why this happens. Any advice would be appreciated. If I try to clone from WSL in Windows I get the same error.




    ------------------------------
    Manfred Lotz
    Kyndryl Deutschland GmbH
    Kelsterbach DE
    ------------------------------

    Hey Manfred, 

    I'm sorry you are having problems cloning your repo. This is a known issue, and unfortunately, we do not support using git as a server in this way. When you do not access a remote repo via ssh and https, your settings/rc files are not sourced, which means BPXAUTOCVT may not be getting set correctly.

    We have to recommend that you upload to a remote host like github or bitbucket, and then clone from there. Let me know if that will not work for you or if you have any other questions. You can see the relevant section of the documentation here: Restrictions (rocketsoftware.com)

    Best,
    Ben




    ------------------------------
    Benjamin Maloy
    Software Engineer I
    Rocket Internal - All Brands
    Medford MA US
    ------------------------------
    Manfred Lotz
    New Participant
    Mar 22, 2024 11:50 AM UTC

    Hey Manfred, 

    I'm sorry you are having problems cloning your repo. This is a known issue, and unfortunately, we do not support using git as a server in this way. When you do not access a remote repo via ssh and https, your settings/rc files are not sourced, which means BPXAUTOCVT may not be getting set correctly.

    We have to recommend that you upload to a remote host like github or bitbucket, and then clone from there. Let me know if that will not work for you or if you have any other questions. You can see the relevant section of the documentation here: Restrictions (rocketsoftware.com)

    Best,
    Ben




    ------------------------------
    Benjamin Maloy
    Software Engineer I
    Rocket Internal - All Brands
    Medford MA US
    ------------------------------

    Hi Ben,

    Thanks for the information. I wasn't aware that this was a limitation and hoped that I was the problem. :-) 

    Of course, github and the like does work fine when cloning from z/OS UNIX.

    -- 
    Best,
    Manfred



    ------------------------------
    Manfred Lotz
    Kyndryl Deutschland GmbH
    Kelsterbach DE
    ------------------------------
    Benjamin Maloy
    Rocketeer
    Mar 22, 2024 1:39 PM UTC

    Hi Ben,

    Thanks for the information. I wasn't aware that this was a limitation and hoped that I was the problem. :-) 

    Of course, github and the like does work fine when cloning from z/OS UNIX.

    -- 
    Best,
    Manfred



    ------------------------------
    Manfred Lotz
    Kyndryl Deutschland GmbH
    Kelsterbach DE
    ------------------------------

    Thanks Manfred, let me know if you have any other questions. We will look into the issue some more and let you know if there are any updates.



    ------------------------------
    Benjamin Maloy
    Software Engineer I
    Rocket Internal - All Brands
    Medford MA US
    ------------------------------