Background agent setup is failing at the validate phase

I am trying to setup the new background agent.
I have only installed a new node version and yarn.
during the “Validate Setup” phase there are some errors (see below).
I have rebuilt it as suggested but the same errors appear.

[extension-downloader] [ms-mssql.data-workspace-vscode] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-mssql.data-workspace-vscode-1748271068058' -> '/home/ubuntu/.cursor-server/extensions/ms-mssql.data-workspace-vscode-0.6.0'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-mssql.data-workspace-vscode-1748271068058',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-mssql.data-workspace-vscode-0.6.0'
}
[extension-downloader] [ms-mssql.sql-bindings-vscode] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-mssql.sql-bindings-vscode-1748271068059' -> '/home/ubuntu/.cursor-server/extensions/ms-mssql.sql-bindings-vscode-0.4.0'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-mssql.sql-bindings-vscode-1748271068059',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-mssql.sql-bindings-vscode-0.4.0'
}
[extension-downloader] [ms-vscode.anycode-kotlin] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-vscode.anycode-kotlin-1748271068059' -> '/home/ubuntu/.cursor-server/extensions/ms-vscode.anycode-kotlin-0.0.5'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-vscode.anycode-kotlin-1748271068059',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-vscode.anycode-kotlin-0.0.5'
}
[extension-downloader] [ms-azuretools.vscode-docker] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-azuretools.vscode-docker-1748271068058' -> '/home/ubuntu/.cursor-server/extensions/ms-azuretools.vscode-docker-1.29.4'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-azuretools.vscode-docker-1748271068058',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-azuretools.vscode-docker-1.29.4'
}
[extension-downloader] [ms-vscode-remote.remote-ssh] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-vscode-remote.remote-ssh-1748271068058' -> '/home/ubuntu/.cursor-server/extensions/ms-vscode-remote.remote-ssh-0.119.2025031815'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-vscode-remote.remote-ssh-1748271068058',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-vscode-remote.remote-ssh-0.119.2025031815'
}
[extension-downloader] [ms-mssql.sql-database-projects-vscode] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-mssql.sql-database-projects-vscode-1748271068058' -> '/home/ubuntu/.cursor-server/extensions/ms-mssql.sql-database-projects-vscode-1.4.6'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-mssql.sql-database-projects-vscode-1748271068058',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-mssql.sql-database-projects-vscode-1.4.6'
}
[extension-downloader] [ms-azuretools.vscode-azureresourcegroups] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-azuretools.vscode-azureresourcegroups-1748271068058' -> '/home/ubuntu/.cursor-server/extensions/ms-azuretools.vscode-azureresourcegroups-0.10.9'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-azuretools.vscode-azureresourcegroups-1748271068058',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-azuretools.vscode-azureresourcegroups-0.10.9'
}
[extension-downloader] [ms-vscode-remote.remote-containers] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-vscode-remote.remote-containers-1748271068058' -> '/home/ubuntu/.cursor-server/extensions/ms-vscode-remote.remote-containers-0.407.0'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-vscode-remote.remote-containers-1748271068058',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-vscode-remote.remote-containers-0.407.0'
}
[extension-downloader] [ms-python.isort] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-python.isort-1748271068058' -> '/home/ubuntu/.cursor-server/extensions/ms-python.isort-2023.13.13171013'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-python.isort-1748271068058',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-python.isort-2023.13.13171013'
}
[extension-downloader] [ms-python.vscode-pylance] ✓ Downloaded ms-python.vscode-pylance-2025.3.103.vsix
[extension-downloader] [ms-python.vscode-pylance] Extracting...
[extension-downloader] [Google.geminicodeassist] ✓ Downloaded Google.geminicodeassist-2.33.0.vsix
[extension-downloader] [Google.geminicodeassist] Extracting...
[extension-downloader] [Google.geminicodeassist] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/Google.geminicodeassist-1748271068059' -> '/home/ubuntu/.cursor-server/extensions/Google.geminicodeassist-2.33.0'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/Google.geminicodeassist-1748271068059',
  dest: '/home/ubuntu/.cursor-server/extensions/Google.geminicodeassist-2.33.0'
}
[extension-downloader] [ms-python.vscode-pylance] ✗ Failed to process: [Error: ENOTEMPTY: directory not empty, rename '/home/ubuntu/.cursor-server/extensions/.tmp/ms-python.vscode-pylance-1748271068058' -> '/home/ubuntu/.cursor-server/extensions/ms-python.vscode-pylance-2025.3.103'] {
  errno: -39,
  code: 'ENOTEMPTY',
  syscall: 'rename',
  path: '/home/ubuntu/.cursor-server/extensions/.tmp/ms-python.vscode-pylance-1748271068058',
  dest: '/home/ubuntu/.cursor-server/extensions/ms-python.vscode-pylance-2025.3.103'
}
[extension-downloader] Installation complete: 79 successful, 11 failed

:counterclockwise_arrows_button: Explain how to reproduce the bug
creating a new background agent
installed node and yarn using

nvm install v23.5.0
npm instanpm install --global yarn

then run yarn
then continue to 'Configured Runtime Settings"
and add yarn install to the run on install text box (nothing added to the run on start).
click then save and rebuild
and then see the error.

:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
here is the curson about data running on my Mac M1 but the issue is remote anyway :slight_smile:
Version : 0.50.7

Validation : 1.96.2

Date : 02270c8441bdc4b2fdbc30e6f470a589ec78d600

Electron : 2025-05-24T18:19:58.349Z (Il y a 1 jours)

ElectronBuildId : 34.3.4

Chromium : undefined

Node.js : 132.0.6834.210

V8 : 20.18.3

Système d’exploitation : 13.2.152.41-electron.0

I finally managed to create a background agent restarting everything from scratch.

1 Like