Skip to main content
Even the smoothest cloud template can hit a snag. This guide walks you through the quickest fixes for the most common cloud template issues.

Quick Reference

CategoryTypical Symptoms
Workspace Creation“Provisioning” forever, cloning errors, setup script fails
ConnectionCan’t attach from session, pairing spinner never stops, “Machine unavailable”
PerformanceSlow rebuilds, high latency in terminal, laggy editor
DevcontainerBuild errors, “command not found”, ports not reachable
General UsageGit asks for credentials, disk full, permission denied

1. Workspace Creation Issues

Diagnose
  • Error toast shows “clone failed” with a Git exit code
  • Private repo? Missing OAuth scopes?
Resolve
  1. Verify the repo is enabled and displays Connected in Integrations
  2. Refresh your OAuth token if prompted

2. Connection Problems

1

Check Machine Selector

In your session, click the CPU icon → ensure Cloud Machine is selected.
If it shows Local Machine, switch to Cloud Machine and pick the template.
2

Browser & Network

  • Use Chrome or Edge (other browsers may block WebSocket upgrades).
  • Disable VPN/proxy to rule out WebSocket filtering.
  • Reload the session tab (⌘R / Ctrl-R).

3. Performance & Speed

SymptomFix
Rebuild takes > 5 minAdd .dockerignore for node_modules, *.pyc, build outputs• Use a lighter base image (e.g., alpine)
Terminal latencyClose unused browser tabs with heavy JS• Check local bandwidth (>5 Mbps recommended)• Pause real-time spell-checker extensions
Editor lagDisable file watchers in dev tools (nodemon, webpack --watch) unless needed• Use auto-save only when collaborating

4. General Usage Troubles

IssueResolution
Git prompts for credentialsMake sure the repo integration is connected; cloud template injects HTTPS tokens automatically.
Disk quota exceededClear package caches (npm cache clean --force, pip cache purge), remove large build artifacts, or rebuild template.
Permission denied on file saveFile is outside the repo template; save inside /workspaces/<repo>/.
Cannot install global packagesUse npm install -g or pip install --user. If still blocked, add commands to postCreateCommand.
History lost after rebuildAnything outside /workspaces is cleared during rebuild. Commit important scripts or store them inside the repo.

Need More Help?

  • Best Practices – Optimize performance with the Cloud Template Best Practices guide
  • Support – Reach out in your Factory support channel with template ID and error message
A quick rebuild fixes 80 % of issues—don’t hesitate to click Rebuild when in doubt.