Skip to content

Playground deployment failed, no debugger #1870

@lionello

Description

@lionello

I did a clean install, init, up:

$ eval "$(curl -fsSL s.defang.io/install)"
       __     ____
  ____/ /__  / __/___ _____  ____ _
 / __  / _ \/ /_/ __ `/ __ \/ __ `/
/ /_/ /  __/ __/ /_/ / / / / /_/ /
\__,_/\___/_/  \__,_/_/ /_/\__, /
                          /____/

Fetching the latest release of defang...
Downloading https://github.com/DefangLabs/defang/releases/download/v3.0.2/defang_3.0.2_macOS.zip...
Extracting the downloaded file to /var/folders/wp/g4m6l2dx3f71wsy8j6l2wwdc0000gn/T/tmp.YnOhqwQe11...
Moving defang to /Users/llunesu/.local/bin
Generating completion script at /Users/llunesu/.local/share/zsh/site-functions/_defang
defangGenerating completion script at /Users/llunesu/.local/share/zsh/site-functions/_defang
Cleaning up...
Installation completed. You can now use defang by typing 'defang' in the terminal.
The Defang MCP server can be used with the coding agent of your choice.
Run 'defang mcp setup' to install the Defang MCP server.
Alternatively, you can use Defang's built-in agent by running 'defang'.
$ defang init
? How would you like to start? Clone a sample
? Choose a sample service: agentic-strands
? What folder would you like to create the project in? agentic-strands
 * Fetching sample from the Defang repository...
 * Copying files to disk...
   - .devcontainer/
   - .devcontainer/Dockerfile
   - .devcontainer/devcontainer.json
   - .github/
   - .github/workflows/
   - .github/workflows/deploy.yaml
   - README.md
   - app/
   - app/.dockerignore
   - app/.gitignore
   - app/Dockerfile
   - app/__init__.py
   - app/index.html
   - app/main.py
   - app/requirements.txt
   - compose.dev.yaml
   - compose.yaml
 * Code generated successfully in folder agentic-strands

Check the files in your favorite editor.
To deploy this project, run `cd agentic-strands` and

  defang compose up

So far so good.

$ cd agentic-strands

$ defang up
Where do you want to deploy?
? provider Defang Playground
Enter a name for your stack:
? stack_name defang
 * Using the "defang" stack on defang from interactive selection; consider using BYOC (https://s.defang.io/byoc)
 * Service environment variables resolution summary:

SERVICE  ENVIRONMENT     SOURCE   VALUE
app      LLM_MODEL       Compose  default
app      LLM_URL         Compose  http://llm/api/v1/
app      OPENAI_API_KEY  Compose  SAMPLE_TOKEN
llm      OPENAI_API_KEY  Compose  SAMPLE_TOKEN
 * Packaging the project files for app at /Users/llunesu/agentic-strands/app
 * Uploading the project files for app
 ! service "app": environment "OPENAI_API_KEY" may contain sensitive information; consider using 'defang config set OPENAI_API_KEY' to securely store this value
 ! service "llm": environment "OPENAI_API_KEY" may contain sensitive information; consider using 'defang config set OPENAI_API_KEY' to securely store this value
 * Tailing logs for deployment ID yckhjxc9xfdv ; press Ctrl+C to detach:
 * Showing only build logs and runtime errors. Press V to toggle verbose mode.
2026-01-26T06:09:45.978-08:00 llm INFO:     Started server process [7]
2026-01-26T06:09:45.978-08:00 llm INFO:     Waiting for application startup.
2026-01-26T06:09:45.979-08:00 llm INFO:     Application startup complete.
2026-01-26T06:09:45.979-08:00 llm INFO:     Uvicorn running on http://0.0.0.0:80 (Press CTRL+C to quit)
2026-01-26T06:14:54.990-08:00 app Agent model: {'model_id': 'default', 'params': {'max_tokens': 1000, 'temperature': 0.7}}
2026-01-26T06:14:54.990-08:00 app Environment variables:
2026-01-26T06:14:54.990-08:00 app - LLM_URL: http://te6dgeiqe9kd2-llm/api/v1/
2026-01-26T06:14:54.990-08:00 app Starting Flask server on port 5001
2026-01-26T06:14:54.990-08:00 app  * Serving Flask app 'main' (lazy loading)
2026-01-26T06:14:54.990-08:00 app  * Environment: production
2026-01-26T06:14:54.990-08:00 app    WARNING: This is a development server. Do not use it in a production deployment.
2026-01-26T06:14:54.990-08:00 app    Use a production WSGI server instead.
2026-01-26T06:14:54.990-08:00 app  * Debug mode: off
2026-01-26T06:14:54.993-08:00 app WARNING: This is a development server. Do not use it in a production deployment. Use a production WSGI server instead.
2026-01-26T06:14:54.993-08:00 app  * Running on all addresses (0.0.0.0)
2026-01-26T06:14:54.993-08:00 app  * Running on http://127.0.0.1:5001
2026-01-26T06:14:54.993-08:00 app  * Running on http://169.254.9.1:5001
2026-01-26T06:14:54.993-08:00 app Press CTRL+C to quit
2026-01-26T06:15:01.192-08:00 app 169.254.169.126 - - [26/Jan/2026 14:15:01] "GET /health HTTP/1.1" 200 -
2026-01-26T06:15:11.195-08:00 app 169.254.169.126 - - [26/Jan/2026 14:15:11] "GET /health HTTP/1.1" 200 -
2026-01-26T06:15:41.197-08:00 app 169.254.169.126 - - [26/Jan/2026 14:15:41] "GET /health HTTP/1.1" 200 -
2026-01-26T06:16:11.199-08:00 app 169.254.169.126 - - [26/Jan/2026 14:16:11] "GET /health HTTP/1.1" 200 -
2026-01-26T06:16:41.201-08:00 app 169.254.169.126 - - [26/Jan/2026 14:16:41] "GET /health HTTP/1.1" 200 -
2026-01-26T06:17:11.205-08:00 app 169.254.169.126 - - [26/Jan/2026 14:17:11] "GET /health HTTP/1.1" 200 -
2026-01-26T06:17:22.812-08:00 cd error:   sdk-v2/provider2.go:572: sdk.helper_schema: Error when reading or editing CertificateMap: googleapi: Error 400: Resource '"projects/defang-playground-prod/locations/global/certificateMaps/defang-testdata-te6dgeiqe9kd2-prod1-lb-cert-map-df61d1e"' has nested resources. If the API supports cascading delete, set 'force' to true to delete it and its nested resources.: provider=google-beta@9.2.0
2026-01-26T06:17:22.812-08:00 cd error: deleting urn:pulumi:te6dgeiqe9kd2-prod1::cd::gcp:certificatemanager/certificateMap:CertificateMap::defang-testdata-te6dgeiqe9kd2-prod1-lb-cert-map: 1 error occurred:
                                                   	* Error when reading or editing CertificateMap: googleapi: Error 400: Resource '"projects/defang-playground-prod/locations/global/certificateMaps/defang-testdata-te6dgeiqe9kd2-prod1-lb-cert-map-df61d1e"' has nested resources. If the API supports cascading delete, set 'force' to true to delete it and its nested resources.
2026-01-26T06:17:23.388-08:00 cd error:   sdk-v2/provider2.go:572: sdk.helper_schema: Error when reading or editing UrlMap: googleapi: Error 400: The url_map resource 'projects/defang-playground-prod/global/urlMaps/defang-testdata-te6dgeiqe9kd2-prod1-lb-http-redir1ztbns-eef539c' is already being used by 'projects/defang-playground-prod/global/targetHttpProxies/defang-testdata-te6dgeiqe9kd2-prod1-lb-http-proxy-18d5e0c', resourceInUseByAnotherResource: provider=google-beta@9.2.0
2026-01-26T06:17:23.389-08:00 cd error: deleting urn:pulumi:te6dgeiqe9kd2-prod1::cd::gcp:compute/uRLMap:URLMap::defang-testdata-te6dgeiqe9kd2-prod1-lb-http-redir1ztbns: 1 error occurred:
                                                   	* Error when reading or editing UrlMap: googleapi: Error 400: The url_map resource 'projects/defang-playground-prod/global/urlMaps/defang-testdata-te6dgeiqe9kd2-prod1-lb-http-redir1ztbns-eef539c' is already being used by 'projects/defang-playground-prod/global/targetHttpProxies/defang-testdata-te6dgeiqe9kd2-prod1-lb-http-proxy-18d5e0c', resourceInUseByAnotherResource
2026-01-26T06:17:24.349-08:00 cd error: update failed
Error: Update failed in 11m20.44678199s
  • Why does it mention my old Playground project testdata?
  • If I had an active Playground project, CLI should've asked me to do down first.
  • Why did it fail?
  • Why no debugger?

Metadata

Metadata

Assignees

No one assigned

    Labels

    ai-debuggingRelated to AI-assisted debugginggcpGoogle Cloud Platform related issueplaygroundApplies to Defang SaaS only

    Type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions