Dev Container Stuck on "Installing VS Code Server"

:white_check_mark: Check the forum to ensure the issue hasn’t been reported already
Tried to search on this forum, but can’t find any solution to this current problem.

:lady_beetle: Provide a clear description of the bug
When trying to open a DevContainer project using Cursor, the process gets stuck indefinitely at the stage “Downloading VS Code Server.”

The logs show repeated attempts to download the VS Code server for commit 0781e811de386a0c5bcb07ceb259df8ff8246a50, targeting architecture linux-arm64, but it never completes.

Meanwhile, the same DevContainer setup works correctly in standard VS Code (latest stable), suggesting this is a Cursor-specific issue.

:counterclockwise_arrows_button: Explain how to reproduce the bug (if known)

  1. Open a project with a .devcontainer setup in Cursor (using Microsoft Artifact Registry as the base image).
  2. Cursor attempts to build the devcontainer.
  3. It reaches “Installing VS Code Server” and gets stuck at:
1325 ms] Installing VS Code Server for commit 0781e811de386a0c5bcb07ceb259df8ff8246a50
[1325 ms] Start: Run in container: /bin/sh
[1325 ms] Start: Downloading VS Code Server
[1325 ms] 0781e811de386a0c5bcb07ceb259df8ff8246a50 linux-arm64 stable
  1. It never proceeds beyond this point (even after more than 1 hour).

Here’s my decontainer setup:
devcontainer.json

{
	"name": "Node.js & PostgreSQL",
	"dockerComposeFile": "docker-compose.yml",
	"service": "app",
	"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
	"features": {
		"ghcr.io/devcontainers-extra/features/typescript:2": {}
	}
}

docker-compose.yml:

version: '3.8'

services:
  app:
    build: 
      context: .
      dockerfile: Dockerfile

    volumes:
      - ../..:/workspaces:cached
      
    # Overrides default command so things don't shut down after the process ends.
    command: sleep infinity

    # Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
    network_mode: service:db

    # Use "forwardPorts" in **devcontainer.json** to forward an app port locally. 
    # (Adding the "ports" property to this file will not forward from a Codespace.)

  db:
    image: postgres:latest
    restart: unless-stopped
    volumes:
      - postgres-data:/var/lib/postgresql/data
    environment:
      POSTGRES_PASSWORD: postgres
      POSTGRES_USER: postgres
      POSTGRES_DB: postgres

    # Add "forwardPorts": ["5432"] to **devcontainer.json** to forward PostgreSQL locally.
    # (Adding the "ports" property to this file will not forward from a Codespace.)

volumes:
  postgres-data:

dockerfile:

FROM mcr.microsoft.com/devcontainers/javascript-node:1-22-bookworm

:camera: Attach screenshots or recordings (e.g., .jpg, .png, .mp4).

:laptop: Tell us your operating system and your Cursor version (e.g., Windows, 0.x.x).
Device: MacBook Pro M3 Pro
OS: MacOS Sequoia 15.4.1 (24E263)

Cursor:

Version: 0.49.6
VSCode Version: 1.96.2
Commit: 0781e811de386a0c5bcb07ceb259df8ff8246a50
Date: 2025-04-25T05:07:16.071Z
Electron: 34.3.4
Chromium: 132.0.6834.210
Node.js: 20.18.3
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.4.0

:prohibited: Tell us if the issue stops you from using Cursor.

Yes, I really rely on DevContainer for my development flow

1 Like

OK, this is crazy. But as soon as I posted this, it has just started to work again. I tried this for hours today (killing docker instance, restarting, etc.) but nothing seemed to work.

However, I’ve been having this “seemingly stuck” issue for 1-2 weeks back, it makes me afraid to “Update Cursor” since every update leads to rebuilding the devcontainer

I’m having the same issue right now, can’t figure out why.

In my case I use Docker devcontainers in a remote Ubuntu server:

