question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Native tools bootstrap failed

See original GitHub issue

Problem description:

When I tried to run build.cmd to compile , I always got the messages like this:

Processing D:\Repos\wpf\global.json strawberry-perl was not found in C:\Users\bruceshen\.netcoreeng\native\bin\strawberry-perl\5.28.1.1-1. net-framework-48-ref-assemblies was not found in C:\Users\bruceshen\.netcoreeng\native\bin\net-framework-48-ref-assemblies\0.0.0.1. Native tools bootstrap failed Attempting to install dotnet from public location. dotnet-install: Note that the intended use of this script is for Continuous Integration (CI) scenarios, where: dotnet-install: - The SDK needs to be installed without user interaction and without admin rights. dotnet-install: - The SDK installation doesn’t need to persist across multiple CI runs. dotnet-install: To set up a development environment or to run apps, use installers rather than this script. Visit https://dotnet.microsoft.com/download to get the installer.

I checked the installation path, confusingly, the native tools were successfully installed, so I had to consider that this was a bug. Turns out, I was right.

See the code of power shell script in install-tool.ps1, it assumes all native tools are executable and have the name of $ToolName. In fact, the executable file name of strawberry-perl is perl.exe, even more net-framework-48-ref-assemblies is just a library.

  $ToolFilePath = Get-ChildItem $ToolInstallDirectory -Recurse -Filter "$ToolName.exe" | % { $_.FullName }
  if (@($ToolFilePath).Length -Gt 1) {
    Write-Error "There are multiple copies of $ToolName in $($ToolInstallDirectory): `n$(@($ToolFilePath | out-string))"
    exit 1
  } elseif (@($ToolFilePath).Length -Lt 1) {
    Write-Host "$ToolName was not found in $ToolInstallDirectory."
    exit 1
  }

Actual behavior:

Expected behavior:

Minimal repro:

Issue Analytics

  • State:open
  • Created a year ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
binary2015novcommented, Sep 15, 2022

@pchaurasia14 I see, that misled you. My path is actually C:\Users\bruceshen\.netcoreeng, it’s no problem. Now we can focus on the actual error and cause I mentioned in the issue description.

1reaction
pchaurasia14commented, Sep 15, 2022

@binary2015nov - Your previous comment mentioned the error in the path from your end. Hence, assumed that would be the cause of the problem.

Nevermind, we’ll investigate this at our end.

Read more comments on GitHub >

github_iconTop Results From Across the Web

BOOTSTRAP_FAILURE_BA_DO...
A cluster terminates with the BOOTSTRAP_FAILURE_BA_DOWNLOAD_FAILED_PRIMARY error when the primary instance can't download a bootstrap action script from the ...
Read more >
Unable to bootstrap and bootstrap repository is not found
The word "bootstrap" is seen in the URL in the error, the error is 404, and the repository that is not found is...
Read more >
Bootstrap Errors
The networking parameters required for bootstrapping were either incorrect or missing. The error message lists the value—IP address, netmask, default gateway— ...
Read more >
Bootstrap repo creation fails with error | Support
Running the command "mgr-create-bootstrap-repo --with-parent-channel=ubuntu-18.04-pool-amd64" results in the following error:
Read more >
Boost: Bootstrap.bat compilation failure to build bjam
In order to use Filesystem, I used another computer, and performed the following steps, and it worked: 1) Installed MinGW and added this ......
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found