dotnet / dotnet/vscode-dotnet-runtime

An error occurred while installing .NET: .NET Acquisition

Open
#2,664 0 comments 0 reactions 0 assignees View on GitHub
resolved-upcoming-release untriaged
Dominant language
TypeScript
Stars
209
Forks
455
PR merge metrics
No merged PRs in 30d

Description

### Describe the bug.

Failed: Action: vscdGlLk-84dcf9f1-9ed8-481c-828d-d66f769ecf1c Failed to acquire lock /var/folders/ch/t03mz_753yq5jly8kj88333m0000gn/T/vscd-vscdGlLk.sock after 12001 retries out of 12001 total available attempts. The lock may be held by another process or instance of vscode. Try restarting your machine, deleting the lock, and or increasing the timeout time in the extension settings. Increase your OS path length limit to at least 256 characters. On Linux, you can set XDG_RUNTIME_DIR to be a writeable directory by your user. If you still face issues, set VSCODE_DOTNET_RUNTIME_DISABLE_MUTEX=true in the environment. Report this issue to our vscode-dotnet-runtime GitHub for help.

### Please attach log file(s) here if you have any.

Install Script Timeouts
Please note that, depending on your network speed, installing the .NET Core runtime might take some time. By default, the installation terminates unsuccessfully if it takes longer than 10 minutes to finish. If you believe this is too little (or too much) time to allow for the download, you can change the timeout value by setting dotnetAcquisitionExtension.installTimeoutValue to a custom value.

Learn more about configuring Visual Studio Code settings [here](https://code.visualstudio.com/docs/getstarted/settings) and see below for an example of a custom timeout in a settings.json file. In this example the custom timeout value is 180 seconds, or 3 minutes.

{
"dotnetAcquisitionExtension.installTimeoutValue": 180
}

### Reproduction Steps

Failed: Action: vscdGlLk-84dcf9f1-9ed8-481c-828d-d66f769ecf1c Failed to acquire lock /var/folders/ch/t03mz_753yq5jly8kj88333m0000gn/T/vscd-vscdGlLk.sock after 12001 retries out of 12001 total available attempts. The lock may be held by another process or instance of vscode. Try restarting your machine, deleting the lock, and or increasing the timeout time in the extension settings. Increase your OS path length limit to at least 256 characters. On Linux, you can set XDG_RUNTIME_DIR to be a writeable directory by your user. If you still face issues, set VSCODE_DOTNET_RUNTIME_DISABLE_MUTEX=true in the environment. Report this issue to our vscode-dotnet-runtime GitHub for help.

### Expected Behavior

Failed: Action: vscdGlLk-84dcf9f1-9ed8-481c-828d-d66f769ecf1c Failed to acquire lock /var/folders/ch/t03mz_753yq5jly8kj88333m0000gn/T/vscd-vscdGlLk.sock after 12001 retries out of 12001 total available attempts. The lock may be held by another process or instance of vscode. Try restarting your machine, deleting the lock, and or increasing the timeout time in the extension settings. Increase your OS path length limit to at least 256 characters. On Linux, you can set XDG_RUNTIME_DIR to be a writeable directory by your user. If you still face issues, set VSCODE_DOTNET_RUNTIME_DISABLE_MUTEX=true in the environment. Report this issue to our vscode-dotnet-runtime GitHub for help.

### Exceptions & Errors (if any)

_No response_

### .NET Install Tool Version

10.0.203

### Your operating system? Please provide more detail, such as the version and or distro above.

N/A

### VS Code Version

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.