Error with - Can't connect to WSL

Hi, thanks for reporting an issue with Cursor.

Before you report this, we’d appreciate if you can search this forum to see if this issue has already been reported.

If you have done so, please check this box.
on

Describe the Bug

I can’t open any file in Cursor when running in WSL only in Windows
It’s saying “disconnected from WSL Ubuntu” too.
I tried rebooting but it didn’t work.
Also, I tried running the command and I’ve got the output below and the error persisted.
Vscode is opening WSL without any problem, so it seems to be a cursor bug.
Hope you can help me out.
Thanks.

Directory: \\wsl$\Ubuntu\home\rgildin


Mode                 LastWriteTime         Length Name
----                 -------------         ------ ----
d-----          1/1/2025   9:47 PM                .cursor-server
Distro: 'Ubuntu'
Destination Path: \\wsl$\Ubuntu/home/rgildin\.cursor-server
Error processing distro: 'Ubuntu'. Error details: Access to the path '\\wsl$\Ubuntu\home\rgildin\.cursor-server' is denied.
<3>WSL (10) ERROR: CreateProcessParseCommon:763: Failed to translate C:\Users\rafaa
<3>WSL (10) ERROR: CreateProcessParseCommon:809: getpwuid(0) failed 2
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\Library\mingw-w64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\Library\usr\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\Library\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\Scripts
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.8\libnvvp
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate c:\Users\rafaa\AppData\Local\Programs\cursor\resources\app\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA\CUDNN\v9.0\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\Common Files\Oracle\Java\javapath
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\Library\mingw-w64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\Library\usr\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\Library\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\Scripts
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\envs\py37\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\condabin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\system32
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\Wbem
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\OpenSSH
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\dotnet
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS\system32
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\Git\cmd
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files (x86)\Dev-Cpp\MinGW64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\P
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate c:\Users\rafaa\AppData\Local\Programs\cursor\resources\app\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\dotnet
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.3.0
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files (x86)\Common Files\Oracle\Java\javapath
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\system32
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\Wbem
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\WindowsPowerShell\v1.0
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Windows\System32\OpenSSH
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\dotnet
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\NVIDIA Corporation\NVIDIA NvDLISR
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS\system32
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS\System32\Wbem
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS\System32\WindowsPowerShell\v1.0
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\WINDOWS\System32\OpenSSH
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\Git\cmd
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files\Docker\Docker\resources\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Program Files (x86)\Dev-Cpp\MinGW64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\Library\mingw-w64\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\Library\usr\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\Library\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\miniconda3\Scripts
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\AppData\Local\Google\Cloud SDK\google-cloud-sdk\bin
<3>WSL (10) ERROR: UtilTranslatePathList:2852: Failed to translate C:\Users\rafaa\AppData\Local\Programs\Microsoft VS Code\bin
Processing fstab with mount -a failed.
Failed to mount C:\, see dmesg for more details.
Failed to mount C:\, see dmesg for more details.

<3>WSL (10) ERROR: CreateProcessCommon:392: getpwuid(0) failed 2
<3>WSL (10) ERROR: CreateProcessCommon:559: execvpe(whoami) failed: No such file or directory
Error processing distro: 'docker-desktop-data'. Error details: You cannot call a method on a null-valued expression.
<3>WSL (13) ERROR: CreateProcessCommon:559: execvpe(bash) failed: No such file or directory
Error processing distro: 'docker-desktop'. Error details: You cannot call a method on a null-valued expression.

Steps to Reproduce

Installing cursor in Windows 11 - WSL 2 - Ubuntu 22.04

Expected Behavior

Work normally as it was in the previous 3 months.

Screenshots / Screen Recordings

Screenshot 2025-01-03 174805.png

Operating System

Windows 10/11

Current Cursor Version (Menu → About Cursor → Copy)

Version: 0.44.10
VSCode Version: 1.93.1
Commit: ae296fde8115b123d8ce516cdfedf697fc577660
Date: 2025-01-02T09:19:53.599Z
Electron: 30.5.1
Chromium: 124.0.6367.243
Node.js: 20.16.0
V8: 12.4.254.20-electron.0
OS: Windows_NT x64 10.0.22631

Additional Information

Since I didn’t have any answers from a previous discussion I started a new one.

Does this stop you from using Cursor

Yes - Cursor is unusable

was going to post the same issue, happening to me as well. also struggling to open terminal in cursor, but works fine in regular terminal app and in vscode