[1851 ms] Dev Containers 0.394.0 over Remote - SSH 0.113.1 in VS Code 1.96.2 (0781e811de386a0c5bcb07ceb259df8ff8246a50).
[1851 ms] Start: Resolving Remote
[1863 ms] Start: Loading environment from ExecServer
[1933 ms] Host OS: linux 6.8.12-8-pve
[1933 ms] Host CWD: /home/<redacted>
[1934 ms] Start: Run: /bin/sh 
[2122 ms] Start: Run in host: echo ~
[2192 ms] /home/daniel
[2192 ms] 
[2192 ms] Start: Run in host: id -un
[2287 ms] daniel
[2288 ms] 
[2289 ms] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'daniel' || grep -E '^daniel|^[^:]*:[^:]*:daniel:' /etc/passwd || true)
[2367 ms] userEnvProbe: loginInteractiveShell (default)
[2367 ms] userEnvProbe: not found in cache
[2368 ms] userEnvProbe shell: /bin/bash
[2542 ms] userEnvProbe PATHs:
Probe:     '/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin'
Container: None
[2703 ms] Setting up container for folder or workspace: /home/<redacted>
[2704 ms] Host authority: ssh-remote+<redacted>
[2706 ms] Start: Run: wsl -l -v
[2822 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c echo ~
[5494 ms] Start: Run: wsl -d Ubuntu -e /bin/sh -c cd '/home/daniel' && /bin/sh
[5501 ms] Start: Run in host: id -un
[5558 ms] daniel
[5558 ms] 
[5558 ms] Start: Run in host:  (command -v getent >/dev/null 2>&1 && getent passwd 'daniel' || grep -E '^daniel|^[^:]*:[^:]*:daniel:' /etc/passwd || true)
[5560 ms] Start: Run in host: echo ~
[5561 ms] /home/daniel
[5561 ms] 
[5562 ms] Start: Run in host: test -f '/home/daniel/.cursor-server/cli/servers/Stable-0781e811de386a0c5bcb07ceb259df8ff8246a50/server/node'
[5564 ms] 
[5564 ms] 
[5564 ms] Exit code 1
[5565 ms] Start: Run in host: test -f '/home/daniel/.cursor/cli/servers/Stable-0781e811de386a0c5bcb07ceb259df8ff8246a50/server/node'
[5565 ms] 
[5565 ms] 
[5565 ms] Exit code 1
[5566 ms] Start: Run in host: test -f '/home/daniel/.cursor-server/bin/0781e811de386a0c5bcb07ceb259df8ff8246a50/node'
[5566 ms] 
[5566 ms] 
[5567 ms] Exit code 1
[5567 ms] Start: Run in host: test -f '/home/daniel/.vscode-remote-containers/bin/0781e811de386a0c5bcb07ceb259df8ff8246a50/node'
[5568 ms] 
[5568 ms] 
[5568 ms] Exit code 1
[5568 ms] Start: Run in host: uname -s
[5570 ms] Linux
[5570 ms] 
[5570 ms] Start: Run in host: uname -m
[5572 ms] x86_64
[5572 ms] 
[5572 ms] Start: Run in host: (cat /etc/os-release || cat /usr/lib/os-release) 2>/dev/null
[5575 ms] PRETTY_NAME="Ubuntu 24.04.1 LTS"
NAME="Ubuntu"
VERSION_ID="24.04"
VERSION="24.04.1 LTS (Noble Numbat)"
VERSION_CODENAME=noble
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=noble
LOGO=ubuntu-logo
[5576 ms] 
[5576 ms] Start: Downloading VS Code Server
[5577 ms] 0781e811de386a0c5bcb07ceb259df8ff8246a50 linux-x64 stable

Edit:
Seems to be related to Dev Containers don’t work anymore: stuck on “Connecting to Dev Container: Installing server” - Discussion - Cursor - Community Forum

Edit 2:
I removed the .cursor-server directory in my Ubuntu host and restarted cursor. It now built the container just fine!