Cloud Agents failing with "environment error"

Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

Describe the Bug

When I go through the interactive setup for cloud agent environment, I get a stream of the same logs:

[Warning] Lost connection to environment logs, retrying...
[Status] Connected to environment: pod-6adfffqdbvd47bzje6qiqqiovu

Steps to Reproduce

  1. Open Cursor
  2. Enter the interactive environment setup for cloud agents
  3. Go to step 2 (machine setup)

Expected Behavior

The remote environment is accessable and I am able to configure it.

Operating System

MacOS

Current Cursor Version (Menu β†’ About Cursor β†’ Copy)

Version: 2.2.9 (Universal)
VSCode Version: 1.105.1
Commit: a86689c93e9fb11addfbefd29a6ec7c0a59175e0
Date: 2025-12-10T16:51:25.713Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Where does the bug appear (feature/product)?

Background Agent (GitHub, Slack, Web, Linear)

Describe the Bug

When I create new cloud agents, they error out with an β€œenvironment error”

Provisioning resources for agent, request id: bc-320a97fe-810c-46c7-b3f2-9fbd727e8fd7
Checking out repository…
β”Œβ”€ transferred: 14769872
└─ total: 3468140594
β”Œβ”€ transferred: 25264332
└─ total: 3468140594
β”Œβ”€ transferred: 37268043
└─ total: 3468140594
β”Œβ”€ transferred: 47239990
└─ total: 3468140594
β”Œβ”€ transferred: 61283099
└─ total: 3468140594
β”Œβ”€ transferred: 67468587
└─ total: 3468140594
β”Œβ”€ transferred: 80148291
└─ total: 3468140594
β”Œβ”€ transferred: 87179493
└─ total: 3468140594
β”Œβ”€ transferred: 104416822
└─ total: 3468140594
β”Œβ”€ transferred: 112795834
└─ total: 3468140594
β”Œβ”€ transferred: 137764373
└─ total: 3468140594
β”Œβ”€ transferred: 177940439
└─ total: 3468140594
β”Œβ”€ transferred: 219462910
└─ total: 3468140594
β”Œβ”€ transferred: 259650507
└─ total: 3468140594
β”Œβ”€ transferred: 312825572
└─ total: 3468140594
β”Œβ”€ transferred: 346861619
└─ total: 3468140594
β”Œβ”€ transferred: 380449755
└─ total: 3468140594
β”Œβ”€ transferred: 414601116
└─ total: 3468140594
β”Œβ”€ transferred: 449197241
└─ total: 3468140594
β”Œβ”€ transferred: 489990393
└─ total: 3468140594
β”Œβ”€ transferred: 530010259
└─ total: 3468140594
β”Œβ”€ transferred: 563613688
└─ total: 3468140594
β”Œβ”€ transferred: 597502317
└─ total: 3468140594
β”Œβ”€ transferred: 631154580
└─ total: 3468140594
β”Œβ”€ transferred: 658073064
└─ total: 3468140594
β”Œβ”€ transferred: 698866250
└─ total: 3468140594
β”Œβ”€ transferred: 745002090
└─ total: 3468140594
β”Œβ”€ transferred: 824717282
└─ total: 3468140594
β”Œβ”€ transferred: 861796590
└─ total: 3468140594
β”Œβ”€ transferred: 895361935
└─ total: 3468140594
β”Œβ”€ transferred: 928988487
└─ total: 3468140594
β”Œβ”€ transferred: 989839552
└─ total: 3468140594
β”Œβ”€ transferred: 1010065199
└─ total: 3468140594
β”Œβ”€ transferred: 1016072568
└─ total: 3468140594
β”Œβ”€ transferred: 1038284461
└─ total: 3468140594
β”Œβ”€ transferred: 1045997318
└─ total: 3468140594
β”Œβ”€ transferred: 1063327826
└─ total: 3468140594
β”Œβ”€ transferred: 1096941516
└─ total: 3468140594
β”Œβ”€ transferred: 1132819311
└─ total: 3468140594
β”Œβ”€ transferred: 1166485048
└─ total: 3468140594
β”Œβ”€ transferred: 1175869271
└─ total: 3468140594
β”Œβ”€ transferred: 1196537916
└─ total: 3468140594
β”Œβ”€ transferred: 1230224806
└─ total: 3468140594
β”Œβ”€ transferred: 1260163419
└─ total: 3468140594
β”Œβ”€ transferred: 1295986783
└─ total: 3468140594
β”Œβ”€ transferred: 1325207138
└─ total: 3468140594
β”Œβ”€ transferred: 1355682092
└─ total: 3468140594
β”Œβ”€ transferred: 1378047953
└─ total: 3468140594
β”Œβ”€ transferred: 1386343042
└─ total: 3468140594
β”Œβ”€ transferred: 1422865057
└─ total: 3468140594
β”Œβ”€ transferred: 1464392823
└─ total: 3468140594
β”Œβ”€ transferred: 1512332264
└─ total: 3468140594
β”Œβ”€ transferred: 1551129576
└─ total: 3468140594
β”Œβ”€ transferred: 1572269081
└─ total: 3468140594
β”Œβ”€ transferred: 1608111891
└─ total: 3468140594
β”Œβ”€ transferred: 1644232256
└─ total: 3468140594
β”Œβ”€ transferred: 1678137512
└─ total: 3468140594
β”Œβ”€ transferred: 1711828889
└─ total: 3468140594
β”Œβ”€ transferred: 1745663486
└─ total: 3468140594
β”Œβ”€ transferred: 1779228367
└─ total: 3468140594
β”Œβ”€ transferred: 1812794661
└─ total: 3468140594
β”Œβ”€ transferred: 1848933986
└─ total: 3468140594
β”Œβ”€ transferred: 1884037758
└─ total: 3468140594
β”Œβ”€ transferred: 1925507162
└─ total: 3468140594
β”Œβ”€ transferred: 3468140594
└─ total: 3468140594
Repository checked out
β£»
Installing exec-daemon from https://public-asphr-vm-daemon-bucket.s3.us-east-1.amazonaws.com/exec-daemon/exec-daemon-x64-ae6d3b55f6cddd00a7abe2b7c645fa6453bded3a40ffd23808262161ed5fc863.tar.gz
[Exit] Success (code: 0)
INFO Successfully refreshed access token in git config. {"hostname":"github.com"}
INFO exec-daemon-gh: Writing token to gh hosts.yml
/bin/bash: line 1: python: command not found
e[0;31mPython not on version 3.10 or 3.12e[0m
make: *** [Makefile:133: python-version-check] Error 1
[Exit] Failed (code: 2)

I also ran into another issue with the cloud agent environment (Unable to configure cloud agent environment - environment not available?).

Steps to Reproduce

  1. Open Cursor (web)
  2. Start a new cloud agent

Expected Behavior

Cloud agents work and don’t error out due to an environment error

Operating System

MacOS

Current Cursor Version (Menu β†’ About Cursor β†’ Copy)

Version: 2.2.9 (Universal)
VSCode Version: 1.105.1
Commit: a86689c93e9fb11addfbefd29a6ec7c0a59175e0
Date: 2025-12-10T16:51:25.713Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Yes - Cursor is unusable

Hey, thanks for the report.

From the logs, it looks like the Cloud Agent environment doesn’t have Python in PATH. Your Makefile requires Python 3.10 or 3.12, but the python command isn’t found.

To install system dependencies like Python, you need to use a Dockerfile when setting up the environment:

A few questions:

  1. Do you have a .cursor/environment.json file in the repo? If yes, please share its contents.
  2. Which install/start scripts are configured under Settings > Cloud Agents > Environment?
  3. Did you use a Dockerfile when creating the snapshot?

I also noticed your related ticket about β€œenvironment not available” which might be the same root issue with the environment setup.

Let me know.

Do you have a .cursor/environment.json file in the repo

Yes. It’s empty

Which install/start scripts are configured under Settings > Cloud Agents > Environment?

None.

Did you use a Dockerfile when creating the snapshot?

I don’t think so.

I just set up and tried a basic Dockerfile, but I got the same error.

Thanks for the details.

You mentioned you tried a Dockerfile but got the same error - could you share:

  1. The contents of your Dockerfile
  2. Whether you recreated the snapshot after adding the Dockerfile (via Cmd+Shift+P > Cursor: Start Cloud Agent Setup)

You also have a related ticket about β€œLost connection to environment logs” - that might block the environment changes from applying correctly. These two issues could be related.

Let me know!

Hello,

I’m also having an issue trying to configure the environment. When I try to configure it, I get an error: Failed to connect to the remote extension host server (Error: [internal] Pod exists but exec-daemon is unreachable after 8 retries).

  1. I ran the network diagnostics and didn’t have any issues.
  2. I don’t have a .cursor/environment.json
  3. Also to make sure that it’s not any extensions affecting it, I started cursor with the –disable-extensions flag.

2 Likes

I’m having the same issue! (Failed to connect to the remote extension host…). Cloud agents were working flawlessly until today. Cloud agents launched online failed, so I tried to reconfigure the environment but I’m running into this error. I had an environment.json file, but I tried removing it and it made no difference.

Thanks so much for any help!

This was the Dockerfile I tried using:

FROM ubuntu:22.04

# Prevent interactive prompts during package installation
ENV DEBIAN_FRONTEND=noninteractive

# Install system dependencies and build tools
RUN apt-get update && apt-get install -y \
    # Compilers
    gcc \
    g++ \
    clang \
    clang-14 \
    # Build tools
    make \
    cmake \
    pkg-config \
    # System libraries required for Python packages
    zlib1g-dev \
    libbz2-dev \
    libsqlite3-dev \
    libreadline-dev \
    libssl-dev \
    libsnappy-dev \
    libmemcached-dev \
    libzstd-dev \
    libmysqlclient-dev \
    libfreetype6-dev \
    libtiff-dev \
    libxml2-dev \
    liblz4-dev \
    libbrotli-dev \
    libxmlsec1-dev \
    # Debuggers
    gdb \
    lldb \
    # Utilities
    git \
    wget \
    curl \
    jq \
    # Python build dependencies
    python3-dev \
    python3-pip \
    # Cleanup
    && rm -rf /var/lib/apt/lists/*

# Set up environment variables for compilation
ENV MYSQLCLIENT_CFLAGS="-I/usr/include/mysql" \
    MYSQLCLIENT_LDFLAGS="-lmysqlclient" \
    LC_ALL=en_US.UTF-8 \
    PYTHONDONTWRITEBYTECODE=1

# Create non-root user for cloud agents
RUN useradd -m -s /bin/bash ubuntu

# Set user and working directory as required for cloud agents
USER ubuntu
WORKDIR /home/ubuntu

I did not create the snapshot with the Dockerfile

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.