Background Agent Setup - Failed to create default environment after 3 attempts

Every time I try the Background Agent Setup I get the following error after three attempts… tried resetting to default ubuntu a couple of times and still the same error. Never gets beyond that. Haven’t tried creating from a Dockerfile yet.


Version: 0.51.1

VSCode Version: 1.96.2

Commit: a9dd46cbd249a30044eaae1526eb6ca1ec2f7560

Date: 2025-05-30T22:14:51.385Z (1 day ago)

Electron: 34.5.1

Chromium: 132.0.6834.210

Node.js: 20.19.0

V8: 13.2.152.41-electron.0

OS: Darwin arm64 23.5.0


[Status] Creating default environment… (Request ID: 31e424f3-8613-4d0f-91cb-2e07a74d59bb)
[Warning] Failed to create default environment: [invalid_argument] Error
[Retry] Retrying in 2 seconds (Attempt 2/3)…
[Status] Creating default environment… (Attempt 2/3) (Request ID: e8a4d272-ca14-4f15-bcd9-1122dd5eae27)
[Warning] Failed to create default environment: [invalid_argument] Error
[Retry] Retrying in 2 seconds (Attempt 3/3)…
[Status] Creating default environment… (Attempt 3/3) (Request ID: fe9ea98f-f171-4c8c-9046-e83e13ab79ec)
[Error] Failed to create default environment after 3 attempts: [invalid_argument] Error

2 Likes

Ok, I figure what the issue was.
Despite the fact that the code has a copy on Github, the main branch I was working, it was in fact on Bitbucket. As soon as I tested with a Github repository, it worked.

1 Like

Really great, thanks for solving it by yourself