Unable to fetch from nRF Connect SDK github repository

I'm attempting to initialise my first zephyr project using the nRF SDK, and have been following the academy course on the nRF boards. Problems arise on the install SDK (2.6.1)-step where `west update` fails, returning a git: broken pipe error. Several people (all on MacOS, myself included) have attempted the the installation, all getting the same result. Thinking it might be caused by VSCode, I tried manually installing the toolchain and SDK using the nrfutil CLI tool. `west update` still fails, and I've been able to pinpoint the issue to `git fetch`. The following is the output of executing `git fetch` from within the local nrf repository:

usage: git rev-list [<options>] <commit-id>... [-- <path>...]
  limiting output:
    --max-count=<n>
    --max-age=<epoch>
    --min-age=<epoch>
    --sparse
    --no-merges
    --min-parents=<n>
    --no-min-parents
    --max-parents=<n>
    --no-max-parents
    --remove-empty
    --all
    --branches
    --tags
    --remotes
    --stdin
    --quiet
  ordering output:
    --topo-order
    --date-order
    --reverse
  formatting output:
    --parents
    --children
    --objects | --objects-edge
    --unpacked
    --header | --pretty
    --[no-]object-names
    --abbrev=<n> | --no-abbrev
    --abbrev-commit
    --left-right
    --count
  special purpose:
    --bisect
    --bisect-vars
    --bisect-all
error: https://github.com/nrfconnect/sdk-nrf did not send all necessary objects

  • Hi Mats

    Could you post the error log from west?

    I have had a few cases in the past where OSX users had an issue with the buffer size. Could you try to increase it with the following command git config --global http.postBuffer 157286400 and try west again?

    Regards

    Runar

  • Thank you for taking the time to look into this, and getting back to me. I attempted increasing the git buffer size, however `west update`, and thus `git fetch` as well, still fails. Here's the output of the verbose `west update` command:

    === updating zephyr (zephyr):
    --- zephyr: fetching, need revision v3.5.99-ncs1-1
    remote: Enumerating objects: 1074562, done.
    Receiving objects: 100% (1074562/1074562), 594.81 MiB | 5.01 MiB/s, done.
    remote: Total 1074562 (delta 0), reused 0 (delta 0), pack-reused 1074562 (from 1)
    Resolving deltas: 100% (811240/811240), done.
    usage: git rev-list [<options>] <commit-id>... [-- <path>...]
      limiting output:
        --max-count=<n>
        --max-age=<epoch>
        --min-age=<epoch>
        --sparse
        --no-merges
        --min-parents=<n>
        --no-min-parents
        --max-parents=<n>
        --no-max-parents
        --remove-empty
        --all
        --branches
        --tags
        --remotes
        --stdin
        --quiet
      ordering output:
        --topo-order
        --date-order
        --reverse
      formatting output:
        --parents
        --children
        --objects | --objects-edge
        --unpacked
        --header | --pretty
        --[no-]object-names
        --abbrev=<n> | --no-abbrev
        --abbrev-commit
        --left-right
        --count
      special purpose:
        --bisect
        --bisect-vars
        --bisect-all
    error: https://github.com/nrfconnect/sdk-zephyr did not send all necessary objects
    
    FATAL ERROR: command exited with status 1: fetch -f --tags -- https://github.com/nrfconnect/sdk-zephyr v3.5.99-ncs1-1

  • Did you manage to install the toolchain or did it also fail? 

    You could also try as a workaround to install the SDK manually https://files.nordicsemi.com/artifactory/ncs-src-mirror/external/v2.6.1/src.tar.gz 

    I saw there was some discussion internally last night regarding a smiliar issue, it looks like github had a hiccup https://www.githubstatus.com/incidents/r3x7x31k7nn1 

    Regards

    Runar

  • No problems with the toolchain. I'll see if I get it working by installing manually, though it would seem the link you provided is faulty...

    Through a browser

    Attempting with wget

    $ wget https://files.nordicsemi.com/artifactory/ncs-src-mirror/external/v2.6.1/src.tar.gz
    --2024-09-17 09:50:04--  https://files.nordicsemi.com/artifactory/ncs-src-mirror/external/v2.6.1/src.tar.gz
    Resolving files.nordicsemi.com (files.nordicsemi.com)... 20.101.176.184
    Connecting to files.nordicsemi.com (files.nordicsemi.com)|20.101.176.184|:443... connected.
    HTTP request sent, awaiting response... 404
    2024-09-17 09:50:04 ERROR 404: (no description).

    Regarding the Github issue:

    Of course, it could well be related, though as per this quote from the report:

    We are investigating failed connections for Git SSH. Customers may be experiencing failed SSH connections both in CI and interactively. Retrying the connection may be successful. Git HTTP connections appear to be unaffected.

    It would seem the issue was strictly related to SSH, whereas my problems stem from HTTP.

    Thank you for your help with this issue.

  • You could try to follow this link https://reinaldorauch.dev.br/git-how-to-correct-missing-object-errors is has fixed similiar issues in the past according to a tip I got. 

    And the correct link is https://files.nordicsemi.com/ui/native/ncs-src-mirror/external/ 

Related