Building on windows fails - npm run init fails downloading rust_deps_win_0.1.6.zip

I cannot build brave on Windows 10. All attempts npm run init fails with an error downloading rust_deps_win_0.1.6.zip. - <urlopen error only got 505626008 of 507378311 bytes>

The github issue is here but zero traction:

I am completely blocked. Please advise. Below are software versions I am using.

 OS: Windows 10
 Visual Studio: VS2019 Community
 NPM: 6.14.13
 Node.js: 14.7.0
 Python: 2.7.18

Below are the logs for the error and the detail log.

 Downloading https://rust-pkg-brave-core.s3.brave.com/rust_deps_win_0.1.6.zip .........
 <urlopen error only got 505626008 of 507378311 bytes>
 Failed to download Rust deps: https://rust-pkg-brave- 
 core.s3.brave.com/rust_deps_win_0.1.6.zip
 Exiting.
 Error: Command 'vpython.bat script/download_rust_deps.py' returned non-zero exit status 1 in 
 C:\projects\brave-browser\src/brave
 Downloading https://rust-pkg-brave-core.s3.brave.com/rust_deps_win_0.1.6.zip .........
 <urlopen error only got 505008607 of 507378311 bytes>
 Retrying in 5 s ...
 Downloading https://rust-pkg-brave-core.s3.brave.com/rust_deps_win_0.1.6.zip .........
 <urlopen error only got 505218615 of 507378311 bytes>
 Retrying in 10 s ...
 Downloading https://rust-pkg-brave-core.s3.brave.com/rust_deps_win_0.1.6.zip .........
 <urlopen error only got 505560056 of 507378311 bytes>
 Retrying in 20 s ...
Downloading https://rust-pkg-brave-core.s3.brave.com/rust_deps_win_0.1.6.zip .........
<urlopen error only got 505626008 of 507378311 bytes>
 Failed to download Rust deps: https://rust-pkg-brave- 
core.s3.brave.com/rust_deps_win_0.1.6.zip
 Exiting.

 Hook 'vpython.bat script/download_rust_deps.py' took 855.50 secs
 null
 null
 npm ERR! code ELIFECYCLE
 npm ERR! errno 1
 npm ERR! brave-core@1.25.68 sync: `node ./build/commands/scripts/sync.js "--init"`
 npm ERR! Exit status 1
 npm ERR!
 npm ERR! Failed at the brave-core@1.25.68 sync script.
 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

 npm ERR! A complete log of this run can be found in:
 npm ERR!     C:\Users\jadam\AppData\Roaming\npm-cache\_logs\2021-06- 
02T17_00_29_698Z-debug.log
null
 null
 npm ERR! code ELIFECYCLE
 npm ERR! errno 1
 npm ERR! brave@1.25.68 init: `node ./scripts/init.js`
 npm ERR! Exit status 1
 npm ERR!
 npm ERR! Failed at the brave@1.25.68 init script.
 npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

 npm ERR! A complete log of this run can be found in:
 npm ERR!     C:\Users\jadam\AppData\Roaming\npm-cache\_logs\2021-06-02T17_00_29_805Z- 
debug.log
 PS C:\projects\brave-browser>

This is the log from the log file mentioned above:

 0 info it worked if it ends with ok
 1 verbose cli [
 1 verbose cli   'C:\\Program Files\\nodejs\\node.exe',
 1 verbose cli   'C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js',
 1 verbose cli   'run',
 1 verbose cli   'init'
 1 verbose cli ]
 2 info using npm@6.14.13
 3 info using node@v14.17.0
 4 verbose run-script [ 'preinit', 'init', 'postinit' ]
 5 info lifecycle brave@1.25.68~preinit: brave@1.25.68
 6 info lifecycle brave@1.25.68~init: brave@1.25.68
 7 verbose lifecycle brave@1.25.68~init: unsafe-perm in lifecycle true
 8 verbose lifecycle brave@1.25.68~init: PATH: C:\Program 
 Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\node-gyp-bin;C:\projects\brave- 
browser\node_modules\.bin;C:\Program Files\Common Files\Oracle\Java\javapath;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR;C:\ProgramData\chocolatey\bin;C:\Program Files\Git\cmd;C:\Program Files\PuTTY\;C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common;C:\Program Files\Java\jdk-11.0.10\bin;C:\Program Files\maven\apache-maven- 3.6.3\bin;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\Sy 
stem32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program  
 Files\nodejs\;C:\Python27;C:\Users\jadam\AppData\Local\Microsoft\WindowsApps;C:\Program 
   Files\JetBrains\IntelliJ IDEA Community Edition 
 2020.3.2\bin;C:\Users\jadam\AppData\Roaming\npm
 9 verbose lifecycle brave@1.25.68~init: CWD: C:\projects\brave-browser
 10 silly lifecycle brave@1.25.68~init: Args: [ '/d /s /c', 'node ./scripts/init.js' ]
 11 silly lifecycle brave@1.25.68~init: Returned: code: 1  signal: null
 12 info lifecycle brave@1.25.68~init: Failed to exec init script
 13 verbose stack Error: brave@1.25.68 init: `node ./scripts/init.js`
 13 verbose stack Exit status 1
 13 verbose stack     at EventEmitter.<anonymous> (C:\Program 
 Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\index.js:332:16)
 13 verbose stack     at EventEmitter.emit (events.js:376:20)
 13 verbose stack     at ChildProcess.<anonymous> (C:\Program 
 Files\nodejs\node_modules\npm\node_modules\npm-lifecycle\lib\spawn.js:55:14)
  13 verbose stack     at ChildProcess.emit (events.js:376:20)
 13 verbose stack     at maybeClose (internal/child_process.js:1055:16)
 13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:288:5)
 14 verbose pkgid brave@1.25.68
 15 verbose cwd C:\projects\brave-browser
 16 verbose Windows_NT 10.0.19042
 17 verbose argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program 
 Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "run" "init"
 18 verbose node v14.17.0
 19 verbose npm  v6.14.13
 20 error code ELIFECYCLE
 21 error errno 1
 22 error brave@1.25.68 init: `node ./scripts/init.js`
 22 error Exit status 1
 23 error Failed at the brave@1.25.68 init script.
 23 error This is probably not a problem with npm. There is likely additional logging output above.
 24 verbose exit [ 1, true ]

Nudging this post. Looking for help to resolve this before I start hacking on the strip that is failing.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.