environment_setup_failed

The cloud agent's environment failed to initialize. Check repo URLs, setup commands, and working directory paths.

The environment_setup_failed error occurs when the cloud agent's runtime environment could not be initialized. This covers failures during any phase of environment setup, including repository cloning, setup command execution, working directory resolution, and MCP server startup.

circle-info

Although this returns HTTP 500, it is classified as a user error (task state → FAILED) because the failure is caused by the environment configuration, not by Warp's infrastructure.


Details

  • HTTP Status: 500 Internal Server Error

  • Retryable: No

  • Task State: FAILED


When does this occur?

This error is returned when any part of the environment initialization process fails:

  • Git clone failed — The repository URL is incorrect, the branch does not exist, or the agent does not have access to the repository

  • Setup command failed — A command in the environment's setup commands list exited with an error (for example, missing dependencies, script errors)

  • Working directory not found — The configured working directory does not exist after cloning

  • MCP server startup failed — An MCP server configured for the environment could not start

The title field in the response will describe the specific setup failure.


Example response


How to resolve

  1. Check repository configuration — Verify the repository URL and branch name in your environment settingsarrow-up-right. Ensure the repository exists and is accessible.

  2. Check setup commands — Run the setup commands locally to confirm they work. Look for missing dependencies, incorrect paths, or syntax errors.

  3. Check working directory — Ensure the working directory path exists relative to the cloned repository root.

  4. Check MCP server configuration — Verify MCP server startup commands and that any required dependencies or credentials are available. See MCP Servers for Agentsarrow-up-right.

  5. Check secrets — If setup commands reference environment variables from secretsarrow-up-right, verify the secrets are configured and in scope.


Last updated

Was this helpful?