Skip to content

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

fix(platform): unblock e2e seed in E2B sandboxes (#13054)

Nicholas Tindle9789cf42f9f7
diff --git a/autogpt_platform/backend/.env.default b/autogpt_platform/backend/.env.default
index 98710591c4..0eefdb2c48 100644
--- a/autogpt_platform/backend/.env.default
+++ b/autogpt_platform/backend/.env.default
@@ -81,7 +81,7 @@ NVIDIA_API_KEY=
# Embedder key falls back to CHAT_OPENAI_API_KEY (AutoPilot), then OPENAI_API_KEY.
GRAPHITI_FALKORDB_HOST=localhost
GRAPHITI_FALKORDB_PORT=6380
-GRAPHITI_FALKORDB_PASSWORD=
+GRAPHITI_FALKORDB_PASSWORD=local-dev-password
GRAPHITI_LLM_MODEL=gpt-4.1-mini
GRAPHITI_EMBEDDER_MODEL=text-embedding-3-small
GRAPHITI_SEMAPHORE_LIMIT=5
diff --git a/autogpt_platform/docker-compose.platform.yml b/autogpt_platform/docker-compose.platform.yml
index d792c2a3ca..c210791522 100644
--- a/autogpt_platform/docker-compose.platform.yml
+++ b/autogpt_platform/docker-compose.platform.yml
@@ -140,8 +140,16 @@ services:
ports:
- "6380:6379" # FalkorDB Redis protocol (6380 to avoid clash with Redis on 6379)
- "3001:3000" # FalkorDB web UI
- environment:
- - REDIS_ARGS=--requirepass ${GRAPHITI_FALKORDB_PASSWORD:-}
+ <<: *backend-env-files
+ # `:?` exits the container if the var is unset/empty, surfacing a
+ # missing-config error instead of silent `--requirepass ""` auth.
+ entrypoint:
+ - /bin/sh
+ - -c
+ - >-
+ export REDIS_ARGS="--requirepass $${GRAPHITI_FALKORDB_PASSWORD:?GRAPHITI_FALKORDB_PASSWORD must be set}"
+ && exec /var/lib/falkordb/bin/run.sh "$$@"
+ - --
volumes:
- falkordb_data:/data
networks:
@@ -150,7 +158,7 @@ services:
test:
[
"CMD-SHELL",
- 'redis-cli -p 6379 -a "${GRAPHITI_FALKORDB_PASSWORD:-}" --no-auth-warning ping && wget --spider -q http://localhost:3000 || exit 1',
+ 'redis-cli -p 6379 -a "$${GRAPHITI_FALKORDB_PASSWORD:-}" --no-auth-warning ping | grep -q PONG',
]
interval: 10s
timeout: 5s
diff --git a/autogpt_platform/docker-compose.yml b/autogpt_platform/docker-compose.yml
index 94e356941d..3371d8b9d2 100644
--- a/autogpt_platform/docker-compose.yml
+++ b/autogpt_platform/docker-compose.yml
@@ -151,6 +151,11 @@ services:
environment:
GOTRUE_MAILER_AUTOCONFIRM: true
+ # db waits on rabbitmq:service_healthy to gate startup ordering:
+ # concurrent container creation in E2B's Docker races RabbitMQ's
+ # .erlang.cookie write, producing `eacces` at broker boot. Supabase's
+ # auth/meta/studio + migrate all depends_on db:service_healthy
+ # upstream, so gating db alone cascades to the rest of the stack.
db:
<<: *supabase-services
extends:
@@ -158,6 +163,9 @@ services:
service: db
ports:
- 5432:5432 # We don't use Supavisor locally, so we expose the db directly.
+ depends_on:
+ rabbitmq:
+ condition: service_healthy
# Studio and its dependencies for local development only
meta: