# Connection to Cursor server failed: spawn EPERM

**URL:** <https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085>\
**Category:** Bug Reports\
**Created:** [June 30, 2025, 11:48am UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085 "2025-06-30T11:48:24Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![p-arth](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/p-arth/32/67259_2.png) [@p-arth](https://forum.cursor.com/u/p-arth)\
**Post date:** [June 30, 2025, 11:48am UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/1 "2025-06-30T11:48:24Z")

</div>

### Describe the Bug

I’m using Cursor with Windows and WSL. It was working just fine a few days ago… But now it just doesn’t work, whenever I try to connect to the Remote server or try opening cursor directly from the Powershell terminal while using WSL, it doesn’t work.  
I get `Connection to Cursor server failed: spawn EPERM`.  
I tried “Reinstall server” and it also does not work, the error just keep repeating.  
I’ve tried uninstalling and installing Cursor again, no success. WSL + VS Code is working just fine with Remote, but not Cursor.

### Steps to Reproduce

Run WSL, try to open any directory inside of the ubuntu instance through Cursor.

### Screenshots / Screen Recordings

 ![cursor-error.jpg](https://us1.discourse-cdn.com/cursor1/original/3X/5/f/5f71275ea3c97badb0d5c4fbb7d22aa9d2d9c49d.jpeg)

### Operating System

Windows 10/11

### Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.1.6 (user setup)  
VSCode Version: 1.96.2  
Commit: 5b19bac7a947f54e4caa3eb7e4c5fbf832389850  
Date: 2025-06-25T02:20:02.577Z  
Electron: 34.5.1  
Chromium: 132.0.6834.210  
Node.js: 20.19.0  
V8: 13.2.152.41-electron.0  
OS: Windows\_NT x64 10.0.19045

---

<div class="post-metadata">

**Author:** ![danperks](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/danperks/32/19087_2.png) [@danperks](https://forum.cursor.com/u/danperks)\
**Post date:** [June 30, 2025, 12:09pm UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/3 "2025-06-30T12:09:07Z")

</div>

Hey, sorry about this - we were facing some issues serving our extension binaries but everything should be working again now!

---

<div class="post-metadata">

**Author:** ![p-arth](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/p-arth/32/67259_2.png) [@p-arth](https://forum.cursor.com/u/p-arth)\
**Post date:** [June 30, 2025, 1:25pm UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/4 "2025-06-30T13:25:40Z")

</div>

Do we need download a new version of the app?

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [June 30, 2025, 8:00pm UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/5 "2025-06-30T20:00:28Z")

</div>

Hi @p-arth, could you share the full logs from the “Remote - WSL” output window? From the error message it sounds like this is a permissions issue where we are unable to call “wsl.exe” to spawn a subprocess.

---

<div class="post-metadata">

**Author:** ![p-arth](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/p-arth/32/67259_2.png) [@p-arth](https://forum.cursor.com/u/p-arth)\
**Post date:** [July 1, 2025, 1:24pm UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/6 "2025-07-01T13:24:39Z")

</div>

Hi @ravirahman ! If I try to open the directory with **cursor.** I do not see any logs in the output window, check it out:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/d/6/d6f13be4446b38fa7b4f7fec2492a77d600342a7.png)

But if I open cursor normally, and try to open my WSL remote, I get the following:

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/b/b/bb6bddfb7827245377a4464176b83e81a6acad00.png)

> 2025-07-01 10:23:27.232 [info] Resolving wsl remote authority ‘wsl+Ubuntu’ (attempt #1)
> 
> 2025-07-01 10:23:27.232 [info] Checking output for installServerScript
> 
> 2025-07-01 10:23:27.233 [error] Error installing Cursor server A system error occurred (spawn EPERM)
> 
> 2025-07-01 10:23:33.096 [info] Resolving wsl remote authority ‘wsl+Ubuntu’ (attempt #1)
> 
> 2025-07-01 10:23:33.096 [info] Checking output for installServerScript
> 
> 2025-07-01 10:23:33.096 [error] Error installing Cursor server A system error occurred (spawn EPERM)
> 
> 2025-07-01 10:25:01.133 [info] [wsl listDistros] Running command
> 
> 2025-07-01 10:25:03.787 [info] Resolving wsl remote authority ‘wsl+docker-desktop’ (attempt #1)
> 
> 2025-07-01 10:25:03.787 [info] Checking output for installServerScript
> 
> 2025-07-01 10:25:03.787 [error] Error installing Cursor server A system error occurred (spawn EPERM)

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [July 3, 2025, 5:46pm UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/7 "2025-07-03T17:46:41Z")

</div>

Hi @p-arth, thanks for sharing these logs.

If you open a cmd or powershell, does `wsl.exe --list` work?

Also, do you see the list of distributions in the sidebar under the remote explorer?

 ![image](https://us1.discourse-cdn.com/cursor1/original/3X/8/6/861089621e54115e7113217e243c78833e8e076a.png)

This will help us trace down the issue.

Thanks!

---

<div class="post-metadata">

**Author:** ![p-arth](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/p-arth/32/67259_2.png) [@p-arth](https://forum.cursor.com/u/p-arth)\
**Post date:** [July 3, 2025, 9:10pm UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/8 "2025-07-03T21:10:21Z")

</div>

I just found out the issue. Since the last update, for some reason now Windows Defender is flagging the WSL Remote connection through cursor specifically (it works with VS Code) as something unsafe, I guess? If I deactivate the live-protection from Windows Defender, it works.  
This just happens with Cursor, I can remote connect to WSL by any other means, but not with Cursor.  
You guys should really look into that to fix it, pretty weird that I need to make my system “unsafe” to be able to use such a simple feature that was working before.

---

<div class="post-metadata">

**Author:** ![ravirahman](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/ravirahman/32/20386_2.png) [@ravirahman](https://forum.cursor.com/u/ravirahman)\
**Post date:** [July 4, 2025, 2:15pm UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/10 "2025-07-04T14:15:33Z")

</div>

Could you share more about what windows defender found / why live scan blocked it? Definitely, we’ll see if there’s anything we can do to prevent this from happening.

---

<div class="post-metadata">

**Author:** ![system](https://sea3.discourse-cdn.com/cursor1/user_avatar/forum.cursor.com/system/32/127254_2.png) [@system](https://forum.cursor.com/u/system)\
**Post date:** [July 26, 2025, 2:16pm UTC](https://forum.cursor.com/t/connection-to-cursor-server-failed-spawn-eperm/111085/11 "2025-07-26T14:16:24Z")

</div>

Closed on July 26, 2025, 2:16pm UTC

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