Diagnose and resolve common problems when creating, connecting to, or working inside a remote workspace
Category | Typical Symptoms |
---|---|
Workspace Creation | “Provisioning” forever, cloning errors, devcontainer upload fails |
Connection | Can’t attach from session, pairing spinner never stops, “Machine unavailable” |
Performance | Slow rebuilds, high latency in terminal, laggy editor |
Devcontainer | Build errors, “command not found”, ports not reachable |
General Usage | Git asks for credentials, disk full, permission denied |
Repository clone failed
Devcontainer upload error
Check Machine Selector
Browser & Network
Symptom | Fix |
---|---|
Rebuild takes > 5 min | Add .dockerignore for node_modules , *.pyc , build outputs• Use a lighter base image (e.g., alpine) |
Terminal latency | Close unused browser tabs with heavy JS• Check local bandwidth (>5 Mbps recommended)• Pause real-time spell-checker extensions |
Editor lag | Disable file watchers in dev tools (nodemon , webpack --watch ) unless needed• Use auto-save only when collaborating |
Build fails with 'command not found'
postCreateCommand
.Resolveapt-get
, npm
, pip
).devcontainer up —workspace-folder .Fix until it succeeds, then push changes and rebuild the workspace.
Environment variable undefined
$MY_SECRET
.ResolveIssue | Resolution |
---|---|
Git prompts for credentials | Make sure the repo integration is connected; remote workspace injects HTTPS tokens automatically. |
Disk quota exceeded | Clear package caches (npm cache clean --force , pip cache purge ), remove large build artifacts, or rebuild workspace. |
Permission denied on file save | File is outside the repo workspace; save inside /workspaces/<repo>/ . |
Cannot install global packages | Use npm install -g or pip install --user . If still blocked, add commands to postCreateCommand . |
History lost after rebuild | Anything outside /workspaces is cleared during rebuild. Commit important scripts or store them inside the repo. |
A quick rebuild fixes 80 % of issues—don’t hesitate to click Rebuild when in doubt.