rcwhiteley
(rcwhiteley)
February 8, 2026, 12:20pm
1
I can’t complete Cloud Agent environment setup. It fails at “Creating testing environment” with:
[Warning] Failed to create testing environment: [invalid_argument] Error
It retries 3 times and then fails.
Repo: robert-whiteley/rawbot (no submodules; no .gitmodules; git submodule status is empty)
GitHub app is installed and has access to the repo
Tried multiple install/start command variants (including installing python3-venv), still fails before/at env creation
I’m using WSL, Ubuntu. I want to be able to code on my phone.
Has anyone seen this recently / found a workaround?
2 Likes
deanrie
(Dean Rie)
February 10, 2026, 5:30pm
3
Hey, a couple of questions to help narrow down what’s going wrong:
What version of Cursor are you on? (Help > About Cursor > Copy)
Do you have a .cursor/environment.json file in the repo? If yes, can you share its contents?
What install and start commands do you have set in Cursor Settings > Cloud Agents > Environment?
Are you using a Dockerfile or the interactive Manual Snapshot setup?
Can you send the full setup output log (including the Snapshot ID, if it shows up)?
In the meantime, you can try this:
The team is aware of a few Cloud Agent environment setup issues and is working on improving infrastructure stability.
Share the details above and we’ll dig in further.
Same issue here:
[Status] Creating testing environment... (Snapshot ID: snapshot-20260212-396ace99-c513-4a8c-a598-151a284165a8, Request ID: 8d3199a1-a20d-429d-a842-f969b25dd5d2)
[Warning] Failed to create testing environment: [invalid_argument] Error
[Retry] Retrying in 2 seconds (Attempt 2/3)...
[Status] Creating testing environment... (Attempt 2/3) (Snapshot ID: snapshot-20260212-396ace99-c513-4a8c-a598-151a284165a8, Request ID: 43905235-85cf-443a-a9d0-458184ef3f97)
[Warning] Failed to create testing environment: [invalid_argument] Error
[Retry] Retrying in 2 seconds (Attempt 3/3)...
[Status] Creating testing environment... (Attempt 3/3) (Snapshot ID: snapshot-20260212-396ace99-c513-4a8c-a598-151a284165a8, Request ID: 5eddb1d0-3092-4837-940b-65f5e5a9847a)
[STATUS UPDATE] failed
[Error] Failed to create testing environment after 3 attempts: [invalid_argument] Error
minimal config:
{
"snapshot": "POPULATED_FROM_SETTINGS",
"install": "npm install"
}
So that doesn’t work at all
Using the alternative Dockerfile approach is missing so much context in documentation that it’s like a shot in the dark. We have a repo full of Dockerfiles, can I use an external source [ie private github repo] for a baseline cursor Dockerfile? Where does the docker build occur and can I monitor it?
The only way I could get cursor to detect the environment.json changes for Dockerfile was to close it and reopen it again - restarting the cloud agent set up from the settings view.
@rcwhiteley try this:
Create a Dockerfile in the .cursor directory
# Use the official Ubuntu image as the base image.
# You can specify a tag like ubuntu:22.04 or ubuntu:latest
FROM ubuntu:24.04
# Set the working directory inside the container (optional)
WORKDIR /
# The command to run when the container starts
CMD ["/bin/bash"]
Make sure you have this in the environment.json file:
"build": {
"dockerfile": "Dockerfile",
"context": "."
...
Then close out Cursor and reopen click on Cursor Settings → Cloud Agents
You should see an option to take a snapshot under “workspace configuration” - take the snapshot.
It might work, then you can adjust the Dockerfile accordingly and maybe get an actual working environment.
Overall experience 2/10 - a solid “meh”.