Cursor fails to log into Kubernetes via Kubernetes extension

When using the Kubernetes extension with Cursor, I encounter the following error (see complete log below):


[3547 ms] Start: Run in container:  (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true)
[3731 ms] Start: Run in container: test -d '/root/.cursor-server'
[3915 ms] 
[3916 ms] 
[3916 ms] Exit code 1
[3917 ms] Start: Run in container: test -d '/root/.vscode-remote'
[4101 ms] 
[4102 ms] 
[4102 ms] Exit code 1
[4103 ms] Start: Run in container: test ! -f '/root/.cursor-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.cursor-server/data/Machine' && { > '/root/.cursor-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null
[4290 ms] 
[4290 ms] 
[4291 ms] Start: Run in container: cat /root/.cursor-server/data/Machine/settings.json
[4472 ms] 
[4472 ms] cat: /root/.cursor-server/data/Machine/settings.json: No such file or directory
[4472 ms] Exit code 1
[4474 ms] Start: Run in container: test -d '/root/.cursor-server/bin/001668006cc714afd397f4ef0d52862f5a095530'
[4662 ms] 
[4663 ms] 
[4663 ms] Exit code 1
[4664 ms] Installing VS Code Server for commit 001668006cc714afd397f4ef0d52862f5a095530
[4665 ms] Start: Downloading VS Code Server
[4665 ms] 001668006cc714afd397f4ef0d52862f5a095530 linux-x64 stable
[5195 ms] Failed to download VS Code Server (https://update.code.visualstudio.com/commit:001668006cc714afd397f4ef0d52862f5a095530/server-linux-x64/stable): HTTP 404 - Not Found
[5195 ms] Retrying to download VS Code Server.
[5481 ms] Error: Server returned 404
    at m (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1209:49036)

It seems Cursor is unable to properly install the required server files in the remote Kubernetes pod. This breaks the Kubernetes extension functionality.

Temporary Workaround:

  1. Manually establish an SSH connection to the pod (insecure and cumbersome).

  2. Use Cursor with SSH extension, because it can successfully install cursor-server to the remote pod: /root/.cursor-server/cli/servers/Stable-${commit_id}/server.

  3. Inside the remote pod, manually copy this installation to the default installation path used by Kubernetes extension (/root/.cursor-server/bin/${commit_id}/):

mkdir -p /root/.cursor-server/bin/${commit_id}
cp -R /root/.cursor-server/cli/servers/Stable-${commit_id}/server/* /root/.cursor-server/bin/${commit_id}/
  1. Switch back to the Kubernetes extension to attach Cursor to the remote pod.

Request:
Please add native support for the Kubernetes extension in Cursor to automate and simplify this process.

Below is the complete error log when directly using the Kubernetes extension with Cursor


[12 ms] Dev Containers 0.384.0 in VS Code 1.93.1 (001668006cc714afd397f4ef0d52862f5a095530).

[12 ms] Start: Resolving Remote

[18 ms] Start: Run: kubectl exec -it ....

[20 ms] Start: Run in container: echo $PATH

[2986 ms] /root/...

[2988 ms] Unable to use a TTY - input is not a terminal or the right kind of file

[2988 ms] Start: Run in container: id -un

[3165 ms] root

[3166 ms]

[3166 ms] Start: Run in container: uname -m

[3357 ms] x86_64

[3357 ms]

[3357 ms] Start: Run in container: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null

[3546 ms] PRETTY_NAME="Ubuntu 22.04.3 LTS"

NAME="Ubuntu"

VERSION_ID="22.04"

VERSION="22.04.3 LTS (Jammy Jellyfish)"

VERSION_CODENAME=jammy

ID=ubuntu

ID_LIKE=debian

HOME_URL="https://www.ubuntu.com/"

SUPPORT_URL="https://help.ubuntu.com/"

BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"

PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"

UBUNTU_CODENAME=jammy

[3546 ms]

[3547 ms] Start: Run in container: (command -v getent >/dev/null 2>&1 && getent passwd 'root' || grep -E '^root|^[^:]*:[^:]*:root:' /etc/passwd || true)

[3731 ms] Start: Run in container: test -d '/root/.cursor-server'

[3915 ms]

[3916 ms]

[3916 ms] Exit code 1

[3917 ms] Start: Run in container: test -d '/root/.vscode-remote'

[4101 ms]

[4102 ms]

[4102 ms] Exit code 1

[4103 ms] Start: Run in container: test ! -f '/root/.cursor-server/data/Machine/.writeMachineSettingsMarker' && set -o noclobber && mkdir -p '/root/.cursor-server/data/Machine' && { > '/root/.cursor-server/data/Machine/.writeMachineSettingsMarker' ; } 2> /dev/null

[4290 ms]

[4290 ms]

[4291 ms] Start: Run in container: cat /root/.cursor-server/data/Machine/settings.json

[4472 ms]

[4472 ms] cat: /root/.cursor-server/data/Machine/settings.json: No such file or directory

[4472 ms] Exit code 1

[4474 ms] Start: Run in container: test -d '/root/.cursor-server/bin/001668006cc714afd397f4ef0d52862f5a095530'

[4662 ms]

[4663 ms]

[4663 ms] Exit code 1

[4664 ms] Installing VS Code Server for commit 001668006cc714afd397f4ef0d52862f5a095530

[4665 ms] Start: Downloading VS Code Server

[4665 ms] 001668006cc714afd397f4ef0d52862f5a095530 linux-x64 stable

[5195 ms] Failed to download VS Code Server (https://update.code.visualstudio.com/commit:001668006cc714afd397f4ef0d52862f5a095530/server-linux-x64/stable): HTTP 404 - Not Found

[5195 ms] Retrying to download VS Code Server.

[5481 ms] Error: Server returned 404

at m (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1209:49036)

at C.download (vscode-file://vscode-app/Applications/Cursor.app/Contents/Resources/app/out/vs/workbench/workbench.desktop.main.js:1210:1915)