Can't install v2.6.x toolchain because the git clone of nrf-sdk repo fails.

tl;dr: The clone would probably work more reliably if the nrf-toolchain-manager added the --depth 1 option, e.g.:  git clone --branch v2.6.1 https://github.com/nrfconnect/sdk-nrf --depth 1

I think GitHub is at fault and I'm on a mobile data connection. 

I'm obviously assuming such a shallow clone is ok and that this can be ultimately passed down to west?

(Version info at the bottom in the log)

EDIT:  I enabled git logging and have attached the 'git clone' logfiles.

export GIT_TRACE_PACKET=1
export GIT_TRACE=1
export GIT_CURL_VERBOSE=1

Running the erroring command (as shown in the toolchain manager verbose logging) in a shell manually:

Attempt 1

wayne@tangent /tmp % time git clone --branch v2.6.1 github.com/.../sdk-nrf

Cloning into 'sdk-nrf'...

remote: Enumerating objects: 226945, done.

remote: Counting objects: 100% (1191/1191), done.

remote: Compressing objects: 100% (703/703), done.

error: RPC failed; curl 18 HTTP/2 stream 5 was reset74.00 KiB/s 

error: 47231 bytes of body are still expected

fetch-pack: unexpected disconnect while reading sideband packet

fatal: early EOF

fatal: fetch-pack: invalid index-pack output

git clone --branch v2.6.1 github.com/.../sdk-nrf 

1.27s user 0.62s system 2% cpu 1:09.14 total

Attempt 2:

wayne@tangent /tmp % time git clone --branch v2.6.1 github.com/.../sdk-nrf

Cloning into 'sdk-nrf'...

remote: Enumerating objects: 226945, done.

remote: Counting objects: 100% (1189/1189), done.

remote: Compressing objects: 100% (710/710), done.

error: RPC failed; curl 18 HTTP/2 stream 5 was reset87.00 KiB/s 

error: 6307 bytes of body are still expected

fetch-pack: unexpected disconnect while reading sideband packet

fatal: early EOF

fatal: fetch-pack: invalid index-pack output

git clone --branch v2.6.1 github.com/.../sdk-nrf  1.19s user 0.45s system 5% cpu 27.512 total

Attempt 3 with --depth 1

wayne@tangent /tmp % time git clone --branch v2.6.1 github.com/.../sdk-nrf --depth 1

Cloning into 'sdk-nrf'...

remote: Enumerating objects: 10381, done.

remote: Counting objects: 100% (10381/10381), done.

remote: Compressing objects: 100% (8386/8386), done.

remote: Total 10381 (delta 2292), reused 4793 (delta 1457), pack-reused 0

Receiving objects: 100% (10381/10381), 32.74 MiB | 953.00 KiB/s, done.

Resolving deltas: 100% (2292/2292), done.

Note: switching to 'eef645c4a31201df353fdff5447262d7675fa1c1'.

<SNIPPED>

3.19s user 1.82s system 13% cpu 38.261 total

Toolchain manager GUI error popup text.

(these errors not appear in the toolchain manger  v1.3.1 log file but they did in v1.3.0)

There are multiple errors:

  • Failed to clone the repositories: Error: Cloning into '/opt/nordic/ncs/v2.6.1/.west/manifest-tmp'... error: RPC failed; curl 18 HTTP/2 stream 5 was reset error: 6616 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output FATAL ERROR: command exited with status 128: git clone --branch v2.6.1 github.com/.../sdk-nrf /opt/nordic/ncs/v2.6.1/.west/manifest-tmp Error: Launched process exited with non-zero status: 128 Error: Subprocess /Users/wayne/Library/Application Support/nrfconnect/nrfutil-sandboxes/toolchain-manager/0.14.2/bin/nrfutil-toolchain-manager failed with unexpected exit code Some(128)

  • Error: Cloning into '/opt/nordic/ncs/v2.6.1/.west/manifest-tmp'... error: RPC failed; curl 18 HTTP/2 stream 5 was reset error: 6616 bytes of body are still expected fetch-pack: unexpected disconnect while reading sideband packet fatal: early EOF fatal: fetch-pack: invalid index-pack output FATAL ERROR: command exited with status 128: git clone --branch v2.6.1 github.com/.../sdk-nrf /opt/nordic/ncs/v2.6.1/.west/manifest-tmp Error: Launched process exited with non-zero status: 128 Error: Subprocess /Users/wayne/Library/Application Support/nrfconnect/nrfutil-sandboxes/toolchain-manager/0.14.2/bin/nrfutil-toolchain-manager failed with unexpected exit code Some(128)

Toolchain manager log:

18:16:38.194
Initialising nrfutil module: toolchain-manager
18:16:41.915
Using nrfutil-toolchain-manager core version: 7.7.1
18:16:42.032
Using toolchain-manager version: 0.14.2
18:16:42.084
Initializing environments...
18:16:42.126
nrfutil-toolchain-manager 0.14.2 (309da40c41afa4e40c92d2c4727e2a0c95c4b816 2024-03-06)
18:16:42.211
Toolchain v2.3.0 has been added to the list
<SNIPPED>
18:16:44.678
Toolchain v2.0.0-rc2 has been added to the list
18:16:49.557
Start to install toolchain v2.6.1
18:17:15.778
Cloning nRF Connect SDK v2.6.1
18:17:15.787
Initializing environment for v2.6.1
18:18:01.579
Successfully removed toolchain directory: /opt/nordic/ncs/toolchains/580e4ef81c
18:27:36.900
Start to install toolchain v2.6.1
18:28:01.080
Cloning nRF Connect SDK v2.6.1
18:28:01.085
Initializing environment for v2.6.1
18:28:49.575
Successfully removed toolchain directory: /opt/nordic/ncs/toolchains/580e4ef81c
Parents Reply Children
Related