docker build -t dify-api bug!!! #8387

Closed
opened 2026-02-21 18:25:25 -05:00 by yindo · 5 comments
Owner

Originally created by @bin-bin-6 on GitHub (Feb 18, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

0.15.3

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

run docker image show error;

2025-02-18 20:45:48 [2025-02-18 12:45:48 +0000] [1] [INFO] Starting gunicorn 23.0.0
2025-02-18 20:45:48 [2025-02-18 12:45:48 +0000] [1] [INFO] Listening at: http://0.0.0.0:5001/ (1)
2025-02-18 20:45:48 [2025-02-18 12:45:48 +0000] [1] [INFO] Using worker: gevent
2025-02-18 20:45:48 [2025-02-18 12:45:48 +0000] [6] [INFO] Booting worker with pid: 6
2025-02-18 20:46:06 None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used.
2025-02-18 20:46:08 /app/api/.venv/lib/python3.12/site-packages/tencentcloud/hunyuan/v20230901/models.py:6087: SyntaxWarning: invalid escape sequence '_'
2025-02-18 20:46:08 """function名称,只能包含a-z,A-Z���0-9,_或-
2025-02-18 20:46:09 2025-02-18 12:46:09,834.834 INFO [MainThread] [utils.py:160] - NumExpr defaulting to 8 threads.
2025-02-18 20:46:15 /app/api/.venv/lib/python3.12/site-packages/opik/evaluation/metrics/heuristics/regex_match.py:8: SyntaxWarning: invalid escape sequence '\d'
2025-02-18 20:46:15 """
2025-02-18 20:46:27 [2025-02-18 12:46:27 +0000] [6] [ERROR] Exception in worker process
2025-02-18 20:46:27 Traceback (most recent call last):
2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker
2025-02-18 20:46:27 worker.init_process()
2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 146, in init_process
2025-02-18 20:46:27 super().init_process()
2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base.py", line 135, in init_process
2025-02-18 20:46:27 self.load_wsgi()
2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi
2025-02-18 20:46:27 self.wsgi = self.app.wsgi()
2025-02-18 20:46:27 ^^^^^^^^^^^^^^^
2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/app/base.py", line 66, in wsgi
2025-02-18 20:46:27 self.callable = self.load()
2025-02-18 20:46:27 ^^^^^^^^^^^
2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 57, in load
2025-02-18 20:46:27 return self.load_wsgiapp()
2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^
2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp
2025-02-18 20:46:27 return util.import_app(self.app_uri)
2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/util.py", line 370, in import_app
2025-02-18 20:46:27 mod = importlib.import_module(module)
2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-18 20:46:27 File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module
2025-02-18 20:46:27 return _bootstrap._gcd_import(name[level:], package, level)
2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-18 20:46:27 File "", line 1387, in _gcd_import
2025-02-18 20:46:27 File "", line 1360, in _find_and_load
2025-02-18 20:46:27 File "", line 1331, in _find_and_load_unlocked
2025-02-18 20:46:27 File "", line 935, in _load_unlocked
2025-02-18 20:46:27 File "", line 999, in exec_module
2025-02-18 20:46:27 File "", line 488, in _call_with_frames_removed
2025-02-18 20:46:27 File "/app/api/app.py", line 37, in
2025-02-18 20:46:27 app = create_app()
2025-02-18 20:46:27 ^^^^^^^^^^^^
2025-02-18 20:46:27 File "/app/api/app_factory.py", line 25, in create_app
2025-02-18 20:46:27 initialize_extensions(app)
2025-02-18 20:46:27 File "/app/api/app_factory.py", line 87, in initialize_extensions
2025-02-18 20:46:27 ext.init_app(app)
2025-02-18 20:46:27 File "/app/api/extensions/ext_storage.py", line 138, in init_app
2025-02-18 20:46:27 storage.init_app(app)
2025-02-18 20:46:27 File "/app/api/extensions/ext_storage.py", line 19, in init_app
2025-02-18 20:46:27 self.storage_runner = storage_factory()
2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^
2025-02-18 20:46:27 File "/app/api/extensions/ext_storage.py", line 31, in
2025-02-18 20:46:27 return lambda: OpenDALStorage(dify_config.OPENDAL_SCHEME)
2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-18 20:46:27 File "/app/api/extensions/storage/opendal_storage.py", line 37, in init
2025-02-18 20:46:27 self.op = opendal.Operator(scheme=scheme, **kwargs)
2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-02-18 20:46:27 opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified
2025-02-18 20:46:27 [2025-02-18 12:46:27 +0000] [6] [INFO] Worker exiting (pid: 6)
2025-02-18 20:46:29 [2025-02-18 12:46:29 +0000] [1] [ERROR] Worker (pid:6) exited with code 3
2025-02-18 20:46:29 [2025-02-18 12:46:29 +0000] [1] [ERROR] Shutting down: Master
2025-02-18 20:46:29 [2025-02-18 12:46:29 +0000] [1] [ERROR] Reason: Worker failed to boot.

Steps to Reproduce
cd api
docker docker build -t dify-api .

✔️ Expected Behavior

tell me how to fix it

Actual Behavior

QDRANT_API_KEY=difyai123456
QDRANT_CLIENT_TIMEOUT=20
QDRANT_GRPC_ENABLED=false
QDRANT_GRPC_PORT=6334

#Couchbase configuration
COUCHBASE_CONNECTION_STRING=127.0.0.1
COUCHBASE_USER=Administrator
COUCHBASE_PASSWORD=password
COUCHBASE_BUCKET_NAME=Embeddings
COUCHBASE_SCOPE_NAME=_default

Milvus configuration
MILVUS_URI=http://127.0.0.1:19530/
MILVUS_TOKEN=
MILVUS_USER=root
MILVUS_PASSWORD=Milvus

MyScale configuration
MYSCALE_HOST=127.0.0.1
MYSCALE_PORT=8123
MYSCALE_USER=default
MYSCALE_PASSWORD=
MYSCALE_DATABASE=default
MYSCALE_FTS_PARAMS=

Relyt configuration
RELYT_HOST=127.0.0.1
RELYT_PORT=5432
RELYT_USER=postgres
RELYT_PASSWORD=postgres
RELYT_DATABASE=postgres

Tencent configuration
TENCENT_VECTOR_DB_URL=http://127.0.0.1/
TENCENT_VECTOR_DB_API_KEY=dify
TENCENT_VECTOR_DB_TIMEOUT=30
TENCENT_VECTOR_DB_USERNAME=dify
TENCENT_VECTOR_DB_DATABASE=dify
TENCENT_VECTOR_DB_SHARD=1
TENCENT_VECTOR_DB_REPLICAS=2

ElasticSearch configuration
ELASTICSEARCH_HOST=127.0.0.1
ELASTICSEARCH_PORT=9200
ELASTICSEARCH_USERNAME=elastic
ELASTICSEARCH_PASSWORD=elastic

PGVECTO_RS configuration
PGVECTO_RS_HOST=10.170.153.105
PGVECTO_RS_PORT=5431
PGVECTO_RS_USER=postgres
PGVECTO_RS_PASSWORD=difyai123456
PGVECTO_RS_DATABASE=postgres

PGVector configuration
PGVECTOR_HOST=10.170.153.105
PGVECTOR_PORT=5433
PGVECTOR_USER=postgres
PGVECTOR_PASSWORD=postgres
PGVECTOR_DATABASE=postgres
PGVECTOR_MIN_CONNECTION=1
PGVECTOR_MAX_CONNECTION=5

Tidb Vector configuration
TIDB_VECTOR_HOST=xxx.eu-central-1.xxx.aws.tidbcloud.com
TIDB_VECTOR_PORT=4000
TIDB_VECTOR_USER=xxx.root
TIDB_VECTOR_PASSWORD=xxxxxx
TIDB_VECTOR_DATABASE=dify

Tidb on qdrant configuration
TIDB_ON_QDRANT_URL=http://127.0.0.1/
TIDB_ON_QDRANT_API_KEY=dify
TIDB_ON_QDRANT_CLIENT_TIMEOUT=20
TIDB_ON_QDRANT_GRPC_ENABLED=false
TIDB_ON_QDRANT_GRPC_PORT=6334
TIDB_PUBLIC_KEY=dify
TIDB_PRIVATE_KEY=dify
TIDB_API_URL=http://127.0.0.1/
TIDB_IAM_API_URL=http://127.0.0.1/
TIDB_REGION=regions/aws-us-east-1
TIDB_PROJECT_ID=dify
TIDB_SPEND_LIMIT=100

Chroma configuration
CHROMA_HOST=127.0.0.1
CHROMA_PORT=8000
CHROMA_TENANT=default_tenant
CHROMA_DATABASE=default_database
CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthenticationServerProvider
CHROMA_AUTH_CREDENTIALS=difyai123456

AnalyticDB configuration
ANALYTICDB_KEY_ID=your-ak
ANALYTICDB_KEY_SECRET=your-sk
ANALYTICDB_REGION_ID=cn-hangzhou
ANALYTICDB_INSTANCE_ID=gp-ab123456
ANALYTICDB_ACCOUNT=testaccount
ANALYTICDB_PASSWORD=testpassword
ANALYTICDB_NAMESPACE=dify
ANALYTICDB_NAMESPACE_PASSWORD=difypassword
ANALYTICDB_HOST=gp-test.aliyuncs.com
ANALYTICDB_PORT=5432
ANALYTICDB_MIN_CONNECTION=1
ANALYTICDB_MAX_CONNECTION=5

OpenSearch configuration
OPENSEARCH_HOST=127.0.0.1
OPENSEARCH_PORT=9200
OPENSEARCH_USER=admin
OPENSEARCH_PASSWORD=admin
OPENSEARCH_SECURE=true

Baidu configuration
BAIDU_VECTOR_DB_ENDPOINT=http://127.0.0.1:5287/
BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS=30000
BAIDU_VECTOR_DB_ACCOUNT=root
BAIDU_VECTOR_DB_API_KEY=dify
BAIDU_VECTOR_DB_DATABASE=dify
BAIDU_VECTOR_DB_SHARD=1
BAIDU_VECTOR_DB_REPLICAS=3

Upstash configuration
UPSTASH_VECTOR_URL=your-server-url
UPSTASH_VECTOR_TOKEN=your-access-token

ViKingDB configuration
VIKINGDB_ACCESS_KEY=your-ak
VIKINGDB_SECRET_KEY=your-sk
VIKINGDB_REGION=cn-shanghai
VIKINGDB_HOST=api-vikingdb.xxx.volces.com
VIKINGDB_SCHEMA=http
VIKINGDB_CONNECTION_TIMEOUT=30
VIKINGDB_SOCKET_TIMEOUT=30

Lindorm configuration
LINDORM_URL=http://ld-*******************-proxy-search-pub.lindorm.aliyuncs.com:30070
LINDORM_USERNAME=admin
LINDORM_PASSWORD=admin
USING_UGC_INDEX=False

OceanBase Vector configuration
OCEANBASE_VECTOR_HOST=10.170.153.105
OCEANBASE_VECTOR_PORT=2881
OCEANBASE_VECTOR_USER=root@test
OCEANBASE_VECTOR_PASSWORD=difyai123456
OCEANBASE_VECTOR_DATABASE=test
OCEANBASE_MEMORY_LIMIT=6G

Upload configuration
UPLOAD_FILE_SIZE_LIMIT=15
UPLOAD_FILE_BATCH_LIMIT=5
UPLOAD_IMAGE_FILE_SIZE_LIMIT=10
UPLOAD_VIDEO_FILE_SIZE_LIMIT=100
UPLOAD_AUDIO_FILE_SIZE_LIMIT=50

Model configuration
MULTIMODAL_SEND_FORMAT=base64
PROMPT_GENERATION_MAX_TOKENS=512
CODE_GENERATION_MAX_TOKENS=1024

Mail configuration, support: resend, smtp
MAIL_TYPE=
MAIL_DEFAULT_SEND_FROM=no-reply no-reply@dify.ai
RESEND_API_KEY=
RESEND_API_URL=https://api.resend.com/

smtp configuration
SMTP_SERVER=smtp.gmail.com
SMTP_PORT=465
SMTP_USERNAME=123
SMTP_PASSWORD=abc
SMTP_USE_TLS=true
SMTP_OPPORTUNISTIC_TLS=false

Sentry configuration
SENTRY_DSN=

DEBUG
DEBUG=false
SQLALCHEMY_ECHO=false

Notion import configuration, support public and internal
NOTION_INTEGRATION_TYPE=public
NOTION_CLIENT_SECRET=you-client-secret
NOTION_CLIENT_ID=you-client-id
NOTION_INTERNAL_SECRET=you-internal-secret

ETL_TYPE=dify
UNSTRUCTURED_API_URL=
UNSTRUCTURED_API_KEY=
SCARF_NO_ANALYTICS=true

#ssrf
SSRF_PROXY_HTTP_URL=
SSRF_PROXY_HTTPS_URL=
SSRF_DEFAULT_MAX_RETRIES=3
SSRF_DEFAULT_TIME_OUT=5
SSRF_DEFAULT_CONNECT_TIME_OUT=5
SSRF_DEFAULT_READ_TIME_OUT=5
SSRF_DEFAULT_WRITE_TIME_OUT=5

BATCH_UPLOAD_LIMIT=10
KEYWORD_DATA_SOURCE_TYPE=database

Workflow file upload limit
WORKFLOW_FILE_UPLOAD_LIMIT=10

CODE EXECUTION CONFIGURATION
CODE_EXECUTION_ENDPOINT=http://19.135.184.141:8194/
CODE_EXECUTION_API_KEY=dify-sandbox
CODE_MAX_NUMBER=9223372036854775807
CODE_MIN_NUMBER=-9223372036854775808
CODE_MAX_STRING_LENGTH=80000
TEMPLATE_TRANSFORM_MAX_LENGTH=80000
CODE_MAX_STRING_ARRAY_LENGTH=30
CODE_MAX_OBJECT_ARRAY_LENGTH=30
CODE_MAX_NUMBER_ARRAY_LENGTH=1000

API Tool configuration
API_TOOL_DEFAULT_CONNECT_TIMEOUT=10
API_TOOL_DEFAULT_READ_TIMEOUT=60

HTTP Node configuration
HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300
HTTP_REQUEST_MAX_READ_TIMEOUT=600
HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760
HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576

Respect X-* headers to redirect clients
RESPECT_XFORWARD_HEADERS_ENABLED=false

Log file path
LOG_FILE=

Log file max size, the unit is MB
LOG_FILE_MAX_SIZE=20

Log file max backup count
LOG_FILE_BACKUP_COUNT=5

Log dateformat
LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S

Log Timezone
LOG_TZ=UTC

Log format
LOG_FORMAT=%(asctime)s,%(msecs)d %(levelname)-2s [%(filename)s:%(lineno)d] %(req_id)s %(message)s

Indexing configuration
INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000

Workflow runtime configuration
WORKFLOW_MAX_EXECUTION_STEPS=500
WORKFLOW_MAX_EXECUTION_TIME=1200
WORKFLOW_CALL_MAX_DEPTH=5
WORKFLOW_PARALLEL_DEPTH_LIMIT=3
MAX_VARIABLE_SIZE=204800

App configuration
APP_MAX_EXECUTION_TIME=1200
APP_MAX_ACTIVE_REQUESTS=0

Celery beat configuration
CELERY_BEAT_SCHEDULER_TIME=1

Position configuration
POSITION_TOOL_PINS=
POSITION_TOOL_INCLUDES=
POSITION_TOOL_EXCLUDES=

POSITION_PROVIDER_PINS=
POSITION_PROVIDER_INCLUDES=
POSITION_PROVIDER_EXCLUDES=

Reset password token expiry minutes
RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5

CREATE_TIDB_SERVICE_JOB_ENABLED=false

Maximum number of submitted thread count in a ThreadPool for parallel node execution
MAX_SUBMIT_COUNT=100

Lockout duration in seconds
LOGIN_LOCKOUT_DURATION=86400

Originally created by @bin-bin-6 on GitHub (Feb 18, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.15.3 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce run docker image show error; 2025-02-18 20:45:48 [2025-02-18 12:45:48 +0000] [1] [INFO] Starting gunicorn 23.0.0 2025-02-18 20:45:48 [2025-02-18 12:45:48 +0000] [1] [INFO] Listening at: http://0.0.0.0:5001/ (1) 2025-02-18 20:45:48 [2025-02-18 12:45:48 +0000] [1] [INFO] Using worker: gevent 2025-02-18 20:45:48 [2025-02-18 12:45:48 +0000] [6] [INFO] Booting worker with pid: 6 2025-02-18 20:46:06 None of PyTorch, TensorFlow >= 2.0, or Flax have been found. Models won't be available and only tokenizers, configuration and file/data utilities can be used. 2025-02-18 20:46:08 /app/api/.venv/lib/python3.12/site-packages/tencentcloud/hunyuan/v20230901/models.py:6087: SyntaxWarning: invalid escape sequence '_' 2025-02-18 20:46:08 """function名称,只能包含a-z,A-Z���0-9,_或- 2025-02-18 20:46:09 2025-02-18 12:46:09,834.834 INFO [MainThread] [utils.py:160] - NumExpr defaulting to 8 threads. 2025-02-18 20:46:15 /app/api/.venv/lib/python3.12/site-packages/opik/evaluation/metrics/heuristics/regex_match.py:8: SyntaxWarning: invalid escape sequence '\d' 2025-02-18 20:46:15 """ 2025-02-18 20:46:27 [2025-02-18 12:46:27 +0000] [6] [ERROR] Exception in worker process 2025-02-18 20:46:27 Traceback (most recent call last): 2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/arbiter.py", line 608, in spawn_worker 2025-02-18 20:46:27 worker.init_process() 2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/ggevent.py", line 146, in init_process 2025-02-18 20:46:27 super().init_process() 2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base.py", line 135, in init_process 2025-02-18 20:46:27 self.load_wsgi() 2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/workers/base.py", line 147, in load_wsgi 2025-02-18 20:46:27 self.wsgi = self.app.wsgi() 2025-02-18 20:46:27 ^^^^^^^^^^^^^^^ 2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/app/base.py", line 66, in wsgi 2025-02-18 20:46:27 self.callable = self.load() 2025-02-18 20:46:27 ^^^^^^^^^^^ 2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 57, in load 2025-02-18 20:46:27 return self.load_wsgiapp() 2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^ 2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/app/wsgiapp.py", line 47, in load_wsgiapp 2025-02-18 20:46:27 return util.import_app(self.app_uri) 2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-02-18 20:46:27 File "/app/api/.venv/lib/python3.12/site-packages/gunicorn/util.py", line 370, in import_app 2025-02-18 20:46:27 mod = importlib.import_module(module) 2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-02-18 20:46:27 File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module 2025-02-18 20:46:27 return _bootstrap._gcd_import(name[level:], package, level) 2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-02-18 20:46:27 File "", line 1387, in _gcd_import 2025-02-18 20:46:27 File "", line 1360, in _find_and_load 2025-02-18 20:46:27 File "", line 1331, in _find_and_load_unlocked 2025-02-18 20:46:27 File "", line 935, in _load_unlocked 2025-02-18 20:46:27 File "", line 999, in exec_module 2025-02-18 20:46:27 File "", line 488, in _call_with_frames_removed 2025-02-18 20:46:27 File "/app/api/app.py", line 37, in 2025-02-18 20:46:27 app = create_app() 2025-02-18 20:46:27 ^^^^^^^^^^^^ 2025-02-18 20:46:27 File "/app/api/app_factory.py", line 25, in create_app 2025-02-18 20:46:27 initialize_extensions(app) 2025-02-18 20:46:27 File "/app/api/app_factory.py", line 87, in initialize_extensions 2025-02-18 20:46:27 ext.init_app(app) 2025-02-18 20:46:27 File "/app/api/extensions/ext_storage.py", line 138, in init_app 2025-02-18 20:46:27 storage.init_app(app) 2025-02-18 20:46:27 File "/app/api/extensions/ext_storage.py", line 19, in init_app 2025-02-18 20:46:27 self.storage_runner = storage_factory() 2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^ 2025-02-18 20:46:27 File "/app/api/extensions/ext_storage.py", line 31, in 2025-02-18 20:46:27 return lambda: OpenDALStorage(dify_config.OPENDAL_SCHEME) 2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-02-18 20:46:27 File "/app/api/extensions/storage/opendal_storage.py", line 37, in init 2025-02-18 20:46:27 self.op = opendal.Operator(scheme=scheme, **kwargs) 2025-02-18 20:46:27 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ 2025-02-18 20:46:27 opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified 2025-02-18 20:46:27 [2025-02-18 12:46:27 +0000] [6] [INFO] Worker exiting (pid: 6) 2025-02-18 20:46:29 [2025-02-18 12:46:29 +0000] [1] [ERROR] Worker (pid:6) exited with code 3 2025-02-18 20:46:29 [2025-02-18 12:46:29 +0000] [1] [ERROR] Shutting down: Master 2025-02-18 20:46:29 [2025-02-18 12:46:29 +0000] [1] [ERROR] Reason: Worker failed to boot. Steps to Reproduce cd api docker docker build -t dify-api . ### ✔️ Expected Behavior tell me how to fix it ### ❌ Actual Behavior QDRANT_API_KEY=difyai123456 QDRANT_CLIENT_TIMEOUT=20 QDRANT_GRPC_ENABLED=false QDRANT_GRPC_PORT=6334 #Couchbase configuration COUCHBASE_CONNECTION_STRING=127.0.0.1 COUCHBASE_USER=Administrator COUCHBASE_PASSWORD=password COUCHBASE_BUCKET_NAME=Embeddings COUCHBASE_SCOPE_NAME=_default Milvus configuration MILVUS_URI=http://127.0.0.1:19530/ MILVUS_TOKEN= MILVUS_USER=root MILVUS_PASSWORD=Milvus MyScale configuration MYSCALE_HOST=127.0.0.1 MYSCALE_PORT=8123 MYSCALE_USER=default MYSCALE_PASSWORD= MYSCALE_DATABASE=default MYSCALE_FTS_PARAMS= Relyt configuration RELYT_HOST=127.0.0.1 RELYT_PORT=5432 RELYT_USER=postgres RELYT_PASSWORD=postgres RELYT_DATABASE=postgres Tencent configuration TENCENT_VECTOR_DB_URL=http://127.0.0.1/ TENCENT_VECTOR_DB_API_KEY=dify TENCENT_VECTOR_DB_TIMEOUT=30 TENCENT_VECTOR_DB_USERNAME=dify TENCENT_VECTOR_DB_DATABASE=dify TENCENT_VECTOR_DB_SHARD=1 TENCENT_VECTOR_DB_REPLICAS=2 ElasticSearch configuration ELASTICSEARCH_HOST=127.0.0.1 ELASTICSEARCH_PORT=9200 ELASTICSEARCH_USERNAME=elastic ELASTICSEARCH_PASSWORD=elastic PGVECTO_RS configuration PGVECTO_RS_HOST=10.170.153.105 PGVECTO_RS_PORT=5431 PGVECTO_RS_USER=postgres PGVECTO_RS_PASSWORD=difyai123456 PGVECTO_RS_DATABASE=postgres PGVector configuration PGVECTOR_HOST=10.170.153.105 PGVECTOR_PORT=5433 PGVECTOR_USER=postgres PGVECTOR_PASSWORD=postgres PGVECTOR_DATABASE=postgres PGVECTOR_MIN_CONNECTION=1 PGVECTOR_MAX_CONNECTION=5 Tidb Vector configuration TIDB_VECTOR_HOST=xxx.eu-central-1.xxx.aws.tidbcloud.com TIDB_VECTOR_PORT=4000 TIDB_VECTOR_USER=xxx.root TIDB_VECTOR_PASSWORD=xxxxxx TIDB_VECTOR_DATABASE=dify Tidb on qdrant configuration TIDB_ON_QDRANT_URL=http://127.0.0.1/ TIDB_ON_QDRANT_API_KEY=dify TIDB_ON_QDRANT_CLIENT_TIMEOUT=20 TIDB_ON_QDRANT_GRPC_ENABLED=false TIDB_ON_QDRANT_GRPC_PORT=6334 TIDB_PUBLIC_KEY=dify TIDB_PRIVATE_KEY=dify TIDB_API_URL=http://127.0.0.1/ TIDB_IAM_API_URL=http://127.0.0.1/ TIDB_REGION=regions/aws-us-east-1 TIDB_PROJECT_ID=dify TIDB_SPEND_LIMIT=100 Chroma configuration CHROMA_HOST=127.0.0.1 CHROMA_PORT=8000 CHROMA_TENANT=default_tenant CHROMA_DATABASE=default_database CHROMA_AUTH_PROVIDER=chromadb.auth.token_authn.TokenAuthenticationServerProvider CHROMA_AUTH_CREDENTIALS=difyai123456 AnalyticDB configuration ANALYTICDB_KEY_ID=your-ak ANALYTICDB_KEY_SECRET=your-sk ANALYTICDB_REGION_ID=cn-hangzhou ANALYTICDB_INSTANCE_ID=gp-ab123456 ANALYTICDB_ACCOUNT=testaccount ANALYTICDB_PASSWORD=testpassword ANALYTICDB_NAMESPACE=dify ANALYTICDB_NAMESPACE_PASSWORD=difypassword ANALYTICDB_HOST=gp-test.aliyuncs.com ANALYTICDB_PORT=5432 ANALYTICDB_MIN_CONNECTION=1 ANALYTICDB_MAX_CONNECTION=5 OpenSearch configuration OPENSEARCH_HOST=127.0.0.1 OPENSEARCH_PORT=9200 OPENSEARCH_USER=admin OPENSEARCH_PASSWORD=admin OPENSEARCH_SECURE=true Baidu configuration BAIDU_VECTOR_DB_ENDPOINT=http://127.0.0.1:5287/ BAIDU_VECTOR_DB_CONNECTION_TIMEOUT_MS=30000 BAIDU_VECTOR_DB_ACCOUNT=root BAIDU_VECTOR_DB_API_KEY=dify BAIDU_VECTOR_DB_DATABASE=dify BAIDU_VECTOR_DB_SHARD=1 BAIDU_VECTOR_DB_REPLICAS=3 Upstash configuration UPSTASH_VECTOR_URL=your-server-url UPSTASH_VECTOR_TOKEN=your-access-token ViKingDB configuration VIKINGDB_ACCESS_KEY=your-ak VIKINGDB_SECRET_KEY=your-sk VIKINGDB_REGION=cn-shanghai VIKINGDB_HOST=api-vikingdb.xxx.volces.com VIKINGDB_SCHEMA=http VIKINGDB_CONNECTION_TIMEOUT=30 VIKINGDB_SOCKET_TIMEOUT=30 Lindorm configuration LINDORM_URL=[http://ld-*******************-proxy-search-pub.lindorm.aliyuncs.com:30070](http://ld-%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A%2A-proxy-search-pub.lindorm.aliyuncs.com:30070/) LINDORM_USERNAME=admin LINDORM_PASSWORD=admin USING_UGC_INDEX=False OceanBase Vector configuration OCEANBASE_VECTOR_HOST=10.170.153.105 OCEANBASE_VECTOR_PORT=2881 OCEANBASE_VECTOR_USER=root@test OCEANBASE_VECTOR_PASSWORD=difyai123456 OCEANBASE_VECTOR_DATABASE=test OCEANBASE_MEMORY_LIMIT=6G Upload configuration UPLOAD_FILE_SIZE_LIMIT=15 UPLOAD_FILE_BATCH_LIMIT=5 UPLOAD_IMAGE_FILE_SIZE_LIMIT=10 UPLOAD_VIDEO_FILE_SIZE_LIMIT=100 UPLOAD_AUDIO_FILE_SIZE_LIMIT=50 Model configuration MULTIMODAL_SEND_FORMAT=base64 PROMPT_GENERATION_MAX_TOKENS=512 CODE_GENERATION_MAX_TOKENS=1024 Mail configuration, support: resend, smtp MAIL_TYPE= MAIL_DEFAULT_SEND_FROM=no-reply [no-reply@dify.ai](mailto:no-reply@dify.ai) RESEND_API_KEY= RESEND_API_URL=https://api.resend.com/ smtp configuration SMTP_SERVER=smtp.gmail.com SMTP_PORT=465 SMTP_USERNAME=123 SMTP_PASSWORD=abc SMTP_USE_TLS=true SMTP_OPPORTUNISTIC_TLS=false Sentry configuration SENTRY_DSN= DEBUG DEBUG=false SQLALCHEMY_ECHO=false Notion import configuration, support public and internal NOTION_INTEGRATION_TYPE=public NOTION_CLIENT_SECRET=you-client-secret NOTION_CLIENT_ID=you-client-id NOTION_INTERNAL_SECRET=you-internal-secret ETL_TYPE=dify UNSTRUCTURED_API_URL= UNSTRUCTURED_API_KEY= SCARF_NO_ANALYTICS=true #ssrf SSRF_PROXY_HTTP_URL= SSRF_PROXY_HTTPS_URL= SSRF_DEFAULT_MAX_RETRIES=3 SSRF_DEFAULT_TIME_OUT=5 SSRF_DEFAULT_CONNECT_TIME_OUT=5 SSRF_DEFAULT_READ_TIME_OUT=5 SSRF_DEFAULT_WRITE_TIME_OUT=5 BATCH_UPLOAD_LIMIT=10 KEYWORD_DATA_SOURCE_TYPE=database Workflow file upload limit WORKFLOW_FILE_UPLOAD_LIMIT=10 CODE EXECUTION CONFIGURATION CODE_EXECUTION_ENDPOINT=http://19.135.184.141:8194/ CODE_EXECUTION_API_KEY=dify-sandbox CODE_MAX_NUMBER=9223372036854775807 CODE_MIN_NUMBER=-9223372036854775808 CODE_MAX_STRING_LENGTH=80000 TEMPLATE_TRANSFORM_MAX_LENGTH=80000 CODE_MAX_STRING_ARRAY_LENGTH=30 CODE_MAX_OBJECT_ARRAY_LENGTH=30 CODE_MAX_NUMBER_ARRAY_LENGTH=1000 API Tool configuration API_TOOL_DEFAULT_CONNECT_TIMEOUT=10 API_TOOL_DEFAULT_READ_TIMEOUT=60 HTTP Node configuration HTTP_REQUEST_MAX_CONNECT_TIMEOUT=300 HTTP_REQUEST_MAX_READ_TIMEOUT=600 HTTP_REQUEST_MAX_WRITE_TIMEOUT=600 HTTP_REQUEST_NODE_MAX_BINARY_SIZE=10485760 HTTP_REQUEST_NODE_MAX_TEXT_SIZE=1048576 Respect X-* headers to redirect clients RESPECT_XFORWARD_HEADERS_ENABLED=false Log file path LOG_FILE= Log file max size, the unit is MB LOG_FILE_MAX_SIZE=20 Log file max backup count LOG_FILE_BACKUP_COUNT=5 Log dateformat LOG_DATEFORMAT=%Y-%m-%d %H:%M:%S Log Timezone LOG_TZ=UTC Log format LOG_FORMAT=%(asctime)s,%(msecs)d %(levelname)-2s [%(filename)s:%(lineno)d] %(req_id)s %(message)s Indexing configuration INDEXING_MAX_SEGMENTATION_TOKENS_LENGTH=4000 Workflow runtime configuration WORKFLOW_MAX_EXECUTION_STEPS=500 WORKFLOW_MAX_EXECUTION_TIME=1200 WORKFLOW_CALL_MAX_DEPTH=5 WORKFLOW_PARALLEL_DEPTH_LIMIT=3 MAX_VARIABLE_SIZE=204800 App configuration APP_MAX_EXECUTION_TIME=1200 APP_MAX_ACTIVE_REQUESTS=0 Celery beat configuration CELERY_BEAT_SCHEDULER_TIME=1 Position configuration POSITION_TOOL_PINS= POSITION_TOOL_INCLUDES= POSITION_TOOL_EXCLUDES= POSITION_PROVIDER_PINS= POSITION_PROVIDER_INCLUDES= POSITION_PROVIDER_EXCLUDES= Reset password token expiry minutes RESET_PASSWORD_TOKEN_EXPIRY_MINUTES=5 CREATE_TIDB_SERVICE_JOB_ENABLED=false Maximum number of submitted thread count in a ThreadPool for parallel node execution MAX_SUBMIT_COUNT=100 Lockout duration in seconds LOGIN_LOCKOUT_DURATION=86400
yindo added the 🐞 bug label 2026-02-21 18:25:25 -05:00
yindo closed this issue 2026-02-21 18:25:25 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Feb 18, 2025):

@bin-bin-6 Hello! I'm here to help you with any bugs, questions, or contribution inquiries. Let's work together to resolve your issue.

The error you're encountering, opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified, suggests that the root parameter is missing in your OpenDAL configuration. This is a common issue when the necessary environment variables for OpenDAL are not correctly set.

To resolve this, ensure that your environment variables include the OPENDAL_SCHEME and any other required parameters like root if you're using a local file system. These configurations are crucial for the proper initialization of the OpenDAL storage [1].

Additionally, you might want to check if there are any similar issues or discussions that could provide more context or solutions. For instance, there is a related discussion about Docker containers restarting after an upgrade, which might offer insights into configuration issues [2].

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

@dosubot[bot] commented on GitHub (Feb 18, 2025): <!-- Greeting --> @bin-bin-6 Hello! I'm here to help you with any bugs, questions, or contribution inquiries. Let's work together to resolve your issue. <!-- Answer --> The error you're encountering, `opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified`, suggests that the `root` parameter is missing in your OpenDAL configuration. This is a common issue when the necessary environment variables for OpenDAL are not correctly set. To resolve this, ensure that your environment variables include the `OPENDAL_SCHEME` and any other required parameters like `root` if you're using a local file system. These configurations are crucial for the proper initialization of the OpenDAL storage <sup>[[1]](https://github.com/langgenius/dify/issues/13001)</sup>. Additionally, you might want to check if there are any similar issues or discussions that could provide more context or solutions. For instance, there is a related discussion about Docker containers restarting after an upgrade, which might offer insights into configuration issues <sup>[[2]](https://github.com/langgenius/dify/discussions/12312)</sup>. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=other)</sup>
Author
Owner

@crazywoola commented on GitHub (Feb 18, 2025):

For self build images, please reach out to business@dify.ai

@crazywoola commented on GitHub (Feb 18, 2025): For self build images, please reach out to business@dify.ai
Author
Owner

@bin-bin-6 commented on GitHub (Feb 18, 2025):

@bin-bin-6 Hello! I'm here to help you with any bugs, questions, or contribution inquiries. Let's work together to resolve your issue.

The error you're encountering, opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified, suggests that the root parameter is missing in your OpenDAL configuration. This is a common issue when the necessary environment variables for OpenDAL are not correctly set.

To resolve this, ensure that your environment variables include the OPENDAL_SCHEME and any other required parameters like root if you're using a local file system. These configurations are crucial for the proper initialization of the OpenDAL storage [1].

Additionally, you might want to check if there are any similar issues or discussions that could provide more context or solutions. For instance, there is a related discussion about Docker containers restarting after an upgrade, which might offer insights into configuration issues [2].

To continue talking to Dosu, mention @dosu.

Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

i had set in /api/.env

STORAGE_TYPE = local
STORAGE_LOCAL_PATH = /app/api/storage

Apache OpenDAL storage configuration, refer to https://github.com/apache/opendal

OPENDAL_SCHEME=fs
OPENDAL_FS_ROOT=storage

S3 Storage configuration

S3_USE_AWS_MANAGED_IAM=false
S3_ENDPOINT=https://your-bucket-name.storage.s3.cloudflare.com
S3_BUCKET_NAME=your-bucket-name
S3_ACCESS_KEY=your-access-key
S3_SECRET_KEY=your-secret-key
S3_REGION=your-region

@bin-bin-6 commented on GitHub (Feb 18, 2025): > [@bin-bin-6](https://github.com/bin-bin-6) Hello! I'm here to help you with any bugs, questions, or contribution inquiries. Let's work together to resolve your issue. > > The error you're encountering, `opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified`, suggests that the `root` parameter is missing in your OpenDAL configuration. This is a common issue when the necessary environment variables for OpenDAL are not correctly set. > > To resolve this, ensure that your environment variables include the `OPENDAL_SCHEME` and any other required parameters like `root` if you're using a local file system. These configurations are crucial for the proper initialization of the OpenDAL storage [[1]](https://github.com/langgenius/dify/issues/13001). > > Additionally, you might want to check if there are any similar issues or discussions that could provide more context or solutions. For instance, there is a related discussion about Docker containers restarting after an upgrade, which might offer insights into configuration issues [[2]](https://github.com/langgenius/dify/discussions/12312). > > _To continue talking to [Dosu](https://dosu.dev), mention [@dosu](https://github.com/dosu)._ > > Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=other) i had set in /api/.env STORAGE_TYPE = local STORAGE_LOCAL_PATH = /app/api/storage # Apache OpenDAL storage configuration, refer to https://github.com/apache/opendal OPENDAL_SCHEME=fs OPENDAL_FS_ROOT=storage # S3 Storage configuration S3_USE_AWS_MANAGED_IAM=false S3_ENDPOINT=https://your-bucket-name.storage.s3.cloudflare.com S3_BUCKET_NAME=your-bucket-name S3_ACCESS_KEY=your-access-key S3_SECRET_KEY=your-secret-key S3_REGION=your-region
Author
Owner

@bin-bin-6 commented on GitHub (Feb 18, 2025):

@bin-bin-6 Hello! I'm here to help you with any bugs, questions, or contribution inquiries. Let's work together to resolve your issue.

The error you're encountering, opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified, suggests that the root parameter is missing in your OpenDAL configuration. This is a common issue when the necessary environment variables for OpenDAL are not correctly set.

To resolve this, ensure that your environment variables include the OPENDAL_SCHEME and any other required parameters like root if you're using a local file system. These configurations are crucial for the proper initialization of the OpenDAL storage [1].

Additionally, you might want to check if there are any similar issues or discussions that could provide more context or solutions. For instance, there is a related discussion about Docker containers restarting after an upgrade, which might offer insights into configuration issues [2].

To continue talking to Dosu, mention @dosu.

Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

does not work

@bin-bin-6 commented on GitHub (Feb 18, 2025): > [@bin-bin-6](https://github.com/bin-bin-6) Hello! I'm here to help you with any bugs, questions, or contribution inquiries. Let's work together to resolve your issue. > > The error you're encountering, `opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified`, suggests that the `root` parameter is missing in your OpenDAL configuration. This is a common issue when the necessary environment variables for OpenDAL are not correctly set. > > To resolve this, ensure that your environment variables include the `OPENDAL_SCHEME` and any other required parameters like `root` if you're using a local file system. These configurations are crucial for the proper initialization of the OpenDAL storage [[1]](https://github.com/langgenius/dify/issues/13001). > > Additionally, you might want to check if there are any similar issues or discussions that could provide more context or solutions. For instance, there is a related discussion about Docker containers restarting after an upgrade, which might offer insights into configuration issues [[2]](https://github.com/langgenius/dify/discussions/12312). > > _To continue talking to [Dosu](https://dosu.dev), mention [@dosu](https://github.com/dosu)._ > > Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=other) does not work
Author
Owner

@liaolian9948 commented on GitHub (Feb 18, 2025):

@bin-bin-6 Hello! I'm here to help you with any bugs, questions, or contribution inquiries. Let's work together to resolve your issue.
The error you're encountering, opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified, suggests that the root parameter is missing in your OpenDAL configuration. This is a common issue when the necessary environment variables for OpenDAL are not correctly set.
To resolve this, ensure that your environment variables include the OPENDAL_SCHEME and any other required parameters like root if you're using a local file system. These configurations are crucial for the proper initialization of the OpenDAL storage [1].
Additionally, you might want to check if there are any similar issues or discussions that could provide more context or solutions. For instance, there is a related discussion about Docker containers restarting after an upgrade, which might offer insights into configuration issues [2].
To continue talking to Dosu, mention @dosu.
Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Bug Report | Other

i had set in /api/.env

STORAGE_TYPE = local STORAGE_LOCAL_PATH = /app/api/storage

Apache OpenDAL storage configuration, refer to https://github.com/apache/opendal

OPENDAL_SCHEME=fs OPENDAL_FS_ROOT=storage

S3 Storage configuration

S3_USE_AWS_MANAGED_IAM=false S3_ENDPOINT=https://your-bucket-name.storage.s3.cloudflare.com S3_BUCKET_NAME=your-bucket-name S3_ACCESS_KEY=your-access-key S3_SECRET_KEY=your-secret-key S3_REGION=your-region

I also reported the same error, why should I modify the value? @dosu.

my .ENV-------------

STORAGE_TYPE=opendal

Apache OpenDAL Configuration

The configuration for OpenDAL consists of the following format: OPENDAL_<SCHEME_NAME>_<CONFIG_NAME>.

You can find all the service configurations (CONFIG_NAME) in the repository at: https://github.com/apache/opendal/tree/main/core/src/services.

Dify will scan configurations starting with OPENDAL_<SCHEME_NAME> and automatically apply them.

The scheme name for the OpenDAL storage.

OPENDAL_SCHEME=fs

Configurations for OpenDAL Local File System.

OPENDAL_FS_ROOT=storage

@liaolian9948 commented on GitHub (Feb 18, 2025): > > [@bin-bin-6](https://github.com/bin-bin-6) Hello! I'm here to help you with any bugs, questions, or contribution inquiries. Let's work together to resolve your issue. > > The error you're encountering, `opendal.ConfigInvalidError: ConfigInvalid (permanent) at => root is not specified`, suggests that the `root` parameter is missing in your OpenDAL configuration. This is a common issue when the necessary environment variables for OpenDAL are not correctly set. > > To resolve this, ensure that your environment variables include the `OPENDAL_SCHEME` and any other required parameters like `root` if you're using a local file system. These configurations are crucial for the proper initialization of the OpenDAL storage [[1]](https://github.com/langgenius/dify/issues/13001). > > Additionally, you might want to check if there are any similar issues or discussions that could provide more context or solutions. For instance, there is a related discussion about Docker containers restarting after an upgrade, which might offer insights into configuration issues [[2]](https://github.com/langgenius/dify/discussions/12312). > > _To continue talking to [Dosu](https://dosu.dev), mention [@dosu](https://github.com/dosu)._ > > Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/3eeba44d-992c-401f-8396-6e90740f1830?feedback_type=other) > > i had set in /api/.env > > STORAGE_TYPE = local STORAGE_LOCAL_PATH = /app/api/storage > > # Apache OpenDAL storage configuration, refer to https://github.com/apache/opendal > OPENDAL_SCHEME=fs OPENDAL_FS_ROOT=storage > > # S3 Storage configuration > S3_USE_AWS_MANAGED_IAM=false S3_ENDPOINT=https://your-bucket-name.storage.s3.cloudflare.com S3_BUCKET_NAME=your-bucket-name S3_ACCESS_KEY=your-access-key S3_SECRET_KEY=your-secret-key S3_REGION=your-region I also reported the same error, why should I modify the value? @dosu. my .ENV------------- STORAGE_TYPE=opendal # Apache OpenDAL Configuration # The configuration for OpenDAL consists of the following format: OPENDAL_<SCHEME_NAME>_<CONFIG_NAME>. # You can find all the service configurations (CONFIG_NAME) in the repository at: https://github.com/apache/opendal/tree/main/core/src/services. # Dify will scan configurations starting with OPENDAL_<SCHEME_NAME> and automatically apply them. # The scheme name for the OpenDAL storage. OPENDAL_SCHEME=fs # Configurations for OpenDAL Local File System. OPENDAL_FS_ROOT=storage
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8387