mirror of
https://github.com/langgenius/dify-docs.git
synced 2026-07-22 04:15:24 -04:00
本地Docker compose部署报FileNotFoundError: [Errno 2] No such file or directory: '' 无法正常启动 #39
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @xiaomamyx on GitHub (May 21, 2025).
问题描述
本地部署报FileNotFoundError: [Errno 2] No such file or directory: '' 无法正常启动
docker-api-1 服务一直处于重启状态
Traceback (most recent call last):
2025-05-21 17:28:53 File "/app/api/.venv/bin/flask", line 10, in
2025-05-21 17:28:53 sys.exit(main())
2025-05-21 17:28:53 ^^^^^^
2025-05-21 17:28:53 File "/app/api/.venv/lib/python3.12/site-packages/flask/cli.py", line 1129, in main
2025-05-21 17:28:53 cli.main()
2025-05-21 17:28:53 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1363, in main
2025-05-21 17:28:53 rv = self.invoke(ctx)
2025-05-21 17:28:53 ^^^^^^^^^^^^^^^^
2025-05-21 17:28:53 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1824, in invoke
2025-05-21 17:28:53 cmd_name, cmd, args = self.resolve_command(ctx, args)
2025-05-21 17:28:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-05-21 17:28:53 File "/app/api/.venv/lib/python3.12/site-packages/click/core.py", line 1871, in resolve_command
2025-05-21 17:28:53 cmd = self.get_command(ctx, cmd_name)
2025-05-21 17:28:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-05-21 17:28:53 File "/app/api/.venv/lib/python3.12/site-packages/flask/cli.py", line 631, in get_command
2025-05-21 17:28:53 app = info.load_app()
2025-05-21 17:28:53 ^^^^^^^^^^^^^^^
2025-05-21 17:28:53 File "/app/api/.venv/lib/python3.12/site-packages/flask/cli.py", line 349, in load_app
2025-05-21 17:28:53 app = locate_app(import_name, name)
2025-05-21 17:28:53 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
2025-05-21 17:28:53 File "/app/api/.venv/lib/python3.12/site-packages/flask/cli.py", line 245, in locate_app
2025-05-21 17:28:53 import(module_name)
2025-05-21 17:28:53 File "/app/api/app.py", line 37, in
2025-05-21 17:28:53 app = create_app()
2025-05-21 17:28:53 ^^^^^^^^^^^^
2025-05-21 17:28:53 File "/app/api/app_factory.py", line 32, in create_app
2025-05-21 17:28:53 initialize_extensions(app)
2025-05-21 17:28:53 File "/app/api/app_factory.py", line 96, in initialize_extensions
2025-05-21 17:28:53 ext.init_app(app)
2025-05-21 17:28:53 File "/app/api/extensions/ext_logging.py", line 18, in init_app
2025-05-21 17:28:53 os.makedirs(log_dir, exist_ok=True)
2025-05-21 17:28:53 File "", line 225, in makedirs
2025-05-21 17:28:53 FileNotFoundError: [Errno 2] No such file or directory: ''
页面链接
https://github.com/langgenius/dify-docs-mintlify/blob/main/plugin-dev-zh/0331-faq.mdx
建议修改
建议修复此问题
@AllenWriter commented on GitHub (May 22, 2025):
Hi, this is the documentation repo, not a technical support channel.
I’m afraid unable to address the issue you mentioned here.
You can submit your request or issue to the main Dify GitHub repository.