Skip to content

armgit / dify

Public Imported from GitHub
0

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

fix: wire UV_CACHE_DIR for plugin_daemon (Fixes #42433) (#42481)

Sourav Rajvid39d9ddb7430
diff --git a/docker/.env.example b/docker/.env.example
index 2020a70017e..6e7f48d616b 100644
--- a/docker/.env.example
+++ b/docker/.env.example
@@ -29,7 +29,6 @@ NEXT_PUBLIC_SOCKET_URL=ws://localhost
LANG=C.UTF-8
LC_ALL=C.UTF-8
PYTHONIOENCODING=utf-8
-UV_CACHE_DIR=/tmp/.uv-cache
# Leave empty to auto-generate a persistent key in the storage directory.
SECRET_KEY=
INIT_PASSWORD=
diff --git a/docker/envs/core-services/plugin-daemon.env.example b/docker/envs/core-services/plugin-daemon.env.example
index c3b1bef974c..b9b60168c6e 100644
--- a/docker/envs/core-services/plugin-daemon.env.example
+++ b/docker/envs/core-services/plugin-daemon.env.example
@@ -20,4 +20,6 @@ CELERY_WORKER_CLASS=
PLUGIN_STORAGE_TYPE=local
PLUGIN_STORAGE_LOCAL_ROOT=/app/storage
PLUGIN_WORKING_PATH=/app/storage/cwd
+# Optional: set in docker/.env for Docker/WSL bind-mount permission errors (langgenius/dify#42433).
+# UV_CACHE_DIR=/tmp/.uv-cache
PLUGIN_STORAGE_OSS_BUCKET=
diff --git a/docker/envs/core-services/shared.env.example b/docker/envs/core-services/shared.env.example
index fbb960b742c..3b38ef23c3b 100644
--- a/docker/envs/core-services/shared.env.example
+++ b/docker/envs/core-services/shared.env.example
@@ -11,7 +11,6 @@ APP_WEB_URL=
LANG=C.UTF-8
LC_ALL=C.UTF-8
PYTHONIOENCODING=utf-8
-UV_CACHE_DIR=/tmp/.uv-cache
CHECK_UPDATE_URL=https://updates.dify.ai
OPENAI_API_BASE=https://api.openai.com/v1
MIGRATION_ENABLED=true
@@ -547,6 +546,3 @@ CONVERSATION_CLEANUP_BATCH_SIZE=100
# unresponsive Nacos server cannot stall API startup or token refresh.
DIFY_ENV_NACOS_REQUEST_TIMEOUT=10.0
DIFY_ENV_NACOS_CONNECT_TIMEOUT=3.0
-
-# uv cache dir
-UV_CACHE_DIR=/tmp/uv_cache