dify - 💡(How to fix) Fix internal server error [7 comments, 2 participants]

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…
GitHub stats
langgenius/dify#35259Fetched 2026-04-16 07:06:48
View on GitHub
Comments
7
Participants
2
Timeline
10
Reactions
1
Author
Participants
Timeline (top)
commented ×7labeled ×1mentioned ×1subscribed ×1

Error Message

no error 2026-04-15 09:12:32.316 ERROR [Dummy-52] [app.py:875] 5c8a746fe21a56d9a3af74b91f47cfe8 - Exception on /console/api/workspaces/current/plugin/tasks [GET] Traceback (most recent call last): self._handle_plugin_daemon_error(error.error_type, error.message) core.plugin.impl.exc.PluginDaemonInternalServerError: req_id: 6963d3df2d PluginDaemonInternalServerError: ERROR: relation "install_tasks" does not exist (SQLSTATE 42P01)

Fix Action

Fix / Workaround

2026-04-15 09:12:32.313 INFO [Dummy-52] [_client.py:1025] 5c8a746fe21a56d9a3af74b91f47cfe8 - HTTP Request: GET http://plugin_daemon:5002/plugin/681f824d-263b-405c-a43c-a851b2a9228e/management/install/tasks?page=1&page_size=100 "HTTP/1.1 200 OK" 2026-04-15 09:12:32.316 ERROR [Dummy-52] [app.py:875] 5c8a746fe21a56d9a3af74b91f47cfe8 - Exception on /console/api/workspaces/current/plugin/tasks [GET] Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper resp = resource(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/resource.py", line 41, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 227, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/libs/login.py", line 97, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 48, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/workspace/init.py", line 38, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/workspace/plugin.py", line 472, in get return jsonable_encoder({"tasks": PluginService.fetch_install_tasks(tenant_id, args.page, args.page_size)}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/services/plugin/plugin_service.py", line 243, in fetch_install_tasks return manager.fetch_plugin_installation_tasks(tenant_id, page, page_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/plugin/impl/plugin.py", line 145, in fetch_plugin_installation_tasks return self._request_with_plugin_daemon_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/plugin/impl/base.py", line 264, in _request_with_plugin_daemon_response self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/impl/base.py", line 349, in _handle_plugin_daemon_error raise PluginDaemonInternalServerError(description=message) core.plugin.impl.exc.PluginDaemonInternalServerError: req_id: 6963d3df2d PluginDaemonInternalServerError: ERROR: relation "install_tasks" does not exist (SQLSTATE 42P01)

RAW_BUFFERClick to expand / collapse

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • 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, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.13.4

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

After I deleted the volume directory under the docker directory, the following problem occurred

✔️ Expected Behavior

no error

❌ Actual Behavior

2026-04-15 09:12:32.313 INFO [Dummy-52] [_client.py:1025] 5c8a746fe21a56d9a3af74b91f47cfe8 - HTTP Request: GET http://plugin_daemon:5002/plugin/681f824d-263b-405c-a43c-a851b2a9228e/management/install/tasks?page=1&page_size=100 "HTTP/1.1 200 OK" 2026-04-15 09:12:32.316 ERROR [Dummy-52] [app.py:875] 5c8a746fe21a56d9a3af74b91f47cfe8 - Exception on /console/api/workspaces/current/plugin/tasks [GET] Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request rv = self.dispatch_request() ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/api.py", line 404, in wrapper resp = resource(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/flask_restx/resource.py", line 41, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 227, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/libs/login.py", line 97, in decorated_view return current_app.ensure_sync(func)(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 48, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/workspace/init.py", line 38, in decorated return view(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/workspace/plugin.py", line 472, in get return jsonable_encoder({"tasks": PluginService.fetch_install_tasks(tenant_id, args.page, args.page_size)}) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/services/plugin/plugin_service.py", line 243, in fetch_install_tasks return manager.fetch_plugin_installation_tasks(tenant_id, page, page_size) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/plugin/impl/plugin.py", line 145, in fetch_plugin_installation_tasks return self._request_with_plugin_daemon_response( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/core/plugin/impl/base.py", line 264, in _request_with_plugin_daemon_response self._handle_plugin_daemon_error(error.error_type, error.message) File "/app/api/core/plugin/impl/base.py", line 349, in _handle_plugin_daemon_error raise PluginDaemonInternalServerError(description=message) core.plugin.impl.exc.PluginDaemonInternalServerError: req_id: 6963d3df2d PluginDaemonInternalServerError: ERROR: relation "install_tasks" does not exist (SQLSTATE 42P01)

extent analysis

TL;DR

The issue is likely caused by a missing database table "install_tasks" after deleting the volume directory under the docker directory, and can be fixed by reinitializing the database or restoring the deleted volume.

Guidance

  • The error message indicates a database relation "install_tasks" does not exist, suggesting a database schema issue.
  • The problem occurred after deleting the volume directory, which may have removed necessary database files or schema information.
  • To mitigate this, try restoring the deleted volume or reinitializing the database to recreate the necessary schema.
  • Verify the fix by checking the database schema and ensuring the "install_tasks" table exists.

Example

No code example is provided as the issue is related to database schema and volume management.

Notes

The exact steps to reinitialize the database or restore the volume are not provided, as they may vary depending on the specific Docker and database configurations used in the project.

Recommendation

Apply workaround: Restore the deleted volume or reinitialize the database to recreate the necessary schema, as the issue is likely caused by a missing database table.

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

dify - 💡(How to fix) Fix internal server error [7 comments, 2 participants]