Replies: 2 comments 1 reply
-
|
This is a known issue with gunicorn 25.x+ in Dify's Docker containers. Gunicorn now enables a control socket by default that requires a writable Fix: Create a services:
api:
environment:
- HOME=/tmp
api_websocket:
environment:
- HOME=/tmp
worker:
environment:
- HOME=/tmpThen restart: docker compose down
docker compose up -dAfter this, you should see Note: While this error looks alarming, in some deployments it's non-critical and the API still functions. However, in other cases it can cause the gunicorn worker to silently die, resulting in 502 errors. The To reply, just mention @dosu. Share context across your team and agents. Try Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
@dosu You're awesome, thank you |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Self Checks
Content
Deploy version 1.14.2 on the new server using docker compose,error info:
api-1 | [2026-06-08 12:24:53 +0000] [1] [ERROR] Control server error: [Errno 13] Permission denied: '/home/dify'
api_websocket-1 | [2026-06-08 12:24:53 +0000] [1] [INFO] Starting gunicorn 26.0.0
api_websocket-1 | [2026-06-08 12:24:53 +0000] [1] [INFO] Listening at: http://0.0.0.0:5001 (1)
api_websocket-1 | [2026-06-08 12:24:53 +0000] [1] [INFO] Using worker: geventwebsocket.gunicorn.workers.GeventWebSocketWorker
api_websocket-1 | [2026-06-08 12:24:53 +0000] [110] [INFO] Booting worker with pid: 110
api_websocket-1 | [2026-06-08 12:24:53 +0000] [1] [ERROR] Control server error: [Errno 13] Permission denied: '/home/dify'
docker file directory location: home/dify/dify-1.14.2/docker,
data storage directory: home/dify/volumes
root@yan:/home/dify# ls
dify-1.14.2 dify-1.14.2.zip images volumes volumes-260531backup.tar
root@yan:/home/dify# cd dify-1.14.2/
root@yan:/home/dify/dify-1.14.2# ls
AGENTS.md CLAUDE.md depot.json docker eslint.config.mjs LICENSE packages README.md vite.config.ts
api codecov.yml dev docs eslint-suppressions.json Makefile pnpm-lock.yaml scripts web
AUTHORS CONTRIBUTING.md dify-agent e2e images package.json pnpm-workspace.yaml sdks
root@yan:/home/dify/dify-1.14.2#
Beta Was this translation helpful? Give feedback.
All reactions