Skip to content

Linux: Failed to acquire lock (and yes, there are several similar reports) #2696

@khmseu

Description

@khmseu

Describe the bug.

The log hopefully says it all. The XDG_RUNTIME_DIR is writable. Several minutes (of writing this bug report) later, I still see 550 of these:
unix 2 [ ] STREAM CONNECTING 0 - /run/user/1000/vscd-installedLk.sock

This is on
Distributor ID: Ubuntu
Description: Ubuntu 24.04.4 LTS
Release: 24.04
Codename: noble

VSCode:
Version: 1.122.1
Commit: 8761a5560cfd65fdd19ce7e2bd18dab5c0a4d84e
Date: 2026-05-29T09:25:37+02:00
Electron: 39.8.8
ElectronBuildId: 13870025
Chromium: 142.0.7444.265
Node.js: 22.22.1
V8: 14.2.231.22-electron.0
OS: Linux x64 6.8.0-117-generic

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

Please attach the log file located at /home/kai/.config/Code/logs/20260529T211955/window3/exthost/ms-dotnettools.vscode-dotnet-runtime/DotNetAcquisition-ms-dotnettools.vscode-dotnet-runtime-1780093322140.txt. Note that this file may contain personal data.

Extension Version: 3.0.2
Error Message: Action: installedLk-4f411ebf-62b8-4869-aa5d-32ebed16365b Failed to acquire lock /run/user/1000/vscd-installedLk.sock after 40001 retries out of 40001 total available attempts. Last error: EADDRINUSE.
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.
Error Stack: Error: Action: installedLk-4f411ebf-62b8-4869-aa5d-32ebed16365b Failed to acquire lock /run/user/1000/vscd-installedLk.sock after 40001 retries out of 40001 total available attempts. Last error: EADDRINUSE.
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.
at t.NodeIPCMutex. (/fs/bigdata-2/KAI/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-3.0.2/dist/extension.js:2:261959)
at Generator.next ()
at s (/fs/bigdata-2/KAI/.vscode/extensions/ms-dotnettools.vscode-dotnet-runtime-3.0.2/dist/extension.js:2:260322)

Reproduction Steps

Install the extension.

Expected Behavior

Extension installs updates and gives no error message.

Exceptions & Errors (if any)

Error : (DotnetAcquisitionFinalError)

.NET Install Tool Version

.NET Install Tool v3.0.2

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

Linux

VS Code Version

1.122.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions