nRF Connect v2.0.0 installation hangs at "Updating memfault repository" on macOS

My laptop is running the latest macOS 12.4.  It is a 2021 Macbook 14" with M1 Max.

I updated nRF Connect For Desktop and Toolchain Manager to the latest versions, then I tried to install nRF Connect SDK v2.0.0.  Most stages of the process completed in a matter of minutes, but it's been stuck on the memfault stage for over half an hour and I'm not sure what to do now:

2022-06-08T21:22:14.569Z DEBUG Application data folder: /Users/admin/Library/Application Support/nrfconnect/pc-nrfconnect-toolchain-manager
2022-06-08T21:22:14.920Z ERROR Failed to get the library versions: JLINKARM_DLL_COULD_NOT_BE_OPENED (Origin: "Failed to get module versions.")
2022-06-08T21:22:15.197Z DEBUG App pc-nrfconnect-toolchain-manager v1.0.0 official
2022-06-08T21:22:15.197Z DEBUG App path: /Users/admin/.nrfconnect-apps/node_modules/pc-nrfconnect-toolchain-manager
2022-06-08T21:22:15.197Z DEBUG nRFConnect 3.11.1, required by the app is (^3.11.1)
2022-06-08T21:22:15.197Z DEBUG nRFConnect path: /Applications/nRF Connect for Desktop.app/Contents/Resources/app.asar
2022-06-08T21:22:15.197Z DEBUG HomeDir: /Users/admin
2022-06-08T21:22:15.197Z DEBUG TmpDir: /var/folders/30/dhcgz66d4qjggzrlkl0grfkm0000gn/T/
2022-06-08T21:22:15.214Z DEBUG Downloading index json with buffer length: 7347
2022-06-08T21:22:15.218Z DEBUG Index json has been downloaded with result: [
    {
        "version": "v1.4.99-dev1",
        "toolchains": [
            {
                "version": "20201207",
                "name": "ncs-toolchain-v1.4.99-dev1-20201207-43d4695.dmg",
                "sha512": "9eab039a75e8b2003e896b1a5832b642524fd225eb8b4d03fda4593e610785401e7600ac3f63533ea2bfee51bdd52eece0bb52073f79d20978ad3a01e5803d18"
            }
        ]
    },
    {
        "version": "v1.4.1",
        "toolchains": [
            {
                "version": "20201215",
                "name": "ncs-toolchain-v1.4.1-20201215-7ecf886.dmg",
                "sha512": "9f8b07e1074177a3f821dc5b5eeccdf3af6cf7e38531db809ee5e185aeab12e5e7e92bf9ae7096ff2ec5be3d112bfacac90dea17ed02354c416d4404a1981d56"
            }
        ]
    },
    {
        "version": "v1.4.0",
        "toolchains": [
            {
                "version": "20201030",
                "name": "ncs-toolchain-v1.4.0-20201030-2750604.dmg",
                "sha512": "b856df471eb8c05eef6bcadb1df0c8569d68b5da1f2e9f6bd5a7aaf80e35d4d02f615bba7bc10767abb88274d6d65e0e5565ea775831c0228170102d03c943fb"
            }
        ]
    },
    {
        "version": "v1.3.2",
        "toolchains": [
            {
                "version": "20201012",
                "name": "ncs-toolchain-v1.3.2-20201012-09b2ade.dmg",
                "sha512": "2ba77cb1ab4e3f43c44214d653e78efb2b567d95faead5804aebaafeb7bba4691adc432d57f368aad2b8105b489e21cd640a9bd8af98a8697ed53d653f3b9dc1"
            }
        ]
    },
    {
        "version": "v1.3.1",
        "toolchains": [
            {
                "version": "20200921",
                "name": "ncs-toolchain-v1.3.1-20200921-509f057.dmg",
                "sha512": "d02566fcd719b44db2985068e0d190d93876d8d867d53a8e0119de0a6060522a608305f2cf1bc61e3c89c7eb999e4cdfbad5654424e7cda746ff7cbf21438bb6"
            }
        ]
    },
    {
        "version": "v1.3.0",
        "toolchains": [
            {
                "version": "20200618",
                "name": "ncs-toolchain-v1.3.0-20200618-509f057.dmg",
                "sha512": "a17558612678b33afd1b710a96e1ff68c56b7a75e52d63cd48f8781f8b9a8bca700e05e9a855d305d501a080ee930ebbda225df7f1b5575b1a0a8c5bef5f3621"
            }
        ]
    },
    {
        "version": "v1.3.0-rc1",
        "toolchains": [
            {
                "version": "20200602",
                "name": "ncs-toolchain-v1.3.0-rc1-20200602-dbcfd6c.dmg",
                "sha512": "6d43ac2808ba3ba6a17e3f1c31eeb679886aa8a16fca6f3ad4b82077c66c3210e3c46581fc852da5fce07d098f170cc780cc05a41148ddf6a7032a0ff315307d"
            },
            {
                "version": "20200609",
                "name": "ncs-toolchain-v1.3.0-rc1-20200609-590da70.dmg",
                "sha512": "2c58b3b2b4773da95ca95a2cea5e03ed48144b0d2dc0e03e00b06d8f65c56e5091d6b6410d78251ef5aa3bd03c8718cf5a04b5e8c7f3f08eadf1b518129dc708"
            }
        ]
    },
    {
        "version": "v1.4.2",
        "toolchains": [
            {
                "version": "20210113",
                "name": "ncs-toolchain-v1.4.2-20210113-7ecf886.dmg",
                "sha512": "e4b9f8cac9e77305be89e3ea8b90dbcc22415e87379ff34c7c0cb0100c5109498167e22829e8bad5c01a84a84309467f970d7b4b8ecc46bf8b6724ef6f70e8cb"
            }
        ]
    },
    {
        "version": "v1.5.0-rc1",
        "toolchains": [
            {
                "version": "20210215",
                "name": "ncs-toolchain-v1.5.0-rc1-20210215-2c30941.dmg",
                "sha512": "4c8c127c27ca67ac555f6d02c4bee3c50fc53d32fc6989a7158c2c95be87c2fb5b86b0953a8eb99342c6145b3fbfea035cda2e7e13d0b921868c63c7f1f4388f"
            }
        ]
    },
    {
        "version": "v1.5.0",
        "toolchains": [
            {
                "version": "20210225",
                "name": "ncs-toolchain-v1.5.0-20210225-607a0e0.dmg",
                "sha512": "40d395b683c1b7680db30ba167a7d7742d2b756d7f7f8c2b4780091339f8141779b6e2d5f236b6e4ff13eba0ccf67a3240108ec76180950fbe2346a60220d404"
            }
        ]
    },
    {
        "version": "v1.5.1-rc1",
        "toolchains": [
            {
                "version": "20210409",
                "name": "ncs-toolchain-v1.5.1-rc1-20210409-96ab6aa.dmg",
                "sha512": "c4b22656ce6e08b6881cd07fe446e75bb4400582f6dcf9d93e53feb116a1e3819a5d08dc0e87abaaf230054c8a396d5972b3573ad653f9bc5cdf479df336e5bc"
            }
        ]
    },
    {
        "version": "v1.5.1",
        "toolchains": [
            {
                "version": "20210416",
                "name": "ncs-toolchain-v1.5.1-20210416-96ab6aa.dmg",
                "sha512": "b853cb30f76601ea9edefa2faade433280517b2262b1126efacf030c9c5582629b25974dfde4038327a5ffccc5a17a801597aee6e43f43767038abd3b8a89714"
            }
        ]
    },
    {
        "version": "v1.6.0",
        "toolchains": [
            {
                "version": "20210701",
                "name": "ncs-toolchain-v1.6.0-20210701-de414c8.dmg",
                "sha512": "8aab26ffb89ff250882e272b262ddacc38fc1dc4cbec39f4e76468a0bfd899bc571caa1cb60b467e396422765fd207e8b48aaf48b25b0741ea375b39bd52d691"
            }
        ]
    },
    {
        "version": "v1.6.1",
        "toolchains": [
            {
                "version": "20210907",
                "name": "ncs-toolchain-v1.6.1-20210907-80db958.dmg",
                "sha512": "b2e5c2da037e8ce577a799427b4a4bcc4a5d2608126bd152da4c52664e16cd2443528c040426163b7938f65c0c62dc80038ae76d74f72cb7b2e66fe9f254f6db"
            }
        ]
    },
    {
        "version": "v1.7.0",
        "toolchains": [
            {
                "version": "20210923",
                "name": "ncs-toolchain-v1.7.0-20210923-4c380d0.dmg",
                "sha512": "6691fee7190f940e6adfa8fd2881ca14bae2a299671a58e21b8a1727944bf31542f62b97adb8c81c32d1baed03badfb96247de5d71f24052f00fc0f62124d5ec"
            }
        ]
    },
    {
        "version": "v1.7.1",
        "toolchains": [
            {
                "version": "20211028",
                "name": "ncs-toolchain-v1.7.1-20211028-4c380d0.dmg",
                "sha512": "6d567b869613d8722cf542e3d7bea883987958e70dd2e6ba69ac846ad68ff002c676c9b1647bd7dc1197af3ac6c75d56945a8de8f93655dc1656d19391df992a"
            }
        ]
    },
    {
        "version": "v1.8.0",
        "toolchains": [
            {
                "version": "20220103",
                "name": "ncs-toolchain-v1.8.0-20220103-7d41729.dmg",
                "sha512": "fb931ed3773c6745c1eeca4963d30aebe2f1a1b41a4340121fc7999ccb0340a76d671defa50b5bdae1b4317d9e49bd7a08583cc6d210fe30c16b0e0bbcfc736b"
            }
        ]
    },
    {
        "version": "v1.9.0",
        "toolchains": [
            {
                "version": "20220217",
                "name": "ncs-toolchain-v1.9.0-20220217-728bbd5.dmg",
                "sha512": "bcaa5697112032effac35ccfa9a9a111fbf832e85e5f9d3e5b64ca05ddaa0fcfaf02a119f37b36c5bc17e4633642bde3cd55118c61c1a0b6c3106c25b942e144"
            }
        ]
    },
    {
        "version": "v1.9.1",
        "toolchains": [
            {
                "version": "20220304",
                "name": "ncs-toolchain-v1.9.1-20220304-728bbd5.dmg",
                "sha512": "5475252a21ee6c378550bf0824f581e32f03edf4d6b072ce2e54feee062cd6b8a80ed0de332393c667c7be54417fb14a8814b49a6c5382a994867240ab07a69d"
            }
        ]
    }
]
2022-06-08T21:22:15.234Z INFO Toolchain v1.4.99-dev1 has been added to the list
2022-06-08T21:22:15.237Z INFO Toolchain v1.4.1 has been added to the list
2022-06-08T21:22:15.240Z INFO Toolchain v1.4.0 has been added to the list
2022-06-08T21:22:15.322Z INFO Toolchain v1.3.2 has been added to the list
2022-06-08T21:22:15.334Z INFO Toolchain v1.3.1 has been added to the list
2022-06-08T21:22:15.340Z INFO Toolchain v1.3.0 has been added to the list
2022-06-08T21:22:15.356Z INFO Toolchain v1.3.0-rc1 has been added to the list
2022-06-08T21:22:15.468Z INFO Toolchain v1.4.2 has been added to the list
2022-06-08T21:22:15.482Z INFO Toolchain v1.5.0-rc1 has been added to the list
2022-06-08T21:22:15.487Z INFO Toolchain v1.5.0 has been added to the list
2022-06-08T21:22:15.521Z INFO Toolchain v1.5.1-rc1 has been added to the list
2022-06-08T21:22:15.552Z INFO Toolchain v1.5.1 has been added to the list
2022-06-08T21:22:15.573Z INFO Toolchain v1.6.0 has been added to the list
2022-06-08T21:22:15.578Z INFO Toolchain v1.6.1 has been added to the list
2022-06-08T21:22:15.596Z INFO Toolchain v1.7.0 has been added to the list
2022-06-08T21:22:15.623Z INFO Toolchain v1.7.1 has been added to the list
2022-06-08T21:22:15.635Z INFO Toolchain v1.8.0 has been added to the list
2022-06-08T21:22:15.644Z INFO Toolchain v1.9.0 has been added to the list
2022-06-08T21:22:15.647Z INFO Toolchain v1.9.1 has been added to the list
2022-06-08T21:22:18.198Z INFO Start to install toolchain v2.0.0
2022-06-08T21:22:18.199Z INFO Installing ncs-toolchain-macos-x86_64-v2.0.0-20220602T093604-9389261.tar.gz at /opt/nordic/ncs/toolchains/v2.0.0
2022-06-08T21:22:18.199Z DEBUG Install with toolchain version 20220602T093604
2022-06-08T21:22:18.199Z DEBUG Install with sha512 80a4cdeefef510669409fde93d7978ca138a787df93a071b4f24a3754bfbd38f7039b0e6a09bea0f15aa19f2a09ceba0c3daaee6d16b2710799733897f65e9e7
2022-06-08T21:25:40.389Z INFO Cloning nRF Connect SDK v2.0.0
2022-06-08T21:25:40.410Z INFO Initializing environment for v2.0.0
2022-06-08T21:25:51.963Z INFO Updating zephyr repository for v2.0.0
2022-06-08T21:26:29.467Z INFO Updating mcuboot repository for v2.0.0
2022-06-08T21:26:30.740Z INFO Updating mbedtls repository for v2.0.0
2022-06-08T21:26:37.270Z INFO Updating nrfxlib repository for v2.0.0
2022-06-08T21:26:46.256Z INFO Updating trusted repository for v2.0.0
2022-06-08T21:26:50.691Z INFO Updating tfm repository for v2.0.0
2022-06-08T21:26:52.012Z INFO Updating matter repository for v2.0.0
2022-06-08T21:27:09.131Z INFO Updating cjson repository for v2.0.0
2022-06-08T21:27:10.779Z INFO Updating cmock repository for v2.0.0
2022-06-08T21:27:12.113Z INFO Updating unity repository for v2.0.0
2022-06-08T21:27:17.755Z INFO Updating zcbor repository for v2.0.0
2022-06-08T21:27:18.834Z INFO Updating memfault repository for v2.0.0

Parents
  • Hi,

    Could you try going to the menu and clicking "Update SDK"? Does that help?

    Regards,

    Priyanka

  • I just restarted the whole process.  Might want to look into why the installer sometimes hangs, though, since multiple people have seen this bug.

  • Hi,

    Such problems can arise if the installation process is not properly completed maybe due to some VPN or firewall issues. There have been similar issues and similar solutions can be viewed here.

    But thank you for your feedback. Slight smile

    -Priyanka

  • I don't have a VPN or firewall on this Mac, so that definitely wasn't the problem here.

    Also the toolchain did show up in a weird location (/opt/nordic/ncs/toolchains instead of /opt/nordic/ncs/v2.0.0/toolchain) after I repeated the installation.  Is this the same problem described at the link?  I'm not sure whether I should manually move it over or not.

    Could you please file internal bug tickets for both of these issues so that they can be fixed in a future NCS release?

  • I don't think this installation is completing properly.  I've tried 3 times:

    1. Launch nRF Connect for Desktop
    2. Enter Toolchain Manager
    3. Install 2.0.0
    4. <hangs at memfault stage>
    5. Quit
    6. Launch nRF Connect for Desktop
    7. Enter Toolchain Manager
    8. Remove 2.0.0 environment
    9. Quit
    10. Repeat the process

    The hang in #4 happens every time.  It's not a fluke.

    It is the git process that is getting wedged:

    # ps auxwww | grep memfault
    admin 21905 0.0 0.0 34421664 5108 ?? S 4:25PM 0:00.03 git fetch -f --tags -- github.com/.../memfault-firmware-sdk 0.29.1

    lsof shows that it doesn't have any sockets open, which means it's not caused by a network connection getting stalled:

    # lsof -n | grep ^git
    git 21905 admin cwd DIR 1,15 96 21527642 /opt/nordic/ncs/v2.0.0/modules/lib/memfault-firmware-sdk
    git 21905 admin txt REG 1,15 3033288 21431331 /opt/nordic/ncs/toolchains/v2.0.0/Cellar/git/2.32.0_1/bin/git
    git 21905 admin txt REG 1,15 4376160 21466510 /private/var/db/oah/0b833e18ecef0e9978fe7e49ac779dfffc2d441c9d93d8ab63ab224abc515f59/e20bb4c3db2bbdcbfffe26d96bb986c6556a61d8e3531c6d1580422d993a51ca/git.aot
    git 21905 admin txt REG 1,15 233056 1152921500312788000 /usr/libexec/rosetta/runtime
    git 21905 admin txt REG 1,15 381680 19267166 /Library/Apple/usr/libexec/oah/libRosettaRuntime
    git 21905 admin txt REG 1,15 59156 21449869 /opt/nordic/ncs/toolchains/v2.0.0/Cellar/gettext/0.21/lib/libintl.8.dylib
    git 21905 admin txt REG 1,15 59416 21466514 /private/var/db/oah/0b833e18ecef0e9978fe7e49ac779dfffc2d441c9d93d8ab63ab224abc515f59/48e5f74d07549aebd9346c19f80c7edb4b028f1213ec387215e9f9600c215d27/libintl.8.dylib.aot
    git 21905 admin txt REG 1,15 46864 19266539 /Library/Preferences/Logging/.plist-cache.DrKORzJo
    git 21905 admin txt REG 1,15 572112 21439663 /opt/nordic/ncs/toolchains/v2.0.0/Cellar/pcre2/10.37_1/lib/libpcre2-8.0.dylib
    git 21905 admin txt REG 1,15 662792 21466512 /private/var/db/oah/0b833e18ecef0e9978fe7e49ac779dfffc2d441c9d93d8ab63ab224abc515f59/2ab2f015a791b7cda2f74d3b5043c2115027930855e009667b9e5a2fd45247e8/libpcre2-8.0.dylib.aot
    git 21905 admin txt REG 1,15 142696 21527681 /opt/nordic/ncs/v2.0.0/modules/lib/memfault-firmware-sdk/.git/objects/pack/pack-ea43bc9869bb0c8dd373be2ebf1fa3e7048aa424.idx
    git 21905 admin txt REG 1,15 1994288 21527680 /opt/nordic/ncs/v2.0.0/modules/lib/memfault-firmware-sdk/.git/objects/pack/pack-ea43bc9869bb0c8dd373be2ebf1fa3e7048aa424.pack
    git 21905 admin txt REG 1,15 2160656 1152921500312781597 /usr/lib/dyld
    git 21905 admin txt REG 1,15 812723 19297118 /private/var/db/oah/0b833e18ecef0e9978fe7e49ac779dfffc2d441c9d93d8ab63ab224abc515f59/51d62da53a337e9df4a5182e605fa09682db158d34d7f285356069d2009afcf7/dyld.aot
    git 21905 admin 0u unix 0x5d449eafc79ecf1b 0t0 ->0x5d449eafc79ece53
    git 21905 admin 1u unix 0x5d449eafc79ed623 0t0 ->0x5d449eafc79ed55b
    git 21905 admin 2u unix 0x5d449eafc79edb9b 0t0 ->0x5d449eafc79ed6eb
    git 21905 admin 3w REG 1,15 0 21527679 /opt/nordic/ncs/v2.0.0/modules/lib/memfault-firmware-sdk/.git/FETCH_HEAD


    This seems to be getting invoked from west.  Running this manually completes without error and I see that /opt/nordic/ncs/v2.0.0/modules/lib/memfault-firmware-sdk gets populated:

    cd /opt/nordic/ncs/v2.0.0
    /opt/nordic/ncs/toolchains/v2.0.0/Cellar/[email protected]/3.9.6/Frameworks/Python.framework/Versions/3.9/Resources/Python.app/Contents/MacOS/Python /opt/nordic/ncs/toolchains/v2.0.0/bin/west update

    Maybe update to a newer version of git in the SDK?  I've seen some git versions from a few months ago inexplicably hanging too, on AWS Ubuntu Linux hosts.

  • Hi,

    This is an issue that will be fixed in the new release. The current workaround is just to reopen the app and try "Update SDK". Sorry for the trouble.

    -Priyanka

Reply Children
Related