Dify 1.13.3 stuck on loading after Docker restart / all console APIs return 502 #36817
Replies: 1 comment
-
|
Hi @cjmadcdfsdfasf! I'm Dosu and I’m helping the dify team. The issue is that your deployment is missing the nginx reverse proxy service, which is part of the standard Dify Docker Compose setup and handles routing Here's what's happening:
Fix — Option A: Add nginx back (recommended) Use the standard CONSOLE_API_URL=http://47.xxx.xxx.xxx
APP_API_URL=http://47.xxx.xxx.xxx(pointing to whatever port nginx exposes, default 80). Fix — Option B: Leave CONSOLE_API_URL empty Another user resolved this exact issue on 1.14.1 by setting Fix — Option C: Expose the API directly and fix the port If you truly want to run without nginx, make sure the API container's port 5001 is exposed as 8002: api:
ports:
- "8002:5001"And set: CONSOLE_API_URL=http://47.xxx.xxx.xxx:8002
APP_API_URL=http://47.xxx.xxx.xxx:8002
CONSOLE_CORS_ALLOW_ORIGINS=*The standard deployment includes nginx for a reason — it handles routing, CORS, WebSocket upgrades, and static file serving all in one place. I'd recommend adding it back from the official To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
Hi everyone,
I’m running Dify 1.13.3 with Docker Compose on a cloud server.
This morning everything worked normally, but after restarting Docker, the Dify console became stuck on the loading spinner and never finished loading.
Environment:
Current docker compose services:
All containers are running successfully.
docker compose ps:
dify-api-1 Up
dify-worker-1 Up
dify-web-1 Up
dify-postgres-1 Up (healthy)
dify-redis-1 Up
API health check works correctly:
curl http://127.0.0.1:8002/health
returns:
{"pid":9,"status":"ok","version":"1.13.3"}
However, the frontend cannot load.
Browser console shows many errors like:
GET /console/api/features 502 (Bad Gateway)
GET /console/api/workspaces 502 (Bad Gateway)
GET /console/api/account/profile 502 (Bad Gateway)
The page stays on the loading spinner forever.
My docker-compose.yaml uses:
web:
environment:
CONSOLE_API_URL: http://47.xxx.xxx.xxx:8002
APP_API_URL: http://47.xxx.xxx.xxx:8002
api:
environment:
MODE: api
INIT_DATABASE: false
CONSOLE_CORS_ALLOW_ORIGINS: "*"
I already:
But frontend APIs still return 502.
Has anyone encountered this issue after restarting Docker on Dify 1.13.x?
Is there any required nginx/proxy configuration for 1.13.x that is missing in minimal deployments?
Thanks a lot.
Beta Was this translation helpful? Give feedback.
All reactions