This post is older than 2 years and might not be relevant anymore
More Info: Consider searching for newer posts

Toolchain fails to install SDK v1.6.0

I am trying to install nRF Connect SDK v1.6.0. For some reason the download speed is extremely slow, and even fails without the ability to resume automatically. On two occasions Toolchain Manager v0.9.3 claimed it had successfully installed the SDK but I couldn't locate boards, projects, or even zephyr root folder in SEGGER, as if the download was incomplete. Is there a way I can manually download the necessary files and feed them to the Toolchain?

Parents
  • Hi Markus,

    Thanks for your reply. This did the trick!

    I think I also found what the original problem was... First time I ran 'ncsmgr init-ncs', it failed after pulling repositories to 'ncs/v1.6.0/.west/manifest-tmp/.git/'. Looking at the logs, I realized it has failed to move'.west/manifest-tmp' to 'nrf':

    .
    .
    .
     * [new tag]             v1.6.0            -> v1.6.0
     * [new tag]             v1.6.0-rc1        -> v1.6.0-rc1
     * [new tag]             v1.6.0-rc2        -> v1.6.0-rc2
     * [new tag]             v1.6.0-rc3        -> v1.6.0-rc3
    1b091a830bf319f8472b7ddbbca443300c2c6478 refs/tags/v1.6.0
    Updating files: 100% (4279/4279), done.
    Note: switching to 'v1.6.0'.

    You are in 'detached HEAD' state. You can look around, make experimental
    changes and commit them, and you can discard any commits you make in this
    state without impacting any branches by switching back to a branch.

    If you want to create a new branch to retain commits you create, you may
    do so (now or later) by using -c with the switch command. Example:

      git switch -c <new-branch-name>

    Or undo this operation with:

      git switch -

    Turn off this advice by setting config variable advice.detachedHead to false

    HEAD is now at 7a076c22d VERSION: 1.6.0
    Traceback (most recent call last):
      File "shutil.py", line 788, in move
    PermissionError: [WinError 5] Access is denied: 'C:\\Users\\( , )_( , )\\ncs\\v1.6.0\\.west\\manifest-tmp' -> 'C:\\Users\\( , )_( , )\\ncs\\v1.6.0\\nrf'

    During handling of the above exception, another exception occurred:

    Traceback (most recent call last):
      File "runpy.py", line 193, in _run_module_as_main
      File "runpy.py", line 86, in _run_code
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Scripts\west.exe\__main__.py", line 7, in <module>
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\main.py", line 779, in main
        app.run(argv or sys.argv[1:])
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\main.py", line 106, in run
        self.run_command(argv)
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\main.py", line 336, in run_command
        cmd.run(args, unknown, self.topdir, manifest=self.manifest)
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\commands.py", line 132, in run
        self.do_run(args, unknown)
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\project.py", line 198, in do_run
        topdir = self.bootstrap(args)
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\project.py", line 295, in bootstrap
        shutil.move(os.fspath(tempdir), os.fspath(manifest_abspath))
      File "shutil.py", line 800, in move
      File "shutil.py", line 737, in rmtree
      File "shutil.py", line 610, in _rmtree_unsafe
      File "shutil.py", line 610, in _rmtree_unsafe
      File "shutil.py", line 610, in _rmtree_unsafe
      File "shutil.py", line 615, in _rmtree_unsafe
      File "shutil.py", line 613, in _rmtree_unsafe
    PermissionError: [WinError 5] Access is denied: 'C:\\Users\\( , )_( , )\\ncs\\v1.6.0\\.west\\manifest-tmp\\.git\\objects\\pack\\pack-4a806be0d26bb3ed8245b13c4bf7b8dd4608981c.idx'
    HEAD is now at 7a076c22d VERSION: 1.6.0
    /C/Users/( , )_( , )/ncs/v1.6.0
    done
    Updating repos ...
    Traceback (most recent call last):
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 172, in _mpath
        path = cp.get('manifest', 'path')
      File "configparser.py", line 781, in get
      File "configparser.py", line 1149, in _unify_values
    configparser.NoSectionError: No section: 'manifest'

    The above exception was the direct cause of the following exception:

    Traceback (most recent call last):
      File "runpy.py", line 193, in _run_module_as_main
      File "runpy.py", line 86, in _run_code
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Scripts\west.exe\__main__.py", line 7, in <module>
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\main.py", line 779, in main
        app.run(argv or sys.argv[1:])
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\main.py", line 106, in run
        self.run_command(argv)
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\main.py", line 336, in run_command
        cmd.run(args, unknown, self.topdir, manifest=self.manifest)
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\commands.py", line 132, in run
        self.do_run(args, unknown)
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\project.py", line 806, in do_run
        self.update_all()
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\app\project.py", line 860, in update_all
        self.manifest = Manifest.from_file(
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 1103, in from_file
        (mpath, mname) = _mpath(topdir=topdir)
      File "C:\Users\( , )_( , )\ncs\v1.6.0\toolchain\opt\bin\Lib\site-packages\west\manifest.py", line 177, in _mpath
        raise MalformedConfig('no "manifest.path" config option is set') from e
    west.manifest.MalformedConfig: no "manifest.path" config option is set
    done
    usage: west [-h] [-z ZEPHYR_BASE] [-v] [-V] <command> ...
    west: error: argument <command>: invalid choice: 'zephyr-export' (choose from 'init', 'update', 'list', 'manifest', 'diff', 'status', 'forall', 'help', 'config', 'topdir', 'selfupdate')

    $

    Took me a while but I eventually found it my antivirus was checking the files in '.west/manifest-tmp'. This would prevent the folder to be moved until the scan operation was complete. In reality, this would probably take a fraction of a second but was conflicting with the script's operation. It might make life easier for everyone if you introduce a short delay before that operation in your script.

  • Thanks a lot for your feedback, Iman! I’m glad to hear that you could resolve the issue :-)

    ibiglari said:
    Took me a while but I eventually found it my antivirus was checking the files in '.west/manifest-tmp'. This would prevent the folder to be moved until the scan operation was complete. In reality, this would probably take a fraction of a second but was conflicting with the script's operation. It might make life easier for everyone if you introduce a short delay before that operation in your script.

    I will feedback this to our development team. Thanks for the input!

    Cheers,

    Markus

Reply
  • Thanks a lot for your feedback, Iman! I’m glad to hear that you could resolve the issue :-)

    ibiglari said:
    Took me a while but I eventually found it my antivirus was checking the files in '.west/manifest-tmp'. This would prevent the folder to be moved until the scan operation was complete. In reality, this would probably take a fraction of a second but was conflicting with the script's operation. It might make life easier for everyone if you introduce a short delay before that operation in your script.

    I will feedback this to our development team. Thanks for the input!

    Cheers,

    Markus

Children
No Data
Related