Unable to configure the API #8838

Closed
opened 2026-02-21 18:27:59 -05:00 by yindo · 59 comments
Owner

Originally created by @188zhuyaqi on GitHub (Mar 2, 2025).

Originally assigned to: @laipz8200, @Yeuoly on GitHub.

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

1.0.0

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

My system is Linux and I installed Dify version 1.0.0. All the processes went smoothly until the time came to configure the model API. At that moment, the system got stuck at the save prompt window and remained stuck without reporting any error messages. It just kept hanging until the browser console output a request timeout message. Apart from this, there were no other information.

Uncaught (in promise) TimeoutError: Request timed out: POST http://150.158.xx.xxx:8080/console/api/workspaces/current/model-providers/langgenius/tongyi/tongyi
    at 3451-f3b01e497296e6f6.js:1:4366

(I have processed the IP here. If you need to test it, I can provide it to you.)

Image

Image

I myself have eliminated many issues. For instance, I tried two different browsers, including Edge. I uninstalled and reinstalled it five times but still encountered the same problem. Later, I downloaded version 0.15.3 and found that it worked successfully just once. Although it took a while to save the page, it was still successful. Then I switched back to version 1.0.0 (here, the version I switched to is not upgrading from 0.15.3. I deployed two versions). After switching back to version 1.0.0, I configured it again. This time, it was surprisingly successful. Just as I was happy, I found that when configuring other APIs, the same problem occurred again. I really don't understand why this is happening. I can only ask you for help helplessly. This issue pertains to all API configurations being like this, not just a single one.

Image
Image

✔️ Expected Behavior

No response

Actual Behavior

Uncaught (in promise) TimeoutError: Request timed out: POST http://150.158.xx.xxx:8080/console/api/workspaces/current/model-providers/langgenius/tongyi/tongyi at 3451-f3b01e497296e6f6.js:1:4366

Originally created by @188zhuyaqi on GitHub (Mar 2, 2025). Originally assigned to: @laipz8200, @Yeuoly on GitHub. ### 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 1.0.0 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce My system is Linux and I installed Dify version 1.0.0. All the processes went smoothly until the time came to configure the model API. At that moment, the system got stuck at the save prompt window and remained stuck without reporting any error messages. It just kept hanging until the browser console output a request timeout message. Apart from this, there were no other information. ``` Uncaught (in promise) TimeoutError: Request timed out: POST http://150.158.xx.xxx:8080/console/api/workspaces/current/model-providers/langgenius/tongyi/tongyi at 3451-f3b01e497296e6f6.js:1:4366 ``` _(I have processed the IP here. If you need to test it, I can provide it to you.)_ ![Image](https://github.com/user-attachments/assets/6736ab8f-5bdc-4b8f-a522-2bd7a6a7b469) ![Image](https://github.com/user-attachments/assets/1c98eddb-0c3f-49dc-b964-791be3d9f944) I myself have eliminated many issues. For instance, I tried two different browsers, including Edge. I uninstalled and reinstalled it five times but still encountered the same problem. Later, I downloaded version 0.15.3 and found that it worked successfully just once. Although it took a while to save the page, it was still successful. Then I switched back to version 1.0.0 (here, the version I switched to is not upgrading from 0.15.3. I deployed two versions). After switching back to version 1.0.0, I configured it again. This time, it was surprisingly successful. Just as I was happy, I found that when configuring other APIs, the same problem occurred again. I really don't understand why this is happening. I can only ask you for help helplessly. This issue pertains to all API configurations being like this, not just a single one. ![Image](https://github.com/user-attachments/assets/649aa741-9fb2-4f19-8852-668102874c7c) ![Image](https://github.com/user-attachments/assets/5fc6ff54-1f32-4f10-9ac0-ce17b73c500b) ### ✔️ Expected Behavior _No response_ ### ❌ Actual Behavior `Uncaught (in promise) TimeoutError: Request timed out: POST http://150.158.xx.xxx:8080/console/api/workspaces/current/model-providers/langgenius/tongyi/tongyi at 3451-f3b01e497296e6f6.js:1:4366`
yindo added the 🐞 bug label 2026-02-21 18:27:59 -05:00
yindo closed this issue 2026-02-21 18:27:59 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Mar 2, 2025):

Hello @188zhuyaqi! I'm here to assist you with any bugs, questions, or contributions you have regarding Dify. Let's work together to solve the issue you're experiencing.

I found a similar unsolved discussion regarding a "request timed out" issue when saving the model in Dify [1]. Additionally, there is an open issue titled "add model failed" that might be related [2].

To address the "TimeoutError" when configuring the model API in Dify version 1.0.0 on a self-hosted Linux system, you can try the following steps:

  1. Restart Docker Containers: Use the following commands to restart the Docker containers:

    docker compose stop
    docker compose up -d
    
  2. Adjust Gunicorn Timeout: Increase the GUNICORN_TIMEOUT setting to allow for longer request processing times. The default is 200 seconds, but it is recommended to set it to 360 seconds to support longer SSE connection times. You can do this by setting the environment variable in your Docker configuration:

    GUNICORN_TIMEOUT=360
    
  3. Check Network Proxy Settings: If you are in a region with restricted access to certain services like OpenAI or HuggingFace, ensure that your HTTP and HTTPS proxy settings are correctly configured. Use the internal Docker host address if the proxy is deployed on the host machine [3].

These steps should help resolve the timeout issue and improve the configuration process for the model API.

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 (Mar 2, 2025): <!-- Greeting --> Hello @188zhuyaqi! I'm here to assist you with any bugs, questions, or contributions you have regarding Dify. Let's work together to solve the issue you're experiencing. <!-- Answer --> I found a similar unsolved discussion regarding a "request timed out" issue when saving the model in Dify <sup>[[1]](https://github.com/langgenius/dify/discussions/14017)</sup>. Additionally, there is an open issue titled "add model failed" that might be related <sup>[[2]](https://github.com/langgenius/dify/issues/1958)</sup>. To address the "TimeoutError" when configuring the model API in Dify version 1.0.0 on a self-hosted Linux system, you can try the following steps: 1. **Restart Docker Containers**: Use the following commands to restart the Docker containers: ```bash docker compose stop docker compose up -d ``` 2. **Adjust Gunicorn Timeout**: Increase the `GUNICORN_TIMEOUT` setting to allow for longer request processing times. The default is 200 seconds, but it is recommended to set it to 360 seconds to support longer SSE connection times. You can do this by setting the environment variable in your Docker configuration: ```bash GUNICORN_TIMEOUT=360 ``` 3. **Check Network Proxy Settings**: If you are in a region with restricted access to certain services like OpenAI or HuggingFace, ensure that your HTTP and HTTPS proxy settings are correctly configured. Use the internal Docker host address if the proxy is deployed on the host machine <sup>[[3]](https://github.com/langgenius/dify/issues/14603)</sup>. These steps should help resolve the timeout issue and improve the configuration process for the model API. <!-- 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/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=other)</sup>
Author
Owner

@188zhuyaqi commented on GitHub (Mar 2, 2025):

Docker has been rebooted and reinstalled no less than 5 times
My GUNICORN_TIMEOUT parameter is already 360 but the problem still occurs,
The model services I have configured do not require the use of proxies

@188zhuyaqi commented on GitHub (Mar 2, 2025): Docker has been rebooted and reinstalled no less than 5 times My GUNICORN_TIMEOUT parameter is already 360 but the problem still occurs, The model services I have configured do not require the use of proxies
Author
Owner

@lisontowind commented on GitHub (Mar 2, 2025):

me too

@lisontowind commented on GitHub (Mar 2, 2025): me too
Author
Owner

@rosenjiang commented on GitHub (Mar 2, 2025):

Hello @188zhuyaqi! I'm here to assist you with any bugs, questions, or contributions you have regarding Dify. Let's work together to solve the issue you're experiencing.

I found a similar unsolved discussion regarding a "request timed out" issue when saving the model in Dify [1]. Additionally, there is an open issue titled "add model failed" that might be related [2].

To address the "TimeoutError" when configuring the model API in Dify version 1.0.0 on a self-hosted Linux system, you can try the following steps:

  1. Restart Docker Containers: Use the following commands to restart the Docker containers:
    docker compose stop
    docker compose up -d
  2. Adjust Gunicorn Timeout: Increase the GUNICORN_TIMEOUT setting to allow for longer request processing times. The default is 200 seconds, but it is recommended to set it to 360 seconds to support longer SSE connection times. You can do this by setting the environment variable in your Docker configuration:
    GUNICORN_TIMEOUT=360
  3. Check Network Proxy Settings: If you are in a region with restricted access to certain services like OpenAI or HuggingFace, ensure that your HTTP and HTTPS proxy settings are correctly configured. Use the internal Docker host address if the proxy is deployed on the host machine [3].

These steps should help resolve the timeout issue and improve the configuration process for the model API.

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

@dosu After "Restart Docker Containers", encounter INTERNAL SERVER ERROR, can't save API Key setting.
Edge browser console log: POST http://localhost/console/api/workspaces/current/model-providers/langgenius/siliconflow/siliconflow 500 (INTERNAL SERVER ERROR)

@rosenjiang commented on GitHub (Mar 2, 2025): > Hello [@188zhuyaqi](https://github.com/188zhuyaqi)! I'm here to assist you with any bugs, questions, or contributions you have regarding Dify. Let's work together to solve the issue you're experiencing. > > I found a similar unsolved discussion regarding a "request timed out" issue when saving the model in Dify [[1]](https://github.com/langgenius/dify/discussions/14017). Additionally, there is an open issue titled "add model failed" that might be related [[2]](https://github.com/langgenius/dify/issues/1958). > > To address the "TimeoutError" when configuring the model API in Dify version 1.0.0 on a self-hosted Linux system, you can try the following steps: > > 1. **Restart Docker Containers**: Use the following commands to restart the Docker containers: > docker compose stop > docker compose up -d > 2. **Adjust Gunicorn Timeout**: Increase the `GUNICORN_TIMEOUT` setting to allow for longer request processing times. The default is 200 seconds, but it is recommended to set it to 360 seconds to support longer SSE connection times. You can do this by setting the environment variable in your Docker configuration: > GUNICORN_TIMEOUT=360 > 3. **Check Network Proxy Settings**: If you are in a region with restricted access to certain services like OpenAI or HuggingFace, ensure that your HTTP and HTTPS proxy settings are correctly configured. Use the internal Docker host address if the proxy is deployed on the host machine [[3]](https://github.com/langgenius/dify/issues/14603). > > These steps should help resolve the timeout issue and improve the configuration process for the model API. > > _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/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=other) @dosu After "Restart Docker Containers", encounter INTERNAL SERVER ERROR, can't save API Key setting. Edge browser console log: POST http://localhost/console/api/workspaces/current/model-providers/langgenius/siliconflow/siliconflow 500 (INTERNAL SERVER ERROR)
Author
Owner

@JasonkayZK commented on GitHub (Mar 2, 2025):

Hello @188zhuyaqi! I'm here to assist you with any bugs, questions, or contributions you have regarding Dify. Let's work together to solve the issue you're experiencing.
I found a similar unsolved discussion regarding a "request timed out" issue when saving the model in Dify [1]. Additionally, there is an open issue titled "add model failed" that might be related [2].
To address the "TimeoutError" when configuring the model API in Dify version 1.0.0 on a self-hosted Linux system, you can try the following steps:

  1. Restart Docker Containers: Use the following commands to restart the Docker containers:
    docker compose stop
    docker compose up -d
  2. Adjust Gunicorn Timeout: Increase the GUNICORN_TIMEOUT setting to allow for longer request processing times. The default is 200 seconds, but it is recommended to set it to 360 seconds to support longer SSE connection times. You can do this by setting the environment variable in your Docker configuration:
    GUNICORN_TIMEOUT=360
  3. Check Network Proxy Settings: If you are in a region with restricted access to certain services like OpenAI or HuggingFace, ensure that your HTTP and HTTPS proxy settings are correctly configured. Use the internal Docker host address if the proxy is deployed on the host machine [3].

These steps should help resolve the timeout issue and improve the configuration process for the model API.
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

@dosu After "Restart Docker Containers", encounter INTERNAL SERVER ERROR, can't save API Key setting. Edge browser console log: POST http://localhost/console/api/workspaces/current/model-providers/langgenius/siliconflow/siliconflow 500 (INTERNAL SERVER ERROR)

I've got the same issue here, seemed that can't save the api-key in v1.0.0.

@JasonkayZK commented on GitHub (Mar 2, 2025): > > Hello [@188zhuyaqi](https://github.com/188zhuyaqi)! I'm here to assist you with any bugs, questions, or contributions you have regarding Dify. Let's work together to solve the issue you're experiencing. > > I found a similar unsolved discussion regarding a "request timed out" issue when saving the model in Dify [[1]](https://github.com/langgenius/dify/discussions/14017). Additionally, there is an open issue titled "add model failed" that might be related [[2]](https://github.com/langgenius/dify/issues/1958). > > To address the "TimeoutError" when configuring the model API in Dify version 1.0.0 on a self-hosted Linux system, you can try the following steps: > > > > 1. **Restart Docker Containers**: Use the following commands to restart the Docker containers: > > docker compose stop > > docker compose up -d > > 2. **Adjust Gunicorn Timeout**: Increase the `GUNICORN_TIMEOUT` setting to allow for longer request processing times. The default is 200 seconds, but it is recommended to set it to 360 seconds to support longer SSE connection times. You can do this by setting the environment variable in your Docker configuration: > > GUNICORN_TIMEOUT=360 > > 3. **Check Network Proxy Settings**: If you are in a region with restricted access to certain services like OpenAI or HuggingFace, ensure that your HTTP and HTTPS proxy settings are correctly configured. Use the internal Docker host address if the proxy is deployed on the host machine [[3]](https://github.com/langgenius/dify/issues/14603). > > > > These steps should help resolve the timeout issue and improve the configuration process for the model API. > > _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/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4ebade98-9a94-4be0-8a21-57443cb1ce6c?feedback_type=other) > > [@dosu](https://github.com/dosu) After "Restart Docker Containers", encounter INTERNAL SERVER ERROR, can't save API Key setting. Edge browser console log: POST http://localhost/console/api/workspaces/current/model-providers/langgenius/siliconflow/siliconflow 500 (INTERNAL SERVER ERROR) I've got the same issue here, seemed that can't save the api-key in v1.0.0.
Author
Owner

@dosubot[bot] commented on GitHub (Mar 2, 2025):

To resolve the "INTERNAL SERVER ERROR" when saving the API Key setting in Dify, try restarting your Dify instance. This has been confirmed to resolve similar issues. Additionally, check the logs of the 'api' container for more insights into the error. You can do this using the command:

docker-compose logs api

This might provide more information on the cause of the error and help in diagnosing the issue further [1][2].

This is a tough nut to crack, could really use your help on this, @takatost.

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 (Mar 2, 2025): <!-- Answer --> To resolve the "INTERNAL SERVER ERROR" when saving the API Key setting in Dify, try restarting your Dify instance. This has been confirmed to resolve similar issues. Additionally, check the logs of the 'api' container for more insights into the error. You can do this using the command: ```bash docker-compose logs api ``` This might provide more information on the cause of the error and help in diagnosing the issue further <sup>[[1]](https://github.com/langgenius/dify/issues/14599)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/14504)</sup>. This is a tough nut to crack, could really use your help on this, @takatost. <!-- 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/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=other)</sup>
Author
Owner

@rosenjiang commented on GitHub (Mar 2, 2025):

To resolve the "INTERNAL SERVER ERROR" when saving the API Key setting in Dify, try restarting your Dify instance. This has been confirmed to resolve similar issues. Additionally, check the logs of the 'api' container for more insights into the error. You can do this using the command:

docker-compose logs api
This might provide more information on the cause of the error and help in diagnosing the issue further [1][2].

This is a tough nut to crack, could really use your help on this, @takatost.

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

pi-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
api-1 | rv = self.dispatch_request()
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
api-1 | resp = resource(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
api-1 | resp = meth(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated
api-1 | return view(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/libs/login.py", line 94, in decorated_view
api-1 | return current_app.ensure_sync(func)(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated
api-1 | return view(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/workspace/model_providers.py", line 102, in post
api-1 | model_provider_service.save_provider_credentials(
api-1 | File "/app/api/services/model_provider_service.py", line 145, in save_provider_credentials
api-1 | provider_configuration.add_or_update_custom_credentials(credentials)
api-1 | File "/app/api/core/entities/provider_configuration.py", line 248, in add_or_update_custom_credentials
api-1 | provider_record, credentials = self.custom_credentials_validate(credentials)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/core/entities/provider_configuration.py", line 231, in custom_credentials_validate
api-1 | credentials = model_provider_factory.provider_credentials_validate(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 155, in provider_credentials_validate
api-1 | self.plugin_model_manager.validate_provider_credentials(
api-1 | File "/app/api/core/plugin/manager/model.py", line 97, in validate_provider_credentials
api-1 | for resp in response:
api-1 | ^^^^^^^^
api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
api-1 | self._handle_plugin_daemon_error(error.error_type, error.message)
api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in handle_plugin_daemon_error
api-1 | raise PluginDaemonInternalServerError(description=message)
api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout
api-1 | 2025-03-02 08:25:00.617 ERROR [Dummy-18] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/jina/jina [POST]
api-1 | Traceback (most recent call last):
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
api-1 | rv = self.dispatch_request()
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
api-1 | resp = resource(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init_
.py", line 604, in dispatch_request
api-1 | resp = meth(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated
api-1 | return view(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/libs/login.py", line 94, in decorated_view
api-1 | return current_app.ensure_sync(func)(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated
api-1 | return view(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/workspace/model_providers.py", line 102, in post
api-1 | model_provider_service.save_provider_credentials(
api-1 | File "/app/api/services/model_provider_service.py", line 145, in save_provider_credentials
api-1 | provider_configuration.add_or_update_custom_credentials(credentials)
api-1 | File "/app/api/core/entities/provider_configuration.py", line 248, in add_or_update_custom_credentials
api-1 | provider_record, credentials = self.custom_credentials_validate(credentials)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/core/entities/provider_configuration.py", line 231, in custom_credentials_validate
api-1 | credentials = model_provider_factory.provider_credentials_validate(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 155, in provider_credentials_validate
api-1 | self.plugin_model_manager.validate_provider_credentials(
api-1 | File "/app/api/core/plugin/manager/model.py", line 97, in validate_provider_credentials
api-1 | for resp in response:
api-1 | ^^^^^^^^
api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
api-1 | self._handle_plugin_daemon_error(error.error_type, error.message)
api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in handle_plugin_daemon_error
api-1 | raise PluginDaemonInternalServerError(description=message)
api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout
api-1 | 2025-03-02 09:36:54.623 ERROR [Dummy-19] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/siliconflow/siliconflow [POST]
api-1 | Traceback (most recent call last):
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
api-1 | rv = self.dispatch_request()
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return]
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
api-1 | resp = resource(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return]
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init_
.py", line 604, in dispatch_request
api-1 | resp = meth(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated
api-1 | return view(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/libs/login.py", line 94, in decorated_view
api-1 | return current_app.ensure_sync(func)(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated
api-1 | return view(*args, **kwargs)
api-1 | ^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/controllers/console/workspace/model_providers.py", line 102, in post
api-1 | model_provider_service.save_provider_credentials(
api-1 | File "/app/api/services/model_provider_service.py", line 145, in save_provider_credentials
api-1 | provider_configuration.add_or_update_custom_credentials(credentials)
api-1 | File "/app/api/core/entities/provider_configuration.py", line 248, in add_or_update_custom_credentials
api-1 | provider_record, credentials = self.custom_credentials_validate(credentials)
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/core/entities/provider_configuration.py", line 231, in custom_credentials_validate
api-1 | credentials = model_provider_factory.provider_credentials_validate(
api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 155, in provider_credentials_validate
api-1 | self.plugin_model_manager.validate_provider_credentials(
api-1 | File "/app/api/core/plugin/manager/model.py", line 97, in validate_provider_credentials
api-1 | for resp in response:
api-1 | ^^^^^^^^
api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
api-1 | self._handle_plugin_daemon_error(error.error_type, error.message)
api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error
api-1 | raise PluginDaemonInternalServerError(description=message)
api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout

so, what's the next? @dosu.

@rosenjiang commented on GitHub (Mar 2, 2025): > To resolve the "INTERNAL SERVER ERROR" when saving the API Key setting in Dify, try restarting your Dify instance. This has been confirmed to resolve similar issues. Additionally, check the logs of the 'api' container for more insights into the error. You can do this using the command: > > docker-compose logs api > This might provide more information on the cause of the error and help in diagnosing the issue further [[1]](https://github.com/langgenius/dify/issues/14599)[[2]](https://github.com/langgenius/dify/issues/14504). > > This is a tough nut to crack, could really use your help on this, [@takatost](https://github.com/takatost). > > _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/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4bb99cfb-ea96-46b4-98a4-633144243b7c?feedback_type=other) pi-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request api-1 | rv = self.dispatch_request() api-1 | ^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper api-1 | resp = resource(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request api-1 | resp = meth(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/libs/login.py", line 94, in decorated_view api-1 | return current_app.ensure_sync(func)(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/workspace/model_providers.py", line 102, in post api-1 | model_provider_service.save_provider_credentials( api-1 | File "/app/api/services/model_provider_service.py", line 145, in save_provider_credentials api-1 | provider_configuration.add_or_update_custom_credentials(credentials) api-1 | File "/app/api/core/entities/provider_configuration.py", line 248, in add_or_update_custom_credentials api-1 | provider_record, credentials = self.custom_credentials_validate(credentials) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/entities/provider_configuration.py", line 231, in custom_credentials_validate api-1 | credentials = model_provider_factory.provider_credentials_validate( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 155, in provider_credentials_validate api-1 | self.plugin_model_manager.validate_provider_credentials( api-1 | File "/app/api/core/plugin/manager/model.py", line 97, in validate_provider_credentials api-1 | for resp in response: api-1 | ^^^^^^^^ api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error api-1 | raise PluginDaemonInternalServerError(description=message) api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout api-1 | 2025-03-02 08:25:00.617 ERROR [Dummy-18] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/jina/jina [POST] api-1 | Traceback (most recent call last): api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request api-1 | rv = self.dispatch_request() api-1 | ^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper api-1 | resp = resource(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request api-1 | resp = meth(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/libs/login.py", line 94, in decorated_view api-1 | return current_app.ensure_sync(func)(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/workspace/model_providers.py", line 102, in post api-1 | model_provider_service.save_provider_credentials( api-1 | File "/app/api/services/model_provider_service.py", line 145, in save_provider_credentials api-1 | provider_configuration.add_or_update_custom_credentials(credentials) api-1 | File "/app/api/core/entities/provider_configuration.py", line 248, in add_or_update_custom_credentials api-1 | provider_record, credentials = self.custom_credentials_validate(credentials) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/entities/provider_configuration.py", line 231, in custom_credentials_validate api-1 | credentials = model_provider_factory.provider_credentials_validate( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 155, in provider_credentials_validate api-1 | self.plugin_model_manager.validate_provider_credentials( api-1 | File "/app/api/core/plugin/manager/model.py", line 97, in validate_provider_credentials api-1 | for resp in response: api-1 | ^^^^^^^^ api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error api-1 | raise PluginDaemonInternalServerError(description=message) api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout api-1 | 2025-03-02 09:36:54.623 ERROR [Dummy-19] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/siliconflow/siliconflow [POST] api-1 | Traceback (most recent call last): api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request api-1 | rv = self.dispatch_request() api-1 | ^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper api-1 | resp = resource(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request api-1 | resp = meth(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 147, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/libs/login.py", line 94, in decorated_view api-1 | return current_app.ensure_sync(func)(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 27, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/workspace/model_providers.py", line 102, in post api-1 | model_provider_service.save_provider_credentials( api-1 | File "/app/api/services/model_provider_service.py", line 145, in save_provider_credentials api-1 | provider_configuration.add_or_update_custom_credentials(credentials) api-1 | File "/app/api/core/entities/provider_configuration.py", line 248, in add_or_update_custom_credentials api-1 | provider_record, credentials = self.custom_credentials_validate(credentials) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/entities/provider_configuration.py", line 231, in custom_credentials_validate api-1 | credentials = model_provider_factory.provider_credentials_validate( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 155, in provider_credentials_validate api-1 | self.plugin_model_manager.validate_provider_credentials( api-1 | File "/app/api/core/plugin/manager/model.py", line 97, in validate_provider_credentials api-1 | for resp in response: api-1 | ^^^^^^^^ api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error api-1 | raise PluginDaemonInternalServerError(description=message) api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout so, what's the next? @dosu.
Author
Owner

@skylark36 commented on GitHub (Mar 2, 2025):

same problem

@skylark36 commented on GitHub (Mar 2, 2025): same problem
Author
Owner

@1006928117 commented on GitHub (Mar 2, 2025):

俺也一样。。。接入模型的时候一直报错 ,要么是:
{
"code": "bad_request",
"message": "The browser (or proxy) sent a request that this server could not understand.",
"status": 400
}

要么是:
Request URL:
http://localhost/console/api/workspaces/current/model-providers/langgenius/wenxin/wenxin
Request Method:
POST
Status Code:
500 INTERNAL SERVER ERROR

@1006928117 commented on GitHub (Mar 2, 2025): 俺也一样。。。接入模型的时候一直报错 ,要么是: { "code": "bad_request", "message": "The browser (or proxy) sent a request that this server could not understand.", "status": 400 } 要么是: Request URL: http://localhost/console/api/workspaces/current/model-providers/langgenius/wenxin/wenxin Request Method: POST Status Code: 500 INTERNAL SERVER ERROR
Author
Owner

@abc77654 commented on GitHub (Mar 2, 2025):

我也一样,之前0.15版本很正常,我重新安装了1.0版本后,添加api始终出错,卡死或者提示

Image

@abc77654 commented on GitHub (Mar 2, 2025): 我也一样,之前0.15版本很正常,我重新安装了1.0版本后,添加api始终出错,卡死或者提示 ![Image](https://github.com/user-attachments/assets/8ca91775-4b75-44cb-bbd8-3991d1bab9c1)
Author
Owner

@zbaos260 commented on GitHub (Mar 2, 2025):

尝试了几种:
deepseek的api可以正常输入保存:
gemini输入后无反应,不能保存;
火山方舟、硅基流动、通义千问、智谱均报错,internal sever error

@zbaos260 commented on GitHub (Mar 2, 2025): 尝试了几种: deepseek的api可以正常输入保存: gemini输入后无反应,不能保存; 火山方舟、硅基流动、通义千问、智谱均报错,internal sever error
Author
Owner

@abc77654 commented on GitHub (Mar 2, 2025):

尝试了几种: deepseek的api可以正常输入保存: gemini输入后无反应,不能保存; 火山方舟、硅基流动、通义千问、智谱均报错,internal sever error

我目前一个都无法添加,哎,等修复bug,我尝试了我关闭本地翻墙工具,都是一样的

@abc77654 commented on GitHub (Mar 2, 2025): > 尝试了几种: deepseek的api可以正常输入保存: gemini输入后无反应,不能保存; 火山方舟、硅基流动、通义千问、智谱均报错,internal sever error 我目前一个都无法添加,哎,等修复bug,我尝试了我关闭本地翻墙工具,都是一样的
Author
Owner

@kevinwang04 commented on GitHub (Mar 3, 2025):

一样的,api无法保存,求解

Image

@kevinwang04 commented on GitHub (Mar 3, 2025): 一样的,api无法保存,求解 ![Image](https://github.com/user-attachments/assets/e991cde3-fb8d-4cb9-9144-cb7a2eb7ac71)
Author
Owner
@crazywoola commented on GitHub (Mar 3, 2025): Try https://github.com/langgenius/dify/issues/14736#issuecomment-2693905382 & https://github.com/langgenius/dify/issues/14682#issuecomment-2694019566
Author
Owner

@dosubot[bot] commented on GitHub (Mar 3, 2025):

To resolve the "PluginDaemonInternalServerError: killed by timeout" error when saving the API Key setting in Dify, you should upgrade the Dify official plugins to version 0.0.6. This upgrade has been confirmed to resolve the timeout issue that occurs during credential validation. Additionally, you can add the following configuration line to your docker-compose.yaml file after line 560 to increase the Python environment initialization timeout, which may also help:

PYTHON_ENV_INIT_TIMEOUT: 320

After making these changes, restart the Docker containers with the following commands:

  1. docker compose stop
  2. docker compose up -d

These steps should help address the timeout issue you're experiencing [1][2][3].

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 (Mar 3, 2025): <!-- Answer --> To resolve the "PluginDaemonInternalServerError: killed by timeout" error when saving the API Key setting in Dify, you should upgrade the Dify official plugins to version 0.0.6. This upgrade has been confirmed to resolve the timeout issue that occurs during credential validation. Additionally, you can add the following configuration line to your `docker-compose.yaml` file after line 560 to increase the Python environment initialization timeout, which may also help: ```yaml PYTHON_ENV_INIT_TIMEOUT: 320 ``` After making these changes, restart the Docker containers with the following commands: 1. `docker compose stop` 2. `docker compose up -d` These steps should help address the timeout issue you're experiencing <sup>[[1]](https://github.com/langgenius/dify/issues/14736)</sup><sup>[[2]](https://github.com/langgenius/dify/issues/14585)</sup><sup>[[3]](https://github.com/langgenius/dify/issues/14603)</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/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=other)</sup>
Author
Owner

@lisontowind commented on GitHub (Mar 3, 2025):

Image
The Qwen API cannot save. But it's not a network issue.

@lisontowind commented on GitHub (Mar 3, 2025): ![Image](https://github.com/user-attachments/assets/4f8b879d-c73e-4ee0-8a94-d71a28f70592) The Qwen API cannot save. But it's not a network issue.
Author
Owner

@lisontowind commented on GitHub (Mar 3, 2025):

If you upgrade to version 0.05 and have already filled in the API key, this problem will occur, whereas the Tongyi plugin version 0.04 does not have this issue.

Image

@lisontowind commented on GitHub (Mar 3, 2025): If you upgrade to version 0.05 and have already filled in the API key, this problem will occur, whereas the Tongyi plugin version 0.04 does not have this issue. ![Image](https://github.com/user-attachments/assets/b2f3f365-271e-4f32-b7b2-c09b2a0d0b3e)
Author
Owner

@forachange commented on GitHub (Mar 3, 2025):

mark, 看看怎么解决

@forachange commented on GitHub (Mar 3, 2025): mark, 看看怎么解决
Author
Owner

@likang105030 commented on GitHub (Mar 4, 2025):

mark 某位知名主播说过,不会升级就别学别人升级!

@likang105030 commented on GitHub (Mar 4, 2025): mark 某位知名主播说过,不会升级就别学别人升级!
Author
Owner

@lisontowind commented on GitHub (Mar 4, 2025):

回退到Tongyi 插件0.04 版本解决

@lisontowind commented on GitHub (Mar 4, 2025): 回退到Tongyi 插件0.04 版本解决
Author
Owner

@188zhuyaqi commented on GitHub (Mar 4, 2025):

马克某位知名播主说过,不会升级就别学别人升级!

你应该根本就没有看别人说了什么就对别人进行攻击
首先你说的不会升级问题根本就不存在 整个叙述中都不存在升级这个词,完全就是无中生有,何来升级一说呢?全程都是直接安装的指定的版本,并且重装了不下5次,最最终安装了其他版本才得以解决,足以证明这是1.0.0版本的问题

@188zhuyaqi commented on GitHub (Mar 4, 2025): > 马克某位知名播主说过,不会升级就别学别人升级! 你应该根本就没有看别人说了什么就对别人进行攻击 首先你说的不会升级问题根本就不存在 整个叙述中都不存在升级这个词,完全就是无中生有,何来升级一说呢?全程都是直接安装的指定的版本,并且重装了不下5次,最最终安装了其他版本才得以解决,足以证明这是1.0.0版本的问题
Author
Owner

@zhiwenliao commented on GitHub (Mar 4, 2025):

To resolve the "PluginDaemonInternalServerError: killed by timeout" error when saving the API Key setting in Dify, you should upgrade the Dify official plugins to version 0.0.6. This upgrade has been confirmed to resolve the timeout issue that occurs during credential validation. Additionally, you can add the following configuration line to your docker-compose.yaml file after line 560 to increase the Python environment initialization timeout, which may also help:要解决在 Dify 中保存 API 密钥设置时出现的“PluginDaemonInternalServerError: killed by timeout”错误,您应该将 Dify 官方插件升级到版本 0.0.6。此升级已被证实可以解决在凭证验证期间出现的超时问题。此外,您可以在第 560 行之后添加以下配置行到您的 docker-compose.yaml 文件中,以增加 Python 环境初始化的超时时间,这可能也有帮助:

PYTHON_ENV_INIT_TIMEOUT: 320
After making these changes, restart the Docker containers with the following commands:在做出这些更改后,使用以下命令重新启动 Docker 容器:

  1. docker compose stop
  2. docker compose up -d

These steps should help address the timeout issue you're experiencing [1][2][3].这些步骤应有助于解决您遇到的超时问题 [1] [2] [3]

To continue talking to Dosu, mention @dosu.继续与 Dosu 交谈,请提及。

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

it is no use

@zhiwenliao commented on GitHub (Mar 4, 2025): > To resolve the "PluginDaemonInternalServerError: killed by timeout" error when saving the API Key setting in Dify, you should upgrade the Dify official plugins to version 0.0.6. This upgrade has been confirmed to resolve the timeout issue that occurs during credential validation. Additionally, you can add the following configuration line to your `docker-compose.yaml` file after line 560 to increase the Python environment initialization timeout, which may also help:要解决在 Dify 中保存 API 密钥设置时出现的“PluginDaemonInternalServerError: killed by timeout”错误,您应该将 Dify 官方插件升级到版本 0.0.6。此升级已被证实可以解决在凭证验证期间出现的超时问题。此外,您可以在第 560 行之后添加以下配置行到您的 `docker-compose.yaml` 文件中,以增加 Python 环境初始化的超时时间,这可能也有帮助: > > PYTHON_ENV_INIT_TIMEOUT: 320 > After making these changes, restart the Docker containers with the following commands:在做出这些更改后,使用以下命令重新启动 Docker 容器: > > 1. `docker compose stop` > 2. `docker compose up -d` > > These steps should help address the timeout issue you're experiencing [[1]](https://github.com/langgenius/dify/issues/14736)[[2]](https://github.com/langgenius/dify/issues/14585)[[3]](https://github.com/langgenius/dify/issues/14603).这些步骤应有助于解决您遇到的超时问题 [[1]](https://github.com/langgenius/dify/issues/14736) [[2]](https://github.com/langgenius/dify/issues/14585) [[3]](https://github.com/langgenius/dify/issues/14603) 。 > > _To continue talking to [Dosu](https://dosu.dev), mention [@dosu](https://github.com/dosu).继续与 Dosu 交谈,请提及。_ > > Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/d8d5063a-3b36-4151-a76e-e7b01fb2eb3b?feedback_type=other) it is no use
Author
Owner

@jhe123456 commented on GitHub (Mar 4, 2025):

mark 某位知名主播说过,不会升级就别学别人升级!

新装的也是同样的问题,应该怎么说?

@jhe123456 commented on GitHub (Mar 4, 2025): > mark 某位知名主播说过,不会升级就别学别人升级! 新装的也是同样的问题,应该怎么说?
Author
Owner

@dcxs commented on GitHub (Mar 4, 2025):

any solution?-_-!

@dcxs commented on GitHub (Mar 4, 2025): any solution?-_-!
Author
Owner

@dereksolar commented on GitHub (Mar 4, 2025):

兄弟们,找到可行的办法了。

这里应该是可以设置这个超时时间的默认值:
/langgenius/dify-plugin-daemon/tree/main
/internal/types/app/default.go
setDefaultInt(&config.PluginMaxExecutionTimeout, 240)

这里应该是可以通过环境变量改变这个默认值:
/internal/types/app/config.go
PluginMaxExecutionTimeout int envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"

我直接扩大10倍,就没这个timeout的问题了。
一开始只在.env里加了还没用,后来在docker-compose里也加上才生效,家在plugin哪一段。

@dereksolar commented on GitHub (Mar 4, 2025): 兄弟们,找到可行的办法了。 这里应该是可以设置这个超时时间的默认值: /langgenius/dify-plugin-daemon/tree/main /internal/types/app/default.go setDefaultInt(&config.PluginMaxExecutionTimeout, 240) 这里应该是可以通过环境变量改变这个默认值: /internal/types/app/config.go PluginMaxExecutionTimeout int `envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"` 我直接扩大10倍,就没这个timeout的问题了。 一开始只在.env里加了还没用,后来在docker-compose里也加上才生效,家在plugin哪一段。
Author
Owner

@Dmitry-Diordychuk commented on GitHub (Mar 5, 2025):

docker-compose.yaml

docker-compose.yaml
...
...
...
# plugin daemon
plugin_daemon:
  image: langgenius/dify-plugin-daemon:0.0.3-local
  restart: always
  environment:
    # Use the shared environment variables.
    <<: *shared-api-worker-env
    DB_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin}
    SERVER_PORT: ${PLUGIN_DAEMON_PORT:-5002}
    SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}
    MAX_PLUGIN_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800}
    PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false}
    DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001}
    DIFY_INNER_API_KEY: ${INNER_API_KEY_FOR_PLUGIN:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
    PLUGIN_REMOTE_INSTALLING_HOST: ${EXPOSE_PLUGIN_DEBUGGING_HOST:-localhost}
    PLUGIN_REMOTE_INSTALLING_PORT: ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}
    PLUGIN_WORKING_PATH: ${PLUGIN_WORKING_PATH:-/app/storage/cwd}
    PLUGIN_MAX_EXECUTION_TIMEOUT: 2400 <--------------------------------------------------------------------------------------------------------------------------------
    FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true}
  ports:
    - "${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}:${PLUGIN_DEBUGGING_PORT:-5003}"
  volumes:
    - ./volumes/plugin_daemon:/app/storage
...
...
...
@Dmitry-Diordychuk commented on GitHub (Mar 5, 2025): docker-compose.yaml ```yaml docker-compose.yaml ... ... ... # plugin daemon plugin_daemon: image: langgenius/dify-plugin-daemon:0.0.3-local restart: always environment: # Use the shared environment variables. <<: *shared-api-worker-env DB_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin} SERVER_PORT: ${PLUGIN_DAEMON_PORT:-5002} SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi} MAX_PLUGIN_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800} PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false} DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001} DIFY_INNER_API_KEY: ${INNER_API_KEY_FOR_PLUGIN:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1} PLUGIN_REMOTE_INSTALLING_HOST: ${EXPOSE_PLUGIN_DEBUGGING_HOST:-localhost} PLUGIN_REMOTE_INSTALLING_PORT: ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003} PLUGIN_WORKING_PATH: ${PLUGIN_WORKING_PATH:-/app/storage/cwd} PLUGIN_MAX_EXECUTION_TIMEOUT: 2400 <-------------------------------------------------------------------------------------------------------------------------------- FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true} ports: - "${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}:${PLUGIN_DEBUGGING_PORT:-5003}" volumes: - ./volumes/plugin_daemon:/app/storage ... ... ... ```
Author
Owner

@rosenjiang commented on GitHub (Mar 5, 2025):

兄弟们,找到可行的办法了。

这里应该是可以设置这个超时时间的默认值: /langgenius/dify-plugin-daemon/tree/main /internal/types/app/default.go setDefaultInt(&config.PluginMaxExecutionTimeout, 240)

这里应该是可以通过环境变量改变这个默认值: /internal/types/app/config.go PluginMaxExecutionTimeout int envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"

我直接扩大10倍,就没这个timeout的问题了。 一开始只在.env里加了还没用,后来在docker-compose里也加上才生效,家在plugin哪一段。

i am waiting for new version.............

@rosenjiang commented on GitHub (Mar 5, 2025): > 兄弟们,找到可行的办法了。 > > 这里应该是可以设置这个超时时间的默认值: /langgenius/dify-plugin-daemon/tree/main /internal/types/app/default.go setDefaultInt(&config.PluginMaxExecutionTimeout, 240) > > 这里应该是可以通过环境变量改变这个默认值: /internal/types/app/config.go PluginMaxExecutionTimeout int `envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"` > > 我直接扩大10倍,就没这个timeout的问题了。 一开始只在.env里加了还没用,后来在docker-compose里也加上才生效,家在plugin哪一段。 i am waiting for new version.............
Author
Owner

@probie6 commented on GitHub (Mar 5, 2025):

docker-compose.yaml

docker-compose.yaml
...
...
...

plugin daemon

plugin_daemon:
image: langgenius/dify-plugin-daemon:0.0.3-local
restart: always
environment:
# Use the shared environment variables.
<<: *shared-api-worker-env
DB_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin}
SERVER_PORT: ${PLUGIN_DAEMON_PORT:-5002}
SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}
MAX_PLUGIN_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800}
PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false}
DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001}
DIFY_INNER_API_KEY: ${INNER_API_KEY_FOR_PLUGIN:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
PLUGIN_REMOTE_INSTALLING_HOST: ${EXPOSE_PLUGIN_DEBUGGING_HOST:-localhost}
PLUGIN_REMOTE_INSTALLING_PORT: ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}
PLUGIN_WORKING_PATH: ${PLUGIN_WORKING_PATH:-/app/storage/cwd}
PLUGIN_MAX_EXECUTION_TIMEOUT: 2400 <--------------------------------------------------------------------------------------------------------------------------------
FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true}
ports:
- "${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}:${PLUGIN_DEBUGGING_PORT:-5003}"
volumes:
- ./volumes/plugin_daemon:/app/storage
...
...
...

When I add PLUGIN_MAX_EXECUTION_TIMEOUT: 2400 configuration, it can setting API-KEY of moonshot and openAi successfully, but volcengine still not work successfully

@probie6 commented on GitHub (Mar 5, 2025): > docker-compose.yaml > > docker-compose.yaml > ... > ... > ... > # plugin daemon > plugin_daemon: > image: langgenius/dify-plugin-daemon:0.0.3-local > restart: always > environment: > # Use the shared environment variables. > <<: *shared-api-worker-env > DB_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin} > SERVER_PORT: ${PLUGIN_DAEMON_PORT:-5002} > SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi} > MAX_PLUGIN_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800} > PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false} > DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001} > DIFY_INNER_API_KEY: ${INNER_API_KEY_FOR_PLUGIN:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1} > PLUGIN_REMOTE_INSTALLING_HOST: ${EXPOSE_PLUGIN_DEBUGGING_HOST:-localhost} > PLUGIN_REMOTE_INSTALLING_PORT: ${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003} > PLUGIN_WORKING_PATH: ${PLUGIN_WORKING_PATH:-/app/storage/cwd} > PLUGIN_MAX_EXECUTION_TIMEOUT: 2400 <-------------------------------------------------------------------------------------------------------------------------------- > FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true} > ports: > - "${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}:${PLUGIN_DEBUGGING_PORT:-5003}" > volumes: > - ./volumes/plugin_daemon:/app/storage > ... > ... > ... **When I add `PLUGIN_MAX_EXECUTION_TIMEOUT: 2400` configuration, it can setting API-KEY of moonshot and openAi successfully, but volcengine still not work successfully**
Author
Owner

@lmx492274842 commented on GitHub (Mar 6, 2025):

兄弟们,找到可行的办法了。

这里应该是可以设置这个超时时间的默认值: /langgenius/dify-plugin-daemon/tree/main /internal/types/app/default.go setDefaultInt(&config.PluginMaxExecutionTimeout, 240)这里应该是可以设置这个超时时间的默认值: /langgenius/dify-plugin-daemon/tree/main /internal/types/app/default.go setDefaultInt(&config.PluginMaxExecutionTimeout, 240)

这里应该是可以通过环境变量改变这个默认值: /internal/types/app/config.go PluginMaxExecutionTimeout int envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"这里应该是可以通过环境变量改变这个默认值: /internal/types/app/config.go PluginMaxExecutionTimeout int envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"

我直接扩大10倍,就没这个timeout的问题了。 一开始只在.env里加了还没用,后来在docker-compose里也加上才生效,家在plugin哪一段。

nice啊兄弟,真的有用,爱你!

@lmx492274842 commented on GitHub (Mar 6, 2025): > 兄弟们,找到可行的办法了。 > > 这里应该是可以设置这个超时时间的默认值: /langgenius/dify-plugin-daemon/tree/main /internal/types/app/default.go setDefaultInt(&config.PluginMaxExecutionTimeout, 240)这里应该是可以设置这个超时时间的默认值: /langgenius/dify-plugin-daemon/tree/main /internal/types/app/default.go setDefaultInt(&config.PluginMaxExecutionTimeout, 240) > > 这里应该是可以通过环境变量改变这个默认值: /internal/types/app/config.go PluginMaxExecutionTimeout int `envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"`这里应该是可以通过环境变量改变这个默认值: /internal/types/app/config.go PluginMaxExecutionTimeout int `envconfig:"PLUGIN_MAX_EXECUTION_TIMEOUT" validate:"required"` > > 我直接扩大10倍,就没这个timeout的问题了。 一开始只在.env里加了还没用,后来在docker-compose里也加上才生效,家在plugin哪一段。 nice啊兄弟,真的有用,爱你!
Author
Owner

@hczs commented on GitHub (Mar 6, 2025):

same problem

@hczs commented on GitHub (Mar 6, 2025): same problem
Author
Owner

@youtiaoguagua commented on GitHub (Mar 6, 2025):

官方自己的都报错

@youtiaoguagua commented on GitHub (Mar 6, 2025): 官方自己的都报错
Author
Owner

@alienwaredream commented on GitHub (Mar 8, 2025):

附议

@alienwaredream commented on GitHub (Mar 8, 2025): 附议
Author
Owner

@zfno111 commented on GitHub (Mar 10, 2025):

Here is my solution
If u use proxy in image: langgenius/dify-plugin-daemon:0.0.3-local
Delete your proxy.
it works
for example:
image: langgenius/dify-plugin-daemon:0.0.3-local
restart: always
environment:
# Use the shared environment variables.
<<: *shared-api-worker-env
DB_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin}
SERVER_PORT: ${PLUGIN_DAEMON_PORT:-5002}
SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi}
MAX_PLUGIN_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800}
PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false}
DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001}
DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1}
PLUGIN_REMOTE_INSTALLING_HOST: ${PLUGIN_DEBUGGING_HOST:-0.0.0.0}
PLUGIN_REMOTE_INSTALLING_PORT: ${PLUGIN_DEBUGGING_PORT:-5003}
PLUGIN_WORKING_PATH: ${PLUGIN_WORKING_PATH:-/app/storage/cwd}
FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true}
PYTHON_ENV_INIT_TIMEOUT: ${PLUGIN_PYTHON_ENV_INIT_TIMEOUT:-120}
#PLUGIN_MAX_EXECUTION_TIMEOUT: ${PLUGIN_MAX_EXECUTION_TIMEOUT:-600}
#do not use any proxy!!!!
#HTTP_PROXY: http://10.0.37.2:7890
#HTTPS_PROXY: https://10.0.37.2:7890
PLUGIN_MAX_EXECUTION_TIMEOUT: 24000
#u can change PIP_URL if u are in CN
PIP_MIRROR_URL: https://pypi.tuna.tsinghua.edu.cn/simple
ports:
- "${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}:${PLUGIN_DEBUGGING_PORT:-5003}"
volumes:
- ./volumes/plugin_daemon:/app/storage
depends_on:
- db

@zfno111 commented on GitHub (Mar 10, 2025): **Here is my solution** If u use proxy in image: langgenius/dify-plugin-daemon:0.0.3-local Delete your proxy. **it works** **for example:** image: langgenius/dify-plugin-daemon:0.0.3-local restart: always environment: # Use the shared environment variables. <<: *shared-api-worker-env DB_DATABASE: ${DB_PLUGIN_DATABASE:-dify_plugin} SERVER_PORT: ${PLUGIN_DAEMON_PORT:-5002} SERVER_KEY: ${PLUGIN_DAEMON_KEY:-lYkiYYT6owG+71oLerGzA7GXCgOT++6ovaezWAjpCjf+Sjc3ZtU+qUEi} MAX_PLUGIN_PACKAGE_SIZE: ${PLUGIN_MAX_PACKAGE_SIZE:-52428800} PPROF_ENABLED: ${PLUGIN_PPROF_ENABLED:-false} DIFY_INNER_API_URL: ${PLUGIN_DIFY_INNER_API_URL:-http://api:5001} DIFY_INNER_API_KEY: ${PLUGIN_DIFY_INNER_API_KEY:-QaHbTe77CtuXmsfyhR7+vRjI/+XbV1AaFy691iy+kGDv2Jvy0/eAh8Y1} PLUGIN_REMOTE_INSTALLING_HOST: ${PLUGIN_DEBUGGING_HOST:-0.0.0.0} PLUGIN_REMOTE_INSTALLING_PORT: ${PLUGIN_DEBUGGING_PORT:-5003} PLUGIN_WORKING_PATH: ${PLUGIN_WORKING_PATH:-/app/storage/cwd} FORCE_VERIFYING_SIGNATURE: ${FORCE_VERIFYING_SIGNATURE:-true} PYTHON_ENV_INIT_TIMEOUT: ${PLUGIN_PYTHON_ENV_INIT_TIMEOUT:-120} #PLUGIN_MAX_EXECUTION_TIMEOUT: ${PLUGIN_MAX_EXECUTION_TIMEOUT:-600} **#do not use any proxy!!!!** #HTTP_PROXY: http://10.0.37.2:7890 #HTTPS_PROXY: https://10.0.37.2:7890 PLUGIN_MAX_EXECUTION_TIMEOUT: 24000 #u can change PIP_URL if u are in CN PIP_MIRROR_URL: https://pypi.tuna.tsinghua.edu.cn/simple ports: - "${EXPOSE_PLUGIN_DEBUGGING_PORT:-5003}:${PLUGIN_DEBUGGING_PORT:-5003}" volumes: - ./volumes/plugin_daemon:/app/storage depends_on: - db
Author
Owner

@laipz8200 commented on GitHub (Mar 10, 2025):

Hi @188zhuyaqi, Did you try to change the PLUGIN_MAX_EXECUTION_TIMEOUT env variable? It's the default to 600, and we believe it's enough for normal usage, but it depends on your network status. Can you change it to a larger number and try again?

@laipz8200 commented on GitHub (Mar 10, 2025): Hi @188zhuyaqi, Did you try to change the `PLUGIN_MAX_EXECUTION_TIMEOUT` env variable? It's the default to 600, and we believe it's enough for normal usage, but it depends on your network status. Can you change it to a larger number and try again?
Author
Owner

@loveyourlife126 commented on GitHub (Mar 10, 2025):

I still have a problem, mine is when setting deepseek

@loveyourlife126 commented on GitHub (Mar 10, 2025): I still have a problem, mine is when setting deepseek
Author
Owner

@laipz8200 commented on GitHub (Mar 10, 2025):

Hi @loveyourlife126. Could you provide the detailed logs in your docker containers? it will be helpful for us to figure out the issue.

@laipz8200 commented on GitHub (Mar 10, 2025): Hi @loveyourlife126. Could you provide the detailed logs in your docker containers? it will be helpful for us to figure out the issue.
Author
Owner

@cycxy commented on GitHub (Mar 11, 2025):

Hi @loveyourlife126. Could you provide the detailed logs in your docker containers? it will be helpful for us to figure out the issue.嗨。你能提供你的docker容器的详细日志吗?这将有助于我们解决这个问题。

[GIN] 2025/03/11 - 10:55:27 | 200 | 6.772875ms | 172.18.0.9 | GET "/plugin/b4eef4b6-66f6-488e-a6c9-19c383f93e95/management/models?page=1&page_size=256"
2025/03/11 10:55:27 factory.go:28: [ERROR]PluginDaemonInternalServerError: no available node, plugin not found
goroutine 140 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc00077a510})
/app/internal/types/exception/factory.go:27 +0x27
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).redirectPluginInvokeByPluginIdentifier(0xc0001160d8, 0xc000a9a300, {0xc00012f3e0?, 0xe98ebf?}, {0x180b640, 0xc00077a4c0})
/app/internal/server/middleware.go:120 +0xef
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc000a9a300)
/app/internal/server/middleware.go:94 +0x95
github.com/gin-gonic/gin.(*Context).Next(0xc000a9a300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc000a9a300)
/app/internal/server/middleware.go:66 +0x2f2
github.com/gin-gonic/gin.(*Context).Next(0xc000a9a300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc000a9a300)
/app/internal/server/middleware.go:24 +0x95
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc000a9a300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc000a9a300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00018a4e0, 0xc000a9a300)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00018a4e0, {0x181dac0, 0xc00032c0e0}, 0xc0007fe5a0)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2
net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc00032c0e0?}, 0x6?)
/usr/local/go/src/net/http/server.go:3142 +0x8e
net/http.(*conn).serve(0xc0005142d0, {0x1820270, 0xc00052f200})
/usr/local/go/src/net/http/server.go:2044 +0x5e8
created by net/http.(*Server).Serve in goroutine 58
/usr/local/go/src/net/http/server.go:3290 +0x4b4

[GIN] 2025/03/11 - 10:55:27 | 404 | 1.214227ms | 172.18.0.9 | POST "/plugin/b4eef4b6-66f6-488e-a6c9-19c383f93e95/dispatch/model/validate_provider_credentials"

@cycxy commented on GitHub (Mar 11, 2025): > Hi [@loveyourlife126](https://github.com/loveyourlife126). Could you provide the detailed logs in your docker containers? it will be helpful for us to figure out the issue.嗨。你能提供你的docker容器的详细日志吗?这将有助于我们解决这个问题。 [GIN] 2025/03/11 - 10:55:27 | 200 | 6.772875ms | 172.18.0.9 | GET "/plugin/b4eef4b6-66f6-488e-a6c9-19c383f93e95/management/models?page=1&page_size=256" 2025/03/11 10:55:27 factory.go:28: [ERROR]PluginDaemonInternalServerError: no available node, plugin not found goroutine 140 [running]: runtime/debug.Stack() /usr/local/go/src/runtime/debug/stack.go:24 +0x5e github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x180b640, 0xc00077a510}) /app/internal/types/exception/factory.go:27 +0x27 github.com/langgenius/dify-plugin-daemon/internal/server.(*App).redirectPluginInvokeByPluginIdentifier(0xc0001160d8, 0xc000a9a300, {0xc00012f3e0?, 0xe98ebf?}, {0x180b640, 0xc00077a4c0}) /app/internal/server/middleware.go:120 +0xef github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc000a9a300) /app/internal/server/middleware.go:94 +0x95 github.com/gin-gonic/gin.(*Context).Next(0xc000a9a300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc000a9a300) /app/internal/server/middleware.go:66 +0x2f2 github.com/gin-gonic/gin.(*Context).Next(0xc000a9a300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc000a9a300) /app/internal/server/middleware.go:24 +0x95 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc000a9a300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc000a9a300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5 github.com/gin-gonic/gin.(*Context).Next(...) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc00018a4e0, 0xc000a9a300) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892 github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc00018a4e0, {0x181dac0, 0xc00032c0e0}, 0xc0007fe5a0) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2 net/http.serverHandler.ServeHTTP({0x1813868?}, {0x181dac0?, 0xc00032c0e0?}, 0x6?) /usr/local/go/src/net/http/server.go:3142 +0x8e net/http.(*conn).serve(0xc0005142d0, {0x1820270, 0xc00052f200}) /usr/local/go/src/net/http/server.go:2044 +0x5e8 created by net/http.(*Server).Serve in goroutine 58 /usr/local/go/src/net/http/server.go:3290 +0x4b4 [GIN] 2025/03/11 - 10:55:27 | 404 | 1.214227ms | 172.18.0.9 | POST "/plugin/b4eef4b6-66f6-488e-a6c9-19c383f93e95/dispatch/model/validate_provider_credentials"
Author
Owner

@laipz8200 commented on GitHub (Mar 11, 2025):

Hi @cycxy. Please upgrade to our new version and reinstall your plugin. This issue should be fixed.

@laipz8200 commented on GitHub (Mar 11, 2025): Hi @cycxy. Please upgrade to our new version and reinstall your plugin. This issue should be fixed.
Author
Owner

@rosenjiang commented on GitHub (Mar 11, 2025):

Hi @cycxy. Please upgrade to our new version and reinstall your plugin. This issue should be fixed.

hope so...

@rosenjiang commented on GitHub (Mar 11, 2025): > Hi [@cycxy](https://github.com/cycxy). Please upgrade to our new version and reinstall your plugin. This issue should be fixed. hope so...
Author
Owner

@abc77654 commented on GitHub (Mar 11, 2025):

你好@cycxy。请升级到我们的新版本并重新安装您的插件。此问题应该已修复。

I just upgraded to the latest version 1.0.1 of dify, but the issue still persists. Ugh.

Image

@abc77654 commented on GitHub (Mar 11, 2025): > 你好[@cycxy](https://github.com/cycxy)。请升级到我们的新版本并重新安装您的插件。此问题应该已修复。 I just upgraded to the latest version 1.0.1 of dify, but the issue still persists. Ugh. ![Image](https://github.com/user-attachments/assets/cdf4d82e-7aae-4bdb-a587-5d656b5ab05b)
Author
Owner

@laipz8200 commented on GitHub (Mar 11, 2025):

Hi @abc77654. Please uninstall your plugin and re-install it.

If the issue still persists, please provide your docker contains logs(both from dify-api and plugin-daemon) for us, thank you.

@laipz8200 commented on GitHub (Mar 11, 2025): Hi @abc77654. Please uninstall your plugin and re-install it. If the issue still persists, please provide your docker contains logs(both from dify-api and plugin-daemon) for us, thank you.
Author
Owner

@abc77654 commented on GitHub (Mar 11, 2025):

我解决了,基于上面https://github.com/langgenius/dify/issues/14654#issuecomment-2702708161的办法

首先到dify的docker文件夹里,找到docker-compose.yaml文件,编辑它,搜索“PLUGIN_MAX_EXECUTION_TIMEOUT”
把这条的尾数-60改为-600,保存docker-compose.yaml,重启docker,就解决了。

卸载重装全新解压缩,都没有用,我都试过了,只有这个直接解决。

@abc77654 commented on GitHub (Mar 11, 2025): 我解决了,基于上面https://github.com/langgenius/dify/issues/14654#issuecomment-2702708161的办法, 首先到dify的docker文件夹里,找到docker-compose.yaml文件,编辑它,搜索“PLUGIN_MAX_EXECUTION_TIMEOUT” 把这条的尾数-60改为-600,保存docker-compose.yaml,重启docker,就解决了。 卸载重装全新解压缩,都没有用,我都试过了,只有这个直接解决。
Author
Owner

@RobotZQ commented on GitHub (Mar 11, 2025):

same issue for me

Image

@RobotZQ commented on GitHub (Mar 11, 2025): same issue for me ![Image](https://github.com/user-attachments/assets/88a5a2b6-e277-4514-a48f-7b2b8bebc2ec)
Author
Owner

@iEvan-lhr commented on GitHub (Mar 12, 2025):

I found logs for plugin-daemon
plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s
plugin_daemon-1 | 2025/03/12 06:10:38 pool.go:32: [INFO]init routine pool, size: 10000
plugin_daemon-1 | 2025/03/12 06:10:39 init.go:152: [INFO]dify plugin db initialized
plugin_daemon-1 | 2025/03/12 06:10:39 manager.go:155: [INFO]start plugin manager daemon...
plugin_daemon-1 | 2025/03/12 06:10:39 init.go:19: [INFO]Persistence initialized
plugin_daemon-1 | 2025/03/12 06:10:39 watcher.go:16: [INFO]start to handle new plugins in path: plugin
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/deepseek:0.0.1
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/deepseek:0.0.1
plugin_daemon-1 | [GIN] 2025/03/12 - 06:10:39 | 200 | 91.46µs | 192.168.32.6 | GET "/health/check"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:10:39 | 200 | 147.664µs | 192.168.32.6 | GET "/health/check"
plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/deepseek:0.0.1 started
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/deepseek:0.0.5
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/deepseek:0.0.5
plugin_daemon-1 | [gnet] 2025-03-12T06:10:39.457049925Z INFO logging/logger.go:256 Launching gnet with 8 event-loops, listening on: tcp://0.0.0.0:5003
plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/deepseek:0.0.5 started
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/openai:0.0.11
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/openai:0.0.11
plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/openai:0.0.11 started
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/openai_api_compatible:0.0.7
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.7
plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/openai_api_compatible:0.0.7 started
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/searxng:0.0.2
plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/searxng:0.0.2
plugin_daemon-1 | 2025/03/12 06:10:39 cluster_lifetime.go:113: [INFO]current node has become the master of the cluster
plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/searxng:0.0.2 started
plugin_daemon-1 | 2025/03/12 06:10:40 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/siliconflow:0.0.7
plugin_daemon-1 | 2025/03/12 06:10:40 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/siliconflow:0.0.7
plugin_daemon-1 | 2025/03/12 06:10:40 run.go:143: [INFO]plugin langgenius/siliconflow:0.0.7 started
plugin_daemon-1 | 2025/03/12 06:10:40 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/tongyi:0.0.11
plugin_daemon-1 | 2025/03/12 06:10:40 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/tongyi:0.0.11
plugin_daemon-1 | 2025/03/12 06:10:41 stdio_handle.go:128: [INFO]plugin langgenius/deepseek:0.0.5: Installed model: deepseek
plugin_daemon-1 | 2025/03/12 06:10:41 stdio_handle.go:128: [INFO]plugin langgenius/openai_api_compatible:0.0.7: Installed model: openai_api_compatible
plugin_daemon-1 | 2025/03/12 06:10:41 stdio_handle.go:128: [INFO]plugin langgenius/deepseek:0.0.1: Installed model: deepseek
plugin_daemon-1 | 2025/03/12 06:10:42 stdio_handle.go:128: [INFO]plugin langgenius/searxng:0.0.2: Installed tool: searxng
plugin_daemon-1 | 2025/03/12 06:10:42 stdio_handle.go:128: [INFO]plugin langgenius/siliconflow:0.0.7: Installed model: siliconflow
plugin_daemon-1 | 2025/03/12 06:10:43 stdio_handle.go:128: [INFO]plugin langgenius/openai:0.0.11: Installed model: openai
plugin_daemon-1 | 2025/03/12 06:10:49 node.go:213: [INFO]node 4122a08a-e9bf-4dac-a2c4-79fb2ce24360 has been removed from the cluster due to being disconnected
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 123.012872ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 194.862372ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 22.82667ms | 192.168.32.8 | POST "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/dispatch/model/schema"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 2.841884ms | 192.168.32.8 | POST "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/dispatch/model/schema"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 2.21898ms | 192.168.32.8 | POST "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/dispatch/model/schema"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 23.373545ms | 192.168.32.8 | POST "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/dispatch/model/schema"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 27.759464ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 15.688654ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:34 | 200 | 2.283837ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/install/tasks?page=1&page_size=100"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 17.338973ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 38.139312ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 39.873677ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 47.977759ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 979.686µs | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/asset/fb1d7c05088e34ecabd0e087ebcfd929be9aad785b5e21e0577c2aa82acf7ae0.svg"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 659.488µs | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/asset/69f80e7dfe36e036321767f69cad4755fe162cf581b206a8290dce0629d2e4f6.svg"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 622.101µs | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/asset/0dbcd12864243bfcd8c0c1898a3e0c37ea553c21a727800b0863a599a9660729.svg"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 618.168µs | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/asset/7d40d629e02c01404af94652a8684f9aaab0da105182fc16fafe0da4e183dd9e.png"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 17.580262ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 23.861001ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 61.442083ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 24.974741ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 54.719594ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:40 | 200 | 14.27176ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:40 | 200 | 25.21178ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:40 | 200 | 45.629971ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:40 | 200 | 13.79538ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:41 | 200 | 13.457833ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | [GIN] 2025/03/12 - 06:12:43 | 200 | 28.557903ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256"
plugin_daemon-1 | 2025/03/12 06:12:45 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 49 packages in 271ms
plugin_daemon-1 | Downloading numpy (15.4MiB)
plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s

@iEvan-lhr commented on GitHub (Mar 12, 2025): I found logs for plugin-daemon plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s plugin_daemon-1 | 2025/03/12 06:10:38 pool.go:32: [INFO]init routine pool, size: 10000 plugin_daemon-1 | 2025/03/12 06:10:39 init.go:152: [INFO]dify plugin db initialized plugin_daemon-1 | 2025/03/12 06:10:39 manager.go:155: [INFO]start plugin manager daemon... plugin_daemon-1 | 2025/03/12 06:10:39 init.go:19: [INFO]Persistence initialized plugin_daemon-1 | 2025/03/12 06:10:39 watcher.go:16: [INFO]start to handle new plugins in path: plugin plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/deepseek:0.0.1 plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/deepseek:0.0.1 plugin_daemon-1 | [GIN] 2025/03/12 - 06:10:39 | 200 | 91.46µs | 192.168.32.6 | GET "/health/check" plugin_daemon-1 | [GIN] 2025/03/12 - 06:10:39 | 200 | 147.664µs | 192.168.32.6 | GET "/health/check" plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/deepseek:0.0.1 started plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/deepseek:0.0.5 plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/deepseek:0.0.5 plugin_daemon-1 | [gnet] 2025-03-12T06:10:39.457049925Z INFO logging/logger.go:256 Launching gnet with 8 event-loops, listening on: tcp://0.0.0.0:5003 plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/deepseek:0.0.5 started plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/openai:0.0.11 plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/openai:0.0.11 plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/openai:0.0.11 started plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/openai_api_compatible:0.0.7 plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/openai_api_compatible:0.0.7 plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/openai_api_compatible:0.0.7 started plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/searxng:0.0.2 plugin_daemon-1 | 2025/03/12 06:10:39 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/searxng:0.0.2 plugin_daemon-1 | 2025/03/12 06:10:39 cluster_lifetime.go:113: [INFO]current node has become the master of the cluster plugin_daemon-1 | 2025/03/12 06:10:39 run.go:143: [INFO]plugin langgenius/searxng:0.0.2 started plugin_daemon-1 | 2025/03/12 06:10:40 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/siliconflow:0.0.7 plugin_daemon-1 | 2025/03/12 06:10:40 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/siliconflow:0.0.7 plugin_daemon-1 | 2025/03/12 06:10:40 run.go:143: [INFO]plugin langgenius/siliconflow:0.0.7 started plugin_daemon-1 | 2025/03/12 06:10:40 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/tongyi:0.0.11 plugin_daemon-1 | 2025/03/12 06:10:40 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/tongyi:0.0.11 plugin_daemon-1 | 2025/03/12 06:10:41 stdio_handle.go:128: [INFO]plugin langgenius/deepseek:0.0.5: Installed model: deepseek plugin_daemon-1 | 2025/03/12 06:10:41 stdio_handle.go:128: [INFO]plugin langgenius/openai_api_compatible:0.0.7: Installed model: openai_api_compatible plugin_daemon-1 | 2025/03/12 06:10:41 stdio_handle.go:128: [INFO]plugin langgenius/deepseek:0.0.1: Installed model: deepseek plugin_daemon-1 | 2025/03/12 06:10:42 stdio_handle.go:128: [INFO]plugin langgenius/searxng:0.0.2: Installed tool: searxng plugin_daemon-1 | 2025/03/12 06:10:42 stdio_handle.go:128: [INFO]plugin langgenius/siliconflow:0.0.7: Installed model: siliconflow plugin_daemon-1 | 2025/03/12 06:10:43 stdio_handle.go:128: [INFO]plugin langgenius/openai:0.0.11: Installed model: openai plugin_daemon-1 | 2025/03/12 06:10:49 node.go:213: [INFO]node 4122a08a-e9bf-4dac-a2c4-79fb2ce24360 has been removed from the cluster due to being disconnected plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 123.012872ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 194.862372ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 22.82667ms | 192.168.32.8 | POST "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/dispatch/model/schema" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 2.841884ms | 192.168.32.8 | POST "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/dispatch/model/schema" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 2.21898ms | 192.168.32.8 | POST "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/dispatch/model/schema" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 23.373545ms | 192.168.32.8 | POST "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/dispatch/model/schema" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 27.759464ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:33 | 200 | 15.688654ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:34 | 200 | 2.283837ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 17.338973ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 38.139312ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 39.873677ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 47.977759ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 979.686µs | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/asset/fb1d7c05088e34ecabd0e087ebcfd929be9aad785b5e21e0577c2aa82acf7ae0.svg" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 659.488µs | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/asset/69f80e7dfe36e036321767f69cad4755fe162cf581b206a8290dce0629d2e4f6.svg" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 622.101µs | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/asset/0dbcd12864243bfcd8c0c1898a3e0c37ea553c21a727800b0863a599a9660729.svg" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 618.168µs | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/asset/7d40d629e02c01404af94652a8684f9aaab0da105182fc16fafe0da4e183dd9e.png" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 17.580262ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 23.861001ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 61.442083ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 24.974741ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:39 | 200 | 54.719594ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:40 | 200 | 14.27176ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:40 | 200 | 25.21178ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:40 | 200 | 45.629971ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:40 | 200 | 13.79538ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:11:41 | 200 | 13.457833ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/12 - 06:12:43 | 200 | 28.557903ms | 192.168.32.8 | GET "/plugin/44bb66f5-8776-4d57-b5b2-6b4c0ea4e1ad/management/models?page=1&page_size=256" plugin_daemon-1 | 2025/03/12 06:12:45 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 49 packages in 271ms plugin_daemon-1 | Downloading numpy (15.4MiB) plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s
Author
Owner

@Yeuoly commented on GitHub (Mar 12, 2025):

I found logs for plugin-daemon plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s

Hi, pls try add an environment variable: PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple to you .env and restart your services, it should been fixed

@Yeuoly commented on GitHub (Mar 12, 2025): > I found logs for plugin-daemon plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s Hi, pls try add an environment variable: `PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple` to you .env and restart your services, it should been fixed
Author
Owner

@Bc-Aqr commented on GitHub (Mar 12, 2025):

Is this problem solved? I also encountered this error when configuring any llm access

@Bc-Aqr commented on GitHub (Mar 12, 2025): Is this problem solved? I also encountered this error when configuring any llm access
Author
Owner

@Ador-able commented on GitHub (Mar 19, 2025):

It's hard to imagine so many people encountering this problem, but it hasn't been solved yet

I made the modifications as instructed
PLUGIN_MAX_EXECUTION_TIMEOUT=6000
PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple

But it has no effect

@Ador-able commented on GitHub (Mar 19, 2025): It's hard to imagine so many people encountering this problem, but it hasn't been solved yet I made the modifications as instructed PLUGIN_MAX_EXECUTION_TIMEOUT=6000 PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple But it has no effect
Author
Owner

@laipz8200 commented on GitHub (Mar 19, 2025):

This issue should be fixed in the 1.0.1 version.

@laipz8200 commented on GitHub (Mar 19, 2025): This issue should be fixed in the 1.0.1 version.
Author
Owner

@Ador-able commented on GitHub (Mar 19, 2025):

This issue should be fixed in the 1.0.1 version.

For me, this issue still exists in version 1.1.0.

Image

I tried to modify it :PLUGIN_PYTHON_ENV_INIT_TIMEOUT=1200

Uninstall and reinstall plugins multiple times, clear Docker and Git folders, and clone and run again. Still unable to run

Image

plugin:[ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 41 packages in 1.76s

warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.

     If the cache and target directories are on different filesystems, hardlinking may not be supported.

     If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.

init process exited due to no activity for 120 seconds, retry in 30s

api:

Exception on /console/api/workspaces/current [GET]

Traceback (most recent call last):

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context

    self.dialect.do_execute(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute

    cursor.execute(statement, parameters)

psycopg2.errors.UndefinedTable: relation "dify_setups" does not exist

LINE 2: FROM dify_setups 

             ^

The above exception was the direct cause of the following exception:

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_restful/__init__.py", line 489, 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_restful/__init__.py", line 604, in dispatch_request

    resp = meth(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/controllers/console/wraps.py", line 184, in decorated

    elif dify_config.EDITION == "SELF_HOSTED" and not db.session.query(DifySetup).first():

                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2728, in first

    return self.limit(1)._iter().first()  # type: ignore

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter

    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(

                                                  ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2362, in execute

    return self._execute_internal(

           ^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal

    result: Result[Any] = compile_state_cls.orm_execute_statement(

                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement

    result = conn.execute(

             ^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute

    return meth(

           ^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection

    return connection._execute_clauseelement(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement

    ret = self._execute_context(

          ^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context

    return self._exec_single_context(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context

    self._handle_dbapi_exception(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception

    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context

    self.dialect.do_execute(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute

    cursor.execute(statement, parameters)

sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "dify_setups" does not exist

LINE 2: FROM dify_setups 

             ^

[SQL: SELECT dify_setups.version AS dify_setups_version, dify_setups.setup_at AS dify_setups_setup_at 

FROM dify_setups 

 LIMIT %(param_1)s]

[parameters: {'param_1': 1}]

(Background on this error at: https://sqlalche.me/e/20/f405)

2025-03-19 14:55:23.915 ERROR [Dummy-12] [app.py:875] - Exception on /console/api/account/profile [GET]

Traceback (most recent call last):

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context

    self.dialect.do_execute(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute

    cursor.execute(statement, parameters)

psycopg2.errors.UndefinedTable: relation "dify_setups" does not exist

LINE 2: FROM dify_setups 

             ^

The above exception was the direct cause of the following exception:

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_restful/__init__.py", line 489, 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_restful/__init__.py", line 604, in dispatch_request

    resp = meth(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/controllers/console/wraps.py", line 184, in decorated

    elif dify_config.EDITION == "SELF_HOSTED" and not db.session.query(DifySetup).first():

                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2728, in first

    return self.limit(1)._iter().first()  # type: ignore

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter

    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(

                                                  ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2362, in execute

    return self._execute_internal(

           ^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal

    result: Result[Any] = compile_state_cls.orm_execute_statement(

                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement

    result = conn.execute(

             ^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute

    return meth(

           ^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection

    return connection._execute_clauseelement(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement

    ret = self._execute_context(

          ^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context

    return self._exec_single_context(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context

    self._handle_dbapi_exception(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception

    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context

    self.dialect.do_execute(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute

    cursor.execute(statement, parameters)

sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "dify_setups" does not exist

LINE 2: FROM dify_setups 

             ^

[SQL: SELECT dify_setups.version AS dify_setups_version, dify_setups.setup_at AS dify_setups_setup_at 

FROM dify_setups 

 LIMIT %(param_1)s]

[parameters: {'param_1': 1}]

(Background on this error at: https://sqlalche.me/e/20/f405)
@Ador-able commented on GitHub (Mar 19, 2025): > This issue should be fixed in the 1.0.1 version. For me, this issue still exists in version 1.1.0. ![Image](https://github.com/user-attachments/assets/0ea09106-89cc-4a2d-8459-24c31c82f5d3) I tried to modify it :PLUGIN_PYTHON_ENV_INIT_TIMEOUT=1200 Uninstall and reinstall plugins multiple times, clear Docker and Git folders, and clone and run again. Still unable to run ![Image](https://github.com/user-attachments/assets/8907f3b0-660f-4593-904b-d6aa6e3aa9c2) plugin:[ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 41 packages in 1.76s warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance. If the cache and target directories are on different filesystems, hardlinking may not be supported. If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning. init process exited due to no activity for 120 seconds, retry in 30s api: ``` Exception on /console/api/workspaces/current [GET] Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context self.dialect.do_execute( File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute cursor.execute(statement, parameters) psycopg2.errors.UndefinedTable: relation "dify_setups" does not exist LINE 2: FROM dify_setups ^ The above exception was the direct cause of the following exception: 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_restful/__init__.py", line 489, 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_restful/__init__.py", line 604, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 184, in decorated elif dify_config.EDITION == "SELF_HOSTED" and not db.session.query(DifySetup).first(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2728, in first return self.limit(1)._iter().first() # type: ignore ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter result: Union[ScalarResult[_T], Result[_T]] = self.session.execute( ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2362, in execute return self._execute_internal( ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal result: Result[Any] = compile_state_cls.orm_execute_statement( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement result = conn.execute( ^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute return meth( ^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection return connection._execute_clauseelement( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement ret = self._execute_context( ^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context return self._exec_single_context( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context self._handle_dbapi_exception( File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception raise sqlalchemy_exception.with_traceback(exc_info[2]) from e File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context self.dialect.do_execute( File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "dify_setups" does not exist LINE 2: FROM dify_setups ^ [SQL: SELECT dify_setups.version AS dify_setups_version, dify_setups.setup_at AS dify_setups_setup_at FROM dify_setups LIMIT %(param_1)s] [parameters: {'param_1': 1}] (Background on this error at: https://sqlalche.me/e/20/f405) 2025-03-19 14:55:23.915 ERROR [Dummy-12] [app.py:875] - Exception on /console/api/account/profile [GET] Traceback (most recent call last): File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context self.dialect.do_execute( File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute cursor.execute(statement, parameters) psycopg2.errors.UndefinedTable: relation "dify_setups" does not exist LINE 2: FROM dify_setups ^ The above exception was the direct cause of the following exception: 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_restful/__init__.py", line 489, 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_restful/__init__.py", line 604, in dispatch_request resp = meth(*args, **kwargs) ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/controllers/console/wraps.py", line 184, in decorated elif dify_config.EDITION == "SELF_HOSTED" and not db.session.query(DifySetup).first(): ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2728, in first return self.limit(1)._iter().first() # type: ignore ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter result: Union[ScalarResult[_T], Result[_T]] = self.session.execute( ^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2362, in execute return self._execute_internal( ^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal result: Result[Any] = compile_state_cls.orm_execute_statement( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement result = conn.execute( ^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute return meth( ^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection return connection._execute_clauseelement( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement ret = self._execute_context( ^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context return self._exec_single_context( ^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context self._handle_dbapi_exception( File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception raise sqlalchemy_exception.with_traceback(exc_info[2]) from e File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context self.dialect.do_execute( File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute cursor.execute(statement, parameters) sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "dify_setups" does not exist LINE 2: FROM dify_setups ^ [SQL: SELECT dify_setups.version AS dify_setups_version, dify_setups.setup_at AS dify_setups_setup_at FROM dify_setups LIMIT %(param_1)s] [parameters: {'param_1': 1}] (Background on this error at: https://sqlalche.me/e/20/f405) ```
Author
Owner

@Ador-able commented on GitHub (Mar 20, 2025):

This issue should be fixed in the 1.0.1 version.

For me, this issue still exists in version 1.1.0.

Image

I tried to modify it :PLUGIN_PYTHON_ENV_INIT_TIMEOUT=1200

Uninstall and reinstall plugins multiple times, clear Docker and Git folders, and clone and run again. Still unable to run

Image

plugin:[ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 41 packages in 1.76s

warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance.

     If the cache and target directories are on different filesystems, hardlinking may not be supported.

     If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning.

init process exited due to no activity for 120 seconds, retry in 30s

api:

Exception on /console/api/workspaces/current [GET]

Traceback (most recent call last):

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context

    self.dialect.do_execute(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute

    cursor.execute(statement, parameters)

psycopg2.errors.UndefinedTable: relation "dify_setups" does not exist

LINE 2: FROM dify_setups 

             ^

The above exception was the direct cause of the following exception:

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_restful/__init__.py", line 489, 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_restful/__init__.py", line 604, in dispatch_request

    resp = meth(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/controllers/console/wraps.py", line 184, in decorated

    elif dify_config.EDITION == "SELF_HOSTED" and not db.session.query(DifySetup).first():

                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2728, in first

    return self.limit(1)._iter().first()  # type: ignore

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter

    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(

                                                  ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2362, in execute

    return self._execute_internal(

           ^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal

    result: Result[Any] = compile_state_cls.orm_execute_statement(

                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement

    result = conn.execute(

             ^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute

    return meth(

           ^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection

    return connection._execute_clauseelement(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement

    ret = self._execute_context(

          ^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context

    return self._exec_single_context(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context

    self._handle_dbapi_exception(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception

    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context

    self.dialect.do_execute(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute

    cursor.execute(statement, parameters)

sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "dify_setups" does not exist

LINE 2: FROM dify_setups 

             ^

[SQL: SELECT dify_setups.version AS dify_setups_version, dify_setups.setup_at AS dify_setups_setup_at 

FROM dify_setups 

 LIMIT %(param_1)s]

[parameters: {'param_1': 1}]

(Background on this error at: https://sqlalche.me/e/20/f405)

2025-03-19 14:55:23.915 ERROR [Dummy-12] [app.py:875] - Exception on /console/api/account/profile [GET]

Traceback (most recent call last):

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context

    self.dialect.do_execute(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute

    cursor.execute(statement, parameters)

psycopg2.errors.UndefinedTable: relation "dify_setups" does not exist

LINE 2: FROM dify_setups 

             ^

The above exception was the direct cause of the following exception:

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_restful/__init__.py", line 489, 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_restful/__init__.py", line 604, in dispatch_request

    resp = meth(*args, **kwargs)

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/controllers/console/wraps.py", line 184, in decorated

    elif dify_config.EDITION == "SELF_HOSTED" and not db.session.query(DifySetup).first():

                                                      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2728, in first

    return self.limit(1)._iter().first()  # type: ignore

           ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter

    result: Union[ScalarResult[_T], Result[_T]] = self.session.execute(

                                                  ^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2362, in execute

    return self._execute_internal(

           ^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal

    result: Result[Any] = compile_state_cls.orm_execute_statement(

                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement

    result = conn.execute(

             ^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute

    return meth(

           ^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection

    return connection._execute_clauseelement(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement

    ret = self._execute_context(

          ^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context

    return self._exec_single_context(

           ^^^^^^^^^^^^^^^^^^^^^^^^^^

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context

    self._handle_dbapi_exception(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception

    raise sqlalchemy_exception.with_traceback(exc_info[2]) from e

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context

    self.dialect.do_execute(

  File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute

    cursor.execute(statement, parameters)

sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "dify_setups" does not exist

LINE 2: FROM dify_setups 

             ^

[SQL: SELECT dify_setups.version AS dify_setups_version, dify_setups.setup_at AS dify_setups_setup_at 

FROM dify_setups 

 LIMIT %(param_1)s]

[parameters: {'param_1': 1}]

(Background on this error at: https://sqlalche.me/e/20/f405)

Modify docker-compose.ymal, add
volumes:
plugin_daemon:

Modify in plugin_daemon part:
plugin_daemon:
volumes:
- plugin_daemon:/app/storage
depends_on:
- db

This will solve my problem

@Ador-able commented on GitHub (Mar 20, 2025): > > This issue should be fixed in the 1.0.1 version. > > For me, this issue still exists in version 1.1.0. > > ![Image](https://github.com/user-attachments/assets/0ea09106-89cc-4a2d-8459-24c31c82f5d3) > > I tried to modify it :PLUGIN_PYTHON_ENV_INIT_TIMEOUT=1200 > > Uninstall and reinstall plugins multiple times, clear Docker and Git folders, and clone and run again. Still unable to run > > ![Image](https://github.com/user-attachments/assets/8907f3b0-660f-4593-904b-d6aa6e3aa9c2) > > plugin:[ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 41 packages in 1.76s > > warning: Failed to hardlink files; falling back to full copy. This may lead to degraded performance. > > ``` > If the cache and target directories are on different filesystems, hardlinking may not be supported. > > If this is intentional, set `export UV_LINK_MODE=copy` or use `--link-mode=copy` to suppress this warning. > ``` > > init process exited due to no activity for 120 seconds, retry in 30s > > api: > > ``` > Exception on /console/api/workspaces/current [GET] > > Traceback (most recent call last): > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context > > self.dialect.do_execute( > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute > > cursor.execute(statement, parameters) > > psycopg2.errors.UndefinedTable: relation "dify_setups" does not exist > > LINE 2: FROM dify_setups > > ^ > > The above exception was the direct cause of the following exception: > > 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_restful/__init__.py", line 489, 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_restful/__init__.py", line 604, in dispatch_request > > resp = meth(*args, **kwargs) > > ^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/controllers/console/wraps.py", line 184, in decorated > > elif dify_config.EDITION == "SELF_HOSTED" and not db.session.query(DifySetup).first(): > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2728, in first > > return self.limit(1)._iter().first() # type: ignore > > ^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter > > result: Union[ScalarResult[_T], Result[_T]] = self.session.execute( > > ^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2362, in execute > > return self._execute_internal( > > ^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal > > result: Result[Any] = compile_state_cls.orm_execute_statement( > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement > > result = conn.execute( > > ^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute > > return meth( > > ^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection > > return connection._execute_clauseelement( > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement > > ret = self._execute_context( > > ^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context > > return self._exec_single_context( > > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context > > self._handle_dbapi_exception( > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception > > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context > > self.dialect.do_execute( > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute > > cursor.execute(statement, parameters) > > sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "dify_setups" does not exist > > LINE 2: FROM dify_setups > > ^ > > [SQL: SELECT dify_setups.version AS dify_setups_version, dify_setups.setup_at AS dify_setups_setup_at > > FROM dify_setups > > LIMIT %(param_1)s] > > [parameters: {'param_1': 1}] > > (Background on this error at: https://sqlalche.me/e/20/f405) > > 2025-03-19 14:55:23.915 ERROR [Dummy-12] [app.py:875] - Exception on /console/api/account/profile [GET] > > Traceback (most recent call last): > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context > > self.dialect.do_execute( > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute > > cursor.execute(statement, parameters) > > psycopg2.errors.UndefinedTable: relation "dify_setups" does not exist > > LINE 2: FROM dify_setups > > ^ > > The above exception was the direct cause of the following exception: > > 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_restful/__init__.py", line 489, 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_restful/__init__.py", line 604, in dispatch_request > > resp = meth(*args, **kwargs) > > ^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/controllers/console/wraps.py", line 184, in decorated > > elif dify_config.EDITION == "SELF_HOSTED" and not db.session.query(DifySetup).first(): > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2728, in first > > return self.limit(1)._iter().first() # type: ignore > > ^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/query.py", line 2827, in _iter > > result: Union[ScalarResult[_T], Result[_T]] = self.session.execute( > > ^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2362, in execute > > return self._execute_internal( > > ^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/session.py", line 2247, in _execute_internal > > result: Result[Any] = compile_state_cls.orm_execute_statement( > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/orm/context.py", line 305, in orm_execute_statement > > result = conn.execute( > > ^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1418, in execute > > return meth( > > ^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/sql/elements.py", line 515, in _execute_on_connection > > return connection._execute_clauseelement( > > ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1640, in _execute_clauseelement > > ret = self._execute_context( > > ^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1846, in _execute_context > > return self._exec_single_context( > > ^^^^^^^^^^^^^^^^^^^^^^^^^^ > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1986, in _exec_single_context > > self._handle_dbapi_exception( > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 2355, in _handle_dbapi_exception > > raise sqlalchemy_exception.with_traceback(exc_info[2]) from e > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/base.py", line 1967, in _exec_single_context > > self.dialect.do_execute( > > File "/app/api/.venv/lib/python3.12/site-packages/sqlalchemy/engine/default.py", line 941, in do_execute > > cursor.execute(statement, parameters) > > sqlalchemy.exc.ProgrammingError: (psycopg2.errors.UndefinedTable) relation "dify_setups" does not exist > > LINE 2: FROM dify_setups > > ^ > > [SQL: SELECT dify_setups.version AS dify_setups_version, dify_setups.setup_at AS dify_setups_setup_at > > FROM dify_setups > > LIMIT %(param_1)s] > > [parameters: {'param_1': 1}] > > (Background on this error at: https://sqlalche.me/e/20/f405) > ``` Modify docker-compose.ymal, add volumes: plugin_daemon: Modify in plugin_daemon part: plugin_daemon: volumes: - plugin_daemon:/app/storage depends_on: - db This will solve my problem
Author
Owner

@dreamofboy commented on GitHub (Mar 23, 2025):

都无法添加,哎,等修复bug,我尝试

We met the same issue with dify 1.1.2.
It failed while I tried to add a local Ollama model as well as the official deepseek-r1 api.

It returned the correct results while I ran curl http://ollama-server-ip-addr:11434/api/tags within the docker-api-1 container.

Image

I cannot get the right fix solution even I tried to add some env variables or increase the values for timeout.
Looks none from the team is taking care about this issue seriously.

@dreamofboy commented on GitHub (Mar 23, 2025): > 都无法添加,哎,等修复bug,我尝试 We met the same issue with dify 1.1.2. It failed while I tried to add a local Ollama model as well as the official deepseek-r1 api. It returned the correct results while I ran **curl http://ollama-server-ip-addr:11434/api/tags** within the **docker-api-1** container. ![Image](https://github.com/user-attachments/assets/e2b61f79-a63f-47dd-8d70-ca1c04474132) I cannot get the right fix solution even I tried to add some env variables or increase the values for timeout. Looks none from the team is taking care about this issue seriously.
Author
Owner

@Yeuoly commented on GitHub (Mar 24, 2025):

都无法添加,哎,等修复bug,我尝试

We met the same issue with dify 1.1.2. It failed while I tried to add a local Ollama model as well as the official deepseek-r1 api.

It returned the correct results while I ran curl http://ollama-server-ip-addr:11434/api/tags within the docker-api-1 container.

Image

I cannot get the right fix solution even I tried to add some env variables or increase the values for timeout. Looks none from the team is taking care about this issue seriously.

I cannot reproduce the issue you encountered, and I do not have the environment you are using now, any cloud like aws/ali cloud? or just local windows or macos? for me, everything works as expected

@Yeuoly commented on GitHub (Mar 24, 2025): > > 都无法添加,哎,等修复bug,我尝试 > > We met the same issue with dify 1.1.2. It failed while I tried to add a local Ollama model as well as the official deepseek-r1 api. > > It returned the correct results while I ran **curl http://ollama-server-ip-addr:11434/api/tags** within the **docker-api-1** container. > > ![Image](https://github.com/user-attachments/assets/e2b61f79-a63f-47dd-8d70-ca1c04474132) > > I cannot get the right fix solution even I tried to add some env variables or increase the values for timeout. Looks none from the team is taking care about this issue seriously. I cannot reproduce the issue you encountered, and I do not have the environment you are using now, any cloud like aws/ali cloud? or just local windows or macos? for me, everything works as expected
Author
Owner

@dreamofboy commented on GitHub (Mar 24, 2025):

dows or macos? for me, everythi

just a local VM running ubuntu 24.04 and installed dify with docker compose.
ollama was installed at another container out of the VM.

@dreamofboy commented on GitHub (Mar 24, 2025): > dows or macos? for me, everythi just a local VM running ubuntu 24.04 and installed dify with docker compose. ollama was installed at another container out of the VM.
Author
Owner

@dreamofboy commented on GitHub (Mar 24, 2025):

Even though I uncommented the line in .env: PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple
I met the same issue.

But when I tried to add model in ollama again. It's saved successfully.

dify:~/dify-1.1.2/docker$ sudo **docker compose logs api**
[sudo] password for myname: 
api-1  | Running migrations
api-1  | 2025-03-24 12:23:29.406 INFO [MainThread] [utils.py:162] - NumExpr defaulting to 6 threads.
api-1  | /app/api/.venv/lib/python3.12/site-packages/opik/evaluation/metrics/heuristics/regex_match.py:8: SyntaxWarning: invalid escape sequence '\d'
api-1  |   """
api-1  | Preparing database migration...
api-1  | Database migration skipped
api-1  | [2025-03-24 12:23:49 +0000] [1] [INFO] Starting gunicorn 23.0.0
api-1  | [2025-03-24 12:23:49 +0000] [1] [INFO] Listening at: http://0.0.0.0:5001 (1)
api-1  | [2025-03-24 12:23:49 +0000] [1] [INFO] Using worker: gevent
api-1  | [2025-03-24 12:23:49 +0000] [24] [INFO] Booting worker with pid: 24
api-1  | 2025-03-24 12:23:52.453 INFO [MainThread] [utils.py:162] - NumExpr defaulting to 6 threads.
api-1  | 2025-03-24 12:25:21.022 INFO [Dummy-1] [_client.py:1038] - HTTP Request: GET https://marketplace.dify.ai/api/v1/plugins/download?unique_identifier=langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7 "HTTP/1.1 200 OK"
api-1  | 2025-03-24 12:37:12.860 ERROR [Dummy-2] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/ollama/ollama/models [POST]
api-1  | Traceback (most recent call last):
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request
api-1  |     rv = self.dispatch_request()
api-1  |          ^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request
api-1  |     return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)  # type: ignore[no-any-return]
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper
api-1  |     resp = resource(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view
api-1  |     return current_app.ensure_sync(self.dispatch_request)(**kwargs)  # type: ignore[no-any-return]
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request
api-1  |     resp = meth(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/controllers/console/wraps.py", line 187, in decorated
api-1  |     return view(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/libs/login.py", line 94, in decorated_view
api-1  |     return current_app.ensure_sync(func)(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/controllers/console/wraps.py", line 30, in decorated
api-1  |     return view(*args, **kwargs)
api-1  |            ^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/controllers/console/workspace/models.py", line 154, in post
api-1  |     model_provider_service.save_model_credentials(
api-1  |   File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials
api-1  |     provider_configuration.add_or_update_custom_model_credentials(
api-1  |   File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials
api-1  |     provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials)
api-1  |                                          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate
api-1  |     credentials = model_provider_factory.model_credentials_validate(
api-1  |                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
api-1  |   File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate
api-1  |     self.plugin_model_manager.validate_model_credentials(
api-1  |   File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials
api-1  |     for resp in response:
api-1  |                 ^^^^^^^^
api-1  |   File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream
api-1  |     self._handle_plugin_daemon_error(error.error_type, error.message)
api-1  |   File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error
api-1  |     raise PluginDaemonInternalServerError(description=message)
api-1  | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout
plugin_daemon-1  | 2025/03/24 12:23:09 pool.go:32: [INFO]init routine pool, size: 10000
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:23:09 /app/internal/db/init.go:17
plugin_daemon-1  | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=dify_plugin`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:23:09 /app/internal/db/init.go:21
plugin_daemon-1  | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)
plugin_daemon-1  | 2025/03/24 12:23:09 init.go:144: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)
plugin_daemon-1  | panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused))
plugin_daemon-1  | 
plugin_daemon-1  | goroutine 1 [running]:
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x16d5294, 0x5}, {0x170423d?, 0x7?}, 0x1, {0xc0006bfd00, 0x1, 0x1})
plugin_daemon-1  | 	/app/internal/utils/log/log.go:40 +0x326
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...)
plugin_daemon-1  | 	/app/internal/utils/log/log.go:66
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?)
plugin_daemon-1  | 	/app/internal/db/init.go:144 +0xde
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc0001160d8, 0xc0005ce708)
plugin_daemon-1  | 	/app/internal/server/server.go:67 +0xd2
plugin_daemon-1  | main.main()
plugin_daemon-1  | 	/app/cmd/server/main.go:28 +0xff
plugin_daemon-1  | 2025/03/24 12:23:15 pool.go:32: [INFO]init routine pool, size: 10000
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:23:15 /app/internal/db/init.go:17
plugin_daemon-1  | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=dify_plugin`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:23:15 /app/internal/db/init.go:21
plugin_daemon-1  | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)
plugin_daemon-1  | 2025/03/24 12:23:15 init.go:144: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)
plugin_daemon-1  | panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused))
plugin_daemon-1  | 
plugin_daemon-1  | goroutine 1 [running]:
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x16d5294, 0x5}, {0x170423d?, 0x7?}, 0x1, {0xc0006bfd00, 0x1, 0x1})
plugin_daemon-1  | 	/app/internal/utils/log/log.go:40 +0x326
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...)
plugin_daemon-1  | 	/app/internal/utils/log/log.go:66
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?)
plugin_daemon-1  | 	/app/internal/db/init.go:144 +0xde
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc0000100d8, 0xc000005888)
plugin_daemon-1  | 	/app/internal/server/server.go:67 +0xd2
plugin_daemon-1  | main.main()
plugin_daemon-1  | 	/app/cmd/server/main.go:28 +0xff
plugin_daemon-1  | 2025/03/24 12:23:17 pool.go:32: [INFO]init routine pool, size: 10000
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:23:17 /app/internal/db/init.go:17
plugin_daemon-1  | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=dify_plugin`: server error (FATAL: the database system is starting up (SQLSTATE 57P03))
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:23:17 /app/internal/db/init.go:21
plugin_daemon-1  | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: server error (FATAL: the database system is starting up (SQLSTATE 57P03))
plugin_daemon-1  | 2025/03/24 12:23:17 init.go:144: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: server error (FATAL: the database system is starting up (SQLSTATE 57P03))
plugin_daemon-1  | panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: server error (FATAL: the database system is starting up (SQLSTATE 57P03))%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: server error (FATAL: the database system is starting up (SQLSTATE 57P03)))
plugin_daemon-1  | 
plugin_daemon-1  | goroutine 1 [running]:
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x16d5294, 0x5}, {0x170423d?, 0x7?}, 0x1, {0xc0006bfd00, 0x1, 0x1})
plugin_daemon-1  | 	/app/internal/utils/log/log.go:40 +0x326
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...)
plugin_daemon-1  | 	/app/internal/utils/log/log.go:66
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?)
plugin_daemon-1  | 	/app/internal/db/init.go:144 +0xde
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc0001160c0, 0xc0006d5c08)
plugin_daemon-1  | 	/app/internal/server/server.go:67 +0xd2
plugin_daemon-1  | main.main()
plugin_daemon-1  | 	/app/cmd/server/main.go:28 +0xff
plugin_daemon-1  | 2025/03/24 12:23:18 pool.go:32: [INFO]init routine pool, size: 10000
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:23:18 /app/internal/db/init.go:17
plugin_daemon-1  | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=dify_plugin`: server error (FATAL: database "dify_plugin" does not exist (SQLSTATE 3D000))
plugin_daemon-1  | 2025/03/24 12:23:19 init.go:152: [INFO]dify plugin db initialized
plugin_daemon-1  | 2025/03/24 12:23:19 manager.go:159: [INFO]start plugin manager daemon...
plugin_daemon-1  | 2025/03/24 12:23:19 init.go:19: [INFO]Persistence initialized
plugin_daemon-1  | 2025/03/24 12:23:19 watcher.go:16: [INFO]start to handle new plugins in path: plugin
plugin_daemon-1  | [gnet] 2025-03-24T12:23:19.741809028Z	INFO	logging/logger.go:256	Launching gnet with 8 event-loops, listening on: tcp://0.0.0.0:5003
plugin_daemon-1  | 2025/03/24 12:23:20 cluster_lifetime.go:113: [INFO]current node has become the master of the cluster
plugin_daemon-1  | [GIN] 2025/03/24 - 12:24:56 | 200 |    10.74255ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:24:56 | 200 |    9.969563ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:24:56 | 200 |     508.854µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:24:56 | 200 |     488.664µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:24:56 | 200 |    2.972764ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |     637.833µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |     570.633µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |     394.707µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |     336.131µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |     403.162µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |     361.946µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |     491.108µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |     993.759µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:08 | 200 |   10.455199ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:17 | 200 |    3.555751ms |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/installation/fetch/batch"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:17 | 200 |     453.144µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:17 | 200 |     269.098µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:17 | 200 |     320.207µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:25:19 /app/internal/db/pgsql.go:259 record not found
plugin_daemon-1  | [2.225ms] [rows:0] SELECT * FROM "plugin_declarations" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' ORDER BY "plugin_declarations"."id" LIMIT 1
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:19 | 200 |    2.950271ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/fetch/manifest?plugin_unique_identifier=langgenius%2Follama%3A0.0.3%409ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7"
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:25:21 /app/internal/db/pgsql.go:259 record not found
plugin_daemon-1  | [0.646ms] [rows:0] SELECT * FROM "plugin_declarations" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' ORDER BY "plugin_declarations"."id" LIMIT 1
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:21 | 200 |   64.041988ms |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/upload/package"
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:25:21 /app/internal/db/pgsql.go:259 record not found
plugin_daemon-1  | [1.206ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' ORDER BY "plugins"."id" LIMIT 1
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:21 | 200 |    4.914291ms |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/identifiers"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:21 | 200 |      675.43µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/fae3ee2b-6a25-4992-bfd6-9c9bdbedea82"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:21 | 200 |     608.125µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | 2025/03/24 12:25:21 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/ollama:0.0.3
plugin_daemon-1  | 2025/03/24 12:25:21 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:26 | 200 |     607.493µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:31 | 200 |    1.600613ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/fae3ee2b-6a25-4992-bfd6-9c9bdbedea82"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:32 | 200 |     515.928µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:37 | 200 |     642.393µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:42 | 200 |     653.094µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/fae3ee2b-6a25-4992-bfd6-9c9bdbedea82"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:42 | 200 |     469.235µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:47 | 200 |      566.13µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:50 | 200 |     467.288µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:50 | 200 |     236.392µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:50 | 200 |     278.597µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:50 | 200 |     316.189µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:50 | 200 |     462.973µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:55 | 200 |     542.756µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |     392.577µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |     372.683µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |     420.216µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |     322.456µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |     633.627µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |   10.647459ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |     374.575µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |     234.441µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:25:56 | 200 |     213.977µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:01 | 200 |     543.811µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:06 | 200 |     536.501µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:06 | 200 |    3.243999ms |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/installation/fetch/batch"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:06 | 200 |      355.29µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:06 | 200 |     205.076µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:06 | 200 |     415.556µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:08 | 200 |     346.209µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/fetch/manifest?plugin_unique_identifier=langgenius%2Follama%3A0.0.3%409ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7"
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:26:08 /app/internal/db/pgsql.go:259 record not found
plugin_daemon-1  | [0.579ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' ORDER BY "plugins"."id" LIMIT 1
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:08 | 200 |    1.971623ms |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/identifiers"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:08 | 200 |     440.373µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/886bb964-3f8b-4019-b1e3-4df68eb37e4f"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:08 | 200 |     416.914µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:26:08 /app/internal/db/pgsql.go:259 record not found
plugin_daemon-1  | [0.695ms] [rows:0] SELECT * FROM "plugin_installations" WHERE plugin_id = 'langgenius/ollama' AND tenant_id = '7d2a1490-76c5-4197-b548-ee84f724cf88' ORDER BY "plugin_installations"."id" LIMIT 1
plugin_daemon-1  | 
plugin_daemon-1  | 2025/03/24 12:26:08 /app/internal/db/pgsql.go:259 record not found
plugin_daemon-1  | [1.135ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' AND plugin_id = 'langgenius/ollama' AND install_type = 'local' ORDER BY "plugins"."id" LIMIT 1 FOR UPDATE
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:13 | 200 |     663.024µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:18 | 200 |     783.596µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/886bb964-3f8b-4019-b1e3-4df68eb37e4f"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:18 | 200 |     427.348µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:23 | 200 |     608.957µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:28 | 200 |     574.735µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:33 | 200 |     522.975µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:38 | 200 |     596.328µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:38 | 200 |      402.34µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:38 | 200 |     1.08071ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:38 | 200 |     417.017µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:38 | 200 |     460.156µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     555.042µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     113.277µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/asset/bfff83a66922c09cb5a5aa68829742b8b4f4e818579db42f53c7b8a30912cd8b.svg"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     411.101µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     723.965µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     294.908µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     311.216µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     241.433µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     455.304µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     368.542µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     362.025µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:42 | 200 |     297.308µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:43 | 200 |     452.379µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:48 | 200 |     487.171µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:53 | 200 |     579.879µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:26:58 | 200 |     612.528µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:03 | 200 |     488.468µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:08 | 200 |     498.411µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:12 | 200 |     568.023µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:13 | 200 |     417.937µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:18 | 200 |     570.923µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:23 | 200 |     490.227µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:28 | 200 |     478.818µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:33 | 200 |     524.321µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:38 | 200 |     490.354µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:43 | 200 |     534.446µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:48 | 200 |     559.191µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:53 | 200 |      480.95µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | 2025/03/24 12:27:57 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 38 packages in 32.65s
plugin_daemon-1  | Downloading setuptools (1.2MiB)
plugin_daemon-1  | Downloading numpy (15.3MiB)
plugin_daemon-1  | Downloading gevent (6.4MiB)
plugin_daemon-1  | init process exited due to no activity for 120 seconds, retry in 30s
plugin_daemon-1  | [GIN] 2025/03/24 - 12:27:58 | 200 |       529.9µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:03 | 200 |     523.915µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:08 | 200 |     372.426µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:13 | 200 |      500.56µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:18 | 200 |     523.441µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:23 | 200 |     508.547µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | 2025/03/24 12:28:27 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:28 | 200 |      514.79µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:33 | 200 |     473.386µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:38 | 200 |     471.677µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:43 | 200 |     507.599µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:48 | 200 |     489.118µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:53 | 200 |     504.925µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:28:58 | 200 |     518.263µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:03 | 200 |     519.434µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:08 | 200 |     528.966µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:13 | 200 |     517.068µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:18 | 200 |      479.75µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:23 | 200 |     525.175µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:23 | 200 |     471.236µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:23 | 200 |     344.216µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:23 | 200 |     370.578µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 12:29:23 | 200 |   10.277582ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | 2025/03/24 12:30:32 runtime_lifetime.go:42: [INFO]plugin langgenius/ollama:0.0.3 has exited
plugin_daemon-1  | 2025/03/24 12:30:49 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/ollama:0.0.3
plugin_daemon-1  | 2025/03/24 12:30:49 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3
plugin_daemon-1  | 2025/03/24 12:32:54 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 38 packages in 24ms
plugin_daemon-1  | Downloading setuptools (1.2MiB)
plugin_daemon-1  | Downloading gevent (6.4MiB)
plugin_daemon-1  | Downloading numpy (15.3MiB)
plugin_daemon-1  | init process exited due to no activity for 120 seconds, retry in 30s
plugin_daemon-1  | 2025/03/24 12:33:24 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3
plugin_daemon-1  | 2025/03/24 12:35:29 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 38 packages in 23ms
plugin_daemon-1  | Downloading setuptools (1.2MiB)
plugin_daemon-1  | Downloading gevent (6.4MiB)
plugin_daemon-1  | Downloading numpy (15.3MiB)
plugin_daemon-1  | init process exited due to no activity for 120 seconds, retry in 30s
plugin_daemon-1  | 2025/03/24 12:35:59 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3
plugin_daemon-1  | 2025/03/24 12:37:12 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout
plugin_daemon-1  | goroutine 283 [running]:
plugin_daemon-1  | runtime/debug.Stack()
plugin_daemon-1  | 	/usr/local/go/src/runtime/debug/stack.go:24 +0x5e
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x18f2f20, 0xc000420300})
plugin_daemon-1  | 	/app/internal/types/exception/factory.go:27 +0x27
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc00080b0a0, 0x16d5406, 0x258?)
plugin_daemon-1  | 	/app/internal/service/base_sse.go:81 +0x4e6
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/service.ValidateModelCredentials(0xc000614780, 0xc0005be800, 0x258)
plugin_daemon-1  | 	/app/internal/service/invoke_model.go:237 +0x198
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18.1({{{0xc0006e270d, 0x24}, {0xc0002d86e0, 0x7}}, {{0x0, 0x0}}, {0xc000120b40, 0x58}, 0x0, 0x0, ...})
plugin_daemon-1  | 	/app/internal/server/controllers/model.go:111 +0x91
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1()
plugin_daemon-1  | 	/app/internal/server/controllers/base.go:53 +0xb5
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0005be800, 0xc00080b328)
plugin_daemon-1  | 	/app/internal/server/controllers/base.go:31 +0x276
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x16e243d?, 0xa?)
plugin_daemon-1  | 	/app/internal/server/controllers/base.go:37 +0x45
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18(0xc0005be800)
plugin_daemon-1  | 	/app/internal/server/controllers/model.go:108 +0x74
plugin_daemon-1  | github.com/gin-gonic/gin.(*Context).Next(0xc0005be800)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc0005be800)
plugin_daemon-1  | 	/app/internal/server/middleware.go:170 +0x54
plugin_daemon-1  | github.com/gin-gonic/gin.(*Context).Next(0xc0005be800)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc0005be800)
plugin_daemon-1  | 	/app/internal/server/middleware.go:97 +0x74
plugin_daemon-1  | github.com/gin-gonic/gin.(*Context).Next(0xc0005be800)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc0005be800)
plugin_daemon-1  | 	/app/internal/server/middleware.go:66 +0x2f2
plugin_daemon-1  | github.com/gin-gonic/gin.(*Context).Next(0xc0005be800)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b
plugin_daemon-1  | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc0005be800)
plugin_daemon-1  | 	/app/internal/server/middleware.go:24 +0x95
plugin_daemon-1  | github.com/gin-gonic/gin.(*Context).Next(...)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
plugin_daemon-1  | github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0005be800)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a
plugin_daemon-1  | github.com/gin-gonic/gin.(*Context).Next(...)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
plugin_daemon-1  | github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc0005be800)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5
plugin_daemon-1  | github.com/gin-gonic/gin.(*Context).Next(...)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185
plugin_daemon-1  | github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0005cc000, 0xc0005be800)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892
plugin_daemon-1  | github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005cc000, {0x1905500, 0xc0003ce460}, 0xc00017cb40)
plugin_daemon-1  | 	/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2
plugin_daemon-1  | net/http.serverHandler.ServeHTTP({0x18fb268?}, {0x1905500?, 0xc0003ce460?}, 0x6?)
plugin_daemon-1  | 	/usr/local/go/src/net/http/server.go:3142 +0x8e
plugin_daemon-1  | net/http.(*conn).serve(0xc00011f200, {0x1907cf0, 0xc0001d1050})
plugin_daemon-1  | 	/usr/local/go/src/net/http/server.go:2044 +0x5e8
plugin_daemon-1  | created by net/http.(*Server).Serve in goroutine 27
plugin_daemon-1  | 	/usr/local/go/src/net/http/server.go:3290 +0x4b4
plugin_daemon-1  | 
plugin_daemon-1  | [GIN] 2025/03/24 - 12:37:12 | 200 |         10m0s |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/dispatch/model/validate_model_credentials"
plugin_daemon-1  | 2025/03/24 12:38:14 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 38 packages in 5.11s
plugin_daemon-1  | Downloading setuptools (1.2MiB)
plugin_daemon-1  | Downloading numpy (15.3MiB)
plugin_daemon-1  | Downloading gevent (6.4MiB)
plugin_daemon-1  | init process exited due to no activity for 120 seconds, retry in 30s
plugin_daemon-1  | 2025/03/24 12:38:44 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3
plugin_daemon-1  | 2025/03/24 12:41:45 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Listing '.'......
plugin_daemon-1  | 2025/03/24 12:41:45 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/dify_plugin/config/config.py'......
plugin_daemon-1  | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/dify_plugin/interfaces/model/speech2text_model.py'......
plugin_daemon-1  | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/dpkt/tns.py'......
plugin_daemon-1  | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/gevent/testing/exception.py'......
plugin_daemon-1  | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/gevent/tests/test__issue467.py'......
plugin_daemon-1  | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/greenlet/tests/fail_switch_three_greenlets2.py'......
plugin_daemon-1  | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Listing './.venv/lib/python3.12/site-packages/httpx-0.27.2.dist-info/licenses'......
plugin_daemon-1  | 2025/03/24 12:41:47 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/_core/tests/test_abc.py'......
plugin_daemon-1  | 2025/03/24 12:41:47 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/compat/__init__.py'......
plugin_daemon-1  | 2025/03/24 12:41:48 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/f2py/tests/test_regression.py'......
plugin_daemon-1  | 2025/03/24 12:41:48 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/ma/tests/test_extras.py'......
plugin_daemon-1  | 2025/03/24 12:41:48 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/typing/mypy_plugin.py'......
plugin_daemon-1  | 2025/03/24 12:41:48 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/pydantic/_internal/_utils.py'......
plugin_daemon-1  | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/pydub/utils.py'......
plugin_daemon-1  | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Listing './.venv/lib/python3.12/site-packages/setuptools/_distutils/tests/compat'......
plugin_daemon-1  | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_vendor/inflect/__init__.py'......
plugin_daemon-1  | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/convert.py'......
plugin_daemon-1  | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Listing './.venv/lib/python3.12/site-packages/setuptools/tests'......
plugin_daemon-1  | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/tiktoken/core.py'......
plugin_daemon-1  | 2025/03/24 12:41:50 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/werkzeug/utils.py'......
plugin_daemon-1  | 2025/03/24 12:41:50 environment_python.go:320: [INFO]pre-loaded the plugin langgenius/ollama:0.0.3
plugin_daemon-1  | 2025/03/24 12:41:51 run.go:143: [INFO]plugin langgenius/ollama:0.0.3 started
plugin_daemon-1  | 2025/03/24 12:41:52 stdio_handle.go:128: [INFO]plugin langgenius/ollama:0.0.3: Installed model: ollama
plugin_daemon-1  | [GIN] 2025/03/24 - 13:07:59 | 200 |   11.109684ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100"
plugin_daemon-1  | [GIN] 2025/03/24 - 13:08:03 | 200 |    6.051814ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 13:08:08 | 200 |  4.200631658s |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/dispatch/model/validate_model_credentials"
plugin_daemon-1  | [GIN] 2025/03/24 - 13:08:08 | 200 |     708.113µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 13:08:08 | 200 |      508.79µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 13:08:08 | 200 |   10.540423ms |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 13:08:08 | 200 |    7.481477ms |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/dispatch/model/schema"
plugin_daemon-1  | [GIN] 2025/03/24 - 13:08:58 | 200 |     706.569µs |      172.18.0.8 | GET      "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256"
plugin_daemon-1  | [GIN] 2025/03/24 - 13:08:58 | 200 |    3.378068ms |      172.18.0.8 | POST     "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/dispatch/model/schema"
@dreamofboy commented on GitHub (Mar 24, 2025): Even though I uncommented the line in .env: PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple I met the same issue. But when I tried to add model in ollama again. It's saved successfully. ``` dify:~/dify-1.1.2/docker$ sudo **docker compose logs api** [sudo] password for myname: api-1 | Running migrations api-1 | 2025-03-24 12:23:29.406 INFO [MainThread] [utils.py:162] - NumExpr defaulting to 6 threads. api-1 | /app/api/.venv/lib/python3.12/site-packages/opik/evaluation/metrics/heuristics/regex_match.py:8: SyntaxWarning: invalid escape sequence '\d' api-1 | """ api-1 | Preparing database migration... api-1 | Database migration skipped api-1 | [2025-03-24 12:23:49 +0000] [1] [INFO] Starting gunicorn 23.0.0 api-1 | [2025-03-24 12:23:49 +0000] [1] [INFO] Listening at: http://0.0.0.0:5001 (1) api-1 | [2025-03-24 12:23:49 +0000] [1] [INFO] Using worker: gevent api-1 | [2025-03-24 12:23:49 +0000] [24] [INFO] Booting worker with pid: 24 api-1 | 2025-03-24 12:23:52.453 INFO [MainThread] [utils.py:162] - NumExpr defaulting to 6 threads. api-1 | 2025-03-24 12:25:21.022 INFO [Dummy-1] [_client.py:1038] - HTTP Request: GET https://marketplace.dify.ai/api/v1/plugins/download?unique_identifier=langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7 "HTTP/1.1 200 OK" api-1 | 2025-03-24 12:37:12.860 ERROR [Dummy-2] [app.py:875] - Exception on /console/api/workspaces/current/model-providers/langgenius/ollama/ollama/models [POST] api-1 | Traceback (most recent call last): api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 917, in full_dispatch_request api-1 | rv = self.dispatch_request() api-1 | ^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/app.py", line 902, in dispatch_request api-1 | return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 489, in wrapper api-1 | resp = resource(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask/views.py", line 110, in view api-1 | return current_app.ensure_sync(self.dispatch_request)(**kwargs) # type: ignore[no-any-return] api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/.venv/lib/python3.12/site-packages/flask_restful/__init__.py", line 604, in dispatch_request api-1 | resp = meth(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 187, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/libs/login.py", line 94, in decorated_view api-1 | return current_app.ensure_sync(func)(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/wraps.py", line 30, in decorated api-1 | return view(*args, **kwargs) api-1 | ^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/controllers/console/workspace/models.py", line 154, in post api-1 | model_provider_service.save_model_credentials( api-1 | File "/app/api/services/model_provider_service.py", line 237, in save_model_credentials api-1 | provider_configuration.add_or_update_custom_model_credentials( api-1 | File "/app/api/core/entities/provider_configuration.py", line 422, in add_or_update_custom_model_credentials api-1 | provider_model_record, credentials = self.custom_model_credentials_validate(model_type, model, credentials) api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/entities/provider_configuration.py", line 402, in custom_model_credentials_validate api-1 | credentials = model_provider_factory.model_credentials_validate( api-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ api-1 | File "/app/api/core/model_runtime/model_providers/model_provider_factory.py", line 191, in model_credentials_validate api-1 | self.plugin_model_manager.validate_model_credentials( api-1 | File "/app/api/core/plugin/manager/model.py", line 137, in validate_model_credentials api-1 | for resp in response: api-1 | ^^^^^^^^ api-1 | File "/app/api/core/plugin/manager/base.py", line 189, in _request_with_plugin_daemon_response_stream api-1 | self._handle_plugin_daemon_error(error.error_type, error.message) api-1 | File "/app/api/core/plugin/manager/base.py", line 223, in _handle_plugin_daemon_error api-1 | raise PluginDaemonInternalServerError(description=message) api-1 | core.plugin.manager.exc.PluginDaemonInternalServerError: PluginDaemonInternalServerError: killed by timeout ``` ``` plugin_daemon-1 | 2025/03/24 12:23:09 pool.go:32: [INFO]init routine pool, size: 10000 plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:23:09 /app/internal/db/init.go:17 plugin_daemon-1 | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=dify_plugin`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused) plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:23:09 /app/internal/db/init.go:21 plugin_daemon-1 | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused) plugin_daemon-1 | 2025/03/24 12:23:09 init.go:144: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused) plugin_daemon-1 | panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)) plugin_daemon-1 | plugin_daemon-1 | goroutine 1 [running]: plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x16d5294, 0x5}, {0x170423d?, 0x7?}, 0x1, {0xc0006bfd00, 0x1, 0x1}) plugin_daemon-1 | /app/internal/utils/log/log.go:40 +0x326 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...) plugin_daemon-1 | /app/internal/utils/log/log.go:66 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?) plugin_daemon-1 | /app/internal/db/init.go:144 +0xde plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc0001160d8, 0xc0005ce708) plugin_daemon-1 | /app/internal/server/server.go:67 +0xd2 plugin_daemon-1 | main.main() plugin_daemon-1 | /app/cmd/server/main.go:28 +0xff plugin_daemon-1 | 2025/03/24 12:23:15 pool.go:32: [INFO]init routine pool, size: 10000 plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:23:15 /app/internal/db/init.go:17 plugin_daemon-1 | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=dify_plugin`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused) plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:23:15 /app/internal/db/init.go:21 plugin_daemon-1 | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused) plugin_daemon-1 | 2025/03/24 12:23:15 init.go:144: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused) plugin_daemon-1 | panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: dial error (dial tcp 172.18.0.3:5432: connect: connection refused)) plugin_daemon-1 | plugin_daemon-1 | goroutine 1 [running]: plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x16d5294, 0x5}, {0x170423d?, 0x7?}, 0x1, {0xc0006bfd00, 0x1, 0x1}) plugin_daemon-1 | /app/internal/utils/log/log.go:40 +0x326 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...) plugin_daemon-1 | /app/internal/utils/log/log.go:66 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?) plugin_daemon-1 | /app/internal/db/init.go:144 +0xde plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc0000100d8, 0xc000005888) plugin_daemon-1 | /app/internal/server/server.go:67 +0xd2 plugin_daemon-1 | main.main() plugin_daemon-1 | /app/cmd/server/main.go:28 +0xff plugin_daemon-1 | 2025/03/24 12:23:17 pool.go:32: [INFO]init routine pool, size: 10000 plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:23:17 /app/internal/db/init.go:17 plugin_daemon-1 | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=dify_plugin`: server error (FATAL: the database system is starting up (SQLSTATE 57P03)) plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:23:17 /app/internal/db/init.go:21 plugin_daemon-1 | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=postgres`: server error (FATAL: the database system is starting up (SQLSTATE 57P03)) plugin_daemon-1 | 2025/03/24 12:23:17 init.go:144: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: server error (FATAL: the database system is starting up (SQLSTATE 57P03)) plugin_daemon-1 | panic: [PANIC]failed to init dify plugin db: failed to connect to `host=db user=postgres database=postgres`: server error (FATAL: the database system is starting up (SQLSTATE 57P03))%!(EXTRA *pgconn.ConnectError=failed to connect to `host=db user=postgres database=postgres`: server error (FATAL: the database system is starting up (SQLSTATE 57P03))) plugin_daemon-1 | plugin_daemon-1 | goroutine 1 [running]: plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/utils/log.writeLog({0x16d5294, 0x5}, {0x170423d?, 0x7?}, 0x1, {0xc0006bfd00, 0x1, 0x1}) plugin_daemon-1 | /app/internal/utils/log/log.go:40 +0x326 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/utils/log.Panic(...) plugin_daemon-1 | /app/internal/utils/log/log.go:66 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/db.Init(0x2710?) plugin_daemon-1 | /app/internal/db/init.go:144 +0xde plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).Run(0xc0001160c0, 0xc0006d5c08) plugin_daemon-1 | /app/internal/server/server.go:67 +0xd2 plugin_daemon-1 | main.main() plugin_daemon-1 | /app/cmd/server/main.go:28 +0xff plugin_daemon-1 | 2025/03/24 12:23:18 pool.go:32: [INFO]init routine pool, size: 10000 plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:23:18 /app/internal/db/init.go:17 plugin_daemon-1 | [error] failed to initialize database, got error failed to connect to `host=db user=postgres database=dify_plugin`: server error (FATAL: database "dify_plugin" does not exist (SQLSTATE 3D000)) plugin_daemon-1 | 2025/03/24 12:23:19 init.go:152: [INFO]dify plugin db initialized plugin_daemon-1 | 2025/03/24 12:23:19 manager.go:159: [INFO]start plugin manager daemon... plugin_daemon-1 | 2025/03/24 12:23:19 init.go:19: [INFO]Persistence initialized plugin_daemon-1 | 2025/03/24 12:23:19 watcher.go:16: [INFO]start to handle new plugins in path: plugin plugin_daemon-1 | [gnet] 2025-03-24T12:23:19.741809028Z INFO logging/logger.go:256 Launching gnet with 8 event-loops, listening on: tcp://0.0.0.0:5003 plugin_daemon-1 | 2025/03/24 12:23:20 cluster_lifetime.go:113: [INFO]current node has become the master of the cluster plugin_daemon-1 | [GIN] 2025/03/24 - 12:24:56 | 200 | 10.74255ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:24:56 | 200 | 9.969563ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:24:56 | 200 | 508.854µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:24:56 | 200 | 488.664µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:24:56 | 200 | 2.972764ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 637.833µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 570.633µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 394.707µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 336.131µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 403.162µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 361.946µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 491.108µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 993.759µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:08 | 200 | 10.455199ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:17 | 200 | 3.555751ms | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/installation/fetch/batch" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:17 | 200 | 453.144µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:17 | 200 | 269.098µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:17 | 200 | 320.207µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:25:19 /app/internal/db/pgsql.go:259 record not found plugin_daemon-1 | [2.225ms] [rows:0] SELECT * FROM "plugin_declarations" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' ORDER BY "plugin_declarations"."id" LIMIT 1 plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:19 | 200 | 2.950271ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/fetch/manifest?plugin_unique_identifier=langgenius%2Follama%3A0.0.3%409ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7" plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:25:21 /app/internal/db/pgsql.go:259 record not found plugin_daemon-1 | [0.646ms] [rows:0] SELECT * FROM "plugin_declarations" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' ORDER BY "plugin_declarations"."id" LIMIT 1 plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:21 | 200 | 64.041988ms | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/upload/package" plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:25:21 /app/internal/db/pgsql.go:259 record not found plugin_daemon-1 | [1.206ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' ORDER BY "plugins"."id" LIMIT 1 plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:21 | 200 | 4.914291ms | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/identifiers" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:21 | 200 | 675.43µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/fae3ee2b-6a25-4992-bfd6-9c9bdbedea82" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:21 | 200 | 608.125µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | 2025/03/24 12:25:21 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/ollama:0.0.3 plugin_daemon-1 | 2025/03/24 12:25:21 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3 plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:26 | 200 | 607.493µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:31 | 200 | 1.600613ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/fae3ee2b-6a25-4992-bfd6-9c9bdbedea82" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:32 | 200 | 515.928µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:37 | 200 | 642.393µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:42 | 200 | 653.094µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/fae3ee2b-6a25-4992-bfd6-9c9bdbedea82" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:42 | 200 | 469.235µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:47 | 200 | 566.13µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:50 | 200 | 467.288µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:50 | 200 | 236.392µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:50 | 200 | 278.597µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:50 | 200 | 316.189µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:50 | 200 | 462.973µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:55 | 200 | 542.756µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 392.577µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 372.683µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 420.216µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 322.456µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 633.627µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 10.647459ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 374.575µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 234.441µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:25:56 | 200 | 213.977µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:01 | 200 | 543.811µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:06 | 200 | 536.501µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:06 | 200 | 3.243999ms | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/installation/fetch/batch" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:06 | 200 | 355.29µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:06 | 200 | 205.076µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:06 | 200 | 415.556µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:08 | 200 | 346.209µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/fetch/manifest?plugin_unique_identifier=langgenius%2Follama%3A0.0.3%409ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7" plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:26:08 /app/internal/db/pgsql.go:259 record not found plugin_daemon-1 | [0.579ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' ORDER BY "plugins"."id" LIMIT 1 plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:08 | 200 | 1.971623ms | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/identifiers" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:08 | 200 | 440.373µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/886bb964-3f8b-4019-b1e3-4df68eb37e4f" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:08 | 200 | 416.914µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:26:08 /app/internal/db/pgsql.go:259 record not found plugin_daemon-1 | [0.695ms] [rows:0] SELECT * FROM "plugin_installations" WHERE plugin_id = 'langgenius/ollama' AND tenant_id = '7d2a1490-76c5-4197-b548-ee84f724cf88' ORDER BY "plugin_installations"."id" LIMIT 1 plugin_daemon-1 | plugin_daemon-1 | 2025/03/24 12:26:08 /app/internal/db/pgsql.go:259 record not found plugin_daemon-1 | [1.135ms] [rows:0] SELECT * FROM "plugins" WHERE plugin_unique_identifier = 'langgenius/ollama:0.0.3@9ded90ac00e8510119a24be7396ba77191c9610d5e1e29f59d68fa1229822fc7' AND plugin_id = 'langgenius/ollama' AND install_type = 'local' ORDER BY "plugins"."id" LIMIT 1 FOR UPDATE plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:13 | 200 | 663.024µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:18 | 200 | 783.596µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks/886bb964-3f8b-4019-b1e3-4df68eb37e4f" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:18 | 200 | 427.348µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:23 | 200 | 608.957µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:28 | 200 | 574.735µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:33 | 200 | 522.975µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:38 | 200 | 596.328µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:38 | 200 | 402.34µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:38 | 200 | 1.08071ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:38 | 200 | 417.017µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:38 | 200 | 460.156µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 555.042µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 113.277µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/asset/bfff83a66922c09cb5a5aa68829742b8b4f4e818579db42f53c7b8a30912cd8b.svg" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 411.101µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 723.965µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 294.908µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 311.216µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 241.433µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 455.304µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 368.542µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 362.025µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:42 | 200 | 297.308µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:43 | 200 | 452.379µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:48 | 200 | 487.171µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:53 | 200 | 579.879µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:26:58 | 200 | 612.528µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:03 | 200 | 488.468µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:08 | 200 | 498.411µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:12 | 200 | 568.023µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:13 | 200 | 417.937µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:18 | 200 | 570.923µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:23 | 200 | 490.227µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:28 | 200 | 478.818µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:33 | 200 | 524.321µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:38 | 200 | 490.354µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:43 | 200 | 534.446µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:48 | 200 | 559.191µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:53 | 200 | 480.95µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | 2025/03/24 12:27:57 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 38 packages in 32.65s plugin_daemon-1 | Downloading setuptools (1.2MiB) plugin_daemon-1 | Downloading numpy (15.3MiB) plugin_daemon-1 | Downloading gevent (6.4MiB) plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s plugin_daemon-1 | [GIN] 2025/03/24 - 12:27:58 | 200 | 529.9µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:03 | 200 | 523.915µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:08 | 200 | 372.426µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:13 | 200 | 500.56µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:18 | 200 | 523.441µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:23 | 200 | 508.547µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | 2025/03/24 12:28:27 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3 plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:28 | 200 | 514.79µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:33 | 200 | 473.386µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:38 | 200 | 471.677µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:43 | 200 | 507.599µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:48 | 200 | 489.118µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:53 | 200 | 504.925µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:28:58 | 200 | 518.263µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:03 | 200 | 519.434µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:08 | 200 | 528.966µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:13 | 200 | 517.068µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:18 | 200 | 479.75µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:23 | 200 | 525.175µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:23 | 200 | 471.236µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:23 | 200 | 344.216µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:23 | 200 | 370.578µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 12:29:23 | 200 | 10.277582ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | 2025/03/24 12:30:32 runtime_lifetime.go:42: [INFO]plugin langgenius/ollama:0.0.3 has exited plugin_daemon-1 | 2025/03/24 12:30:49 runtime_lifetime.go:40: [INFO]new plugin logged in: langgenius/ollama:0.0.3 plugin_daemon-1 | 2025/03/24 12:30:49 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3 plugin_daemon-1 | 2025/03/24 12:32:54 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 38 packages in 24ms plugin_daemon-1 | Downloading setuptools (1.2MiB) plugin_daemon-1 | Downloading gevent (6.4MiB) plugin_daemon-1 | Downloading numpy (15.3MiB) plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s plugin_daemon-1 | 2025/03/24 12:33:24 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3 plugin_daemon-1 | 2025/03/24 12:35:29 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 38 packages in 23ms plugin_daemon-1 | Downloading setuptools (1.2MiB) plugin_daemon-1 | Downloading gevent (6.4MiB) plugin_daemon-1 | Downloading numpy (15.3MiB) plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s plugin_daemon-1 | 2025/03/24 12:35:59 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3 plugin_daemon-1 | 2025/03/24 12:37:12 factory.go:28: [ERROR]PluginDaemonInternalServerError: killed by timeout plugin_daemon-1 | goroutine 283 [running]: plugin_daemon-1 | runtime/debug.Stack() plugin_daemon-1 | /usr/local/go/src/runtime/debug/stack.go:24 +0x5e plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/types/exception.InternalServerError({0x18f2f20, 0xc000420300}) plugin_daemon-1 | /app/internal/types/exception/factory.go:27 +0x27 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.baseSSEService[...](0xc00080b0a0, 0x16d5406, 0x258?) plugin_daemon-1 | /app/internal/service/base_sse.go:81 +0x4e6 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/service.ValidateModelCredentials(0xc000614780, 0xc0005be800, 0x258) plugin_daemon-1 | /app/internal/service/invoke_model.go:237 +0x198 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18.1({{{0xc0006e270d, 0x24}, {0xc0002d86e0, 0x7}}, {{0x0, 0x0}}, {0xc000120b40, 0x58}, 0x0, 0x0, ...}) plugin_daemon-1 | /app/internal/server/controllers/model.go:111 +0x91 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...].func1() plugin_daemon-1 | /app/internal/server/controllers/base.go:53 +0xb5 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindRequest[...](0xc0005be800, 0xc00080b328) plugin_daemon-1 | /app/internal/server/controllers/base.go:31 +0x276 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server/controllers.BindPluginDispatchRequest[...](0x16e243d?, 0xa?) plugin_daemon-1 | /app/internal/server/controllers/base.go:37 +0x45 plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.ValidateModelCredentials.func18(0xc0005be800) plugin_daemon-1 | /app/internal/server/controllers/model.go:108 +0x74 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0005be800) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).InitClusterID.func3(0xc0005be800) plugin_daemon-1 | /app/internal/server/middleware.go:170 +0x54 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0005be800) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).RedirectPluginInvoke.func2(0xc0005be800) plugin_daemon-1 | /app/internal/server/middleware.go:97 +0x74 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0005be800) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginDispatchGroup.(*App).FetchPluginInstallation.func1(0xc0005be800) plugin_daemon-1 | /app/internal/server/middleware.go:66 +0x2f2 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(0xc0005be800) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 +0x2b plugin_daemon-1 | github.com/langgenius/dify-plugin-daemon/internal/server.(*App).pluginGroup.CheckingKey.func1(0xc0005be800) plugin_daemon-1 | /app/internal/server/middleware.go:24 +0x95 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 plugin_daemon-1 | github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0005be800) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 +0x7a plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 plugin_daemon-1 | github.com/gin-gonic/gin.LoggerWithConfig.func1(0xc0005be800) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 +0xe5 plugin_daemon-1 | github.com/gin-gonic/gin.(*Context).Next(...) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc0005cc000, 0xc0005be800) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 +0x892 plugin_daemon-1 | github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc0005cc000, {0x1905500, 0xc0003ce460}, 0xc00017cb40) plugin_daemon-1 | /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 +0x1b2 plugin_daemon-1 | net/http.serverHandler.ServeHTTP({0x18fb268?}, {0x1905500?, 0xc0003ce460?}, 0x6?) plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3142 +0x8e plugin_daemon-1 | net/http.(*conn).serve(0xc00011f200, {0x1907cf0, 0xc0001d1050}) plugin_daemon-1 | /usr/local/go/src/net/http/server.go:2044 +0x5e8 plugin_daemon-1 | created by net/http.(*Server).Serve in goroutine 27 plugin_daemon-1 | /usr/local/go/src/net/http/server.go:3290 +0x4b4 plugin_daemon-1 |  plugin_daemon-1 | [GIN] 2025/03/24 - 12:37:12 | 200 | 10m0s | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/dispatch/model/validate_model_credentials" plugin_daemon-1 | 2025/03/24 12:38:14 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: Resolved 38 packages in 5.11s plugin_daemon-1 | Downloading setuptools (1.2MiB) plugin_daemon-1 | Downloading numpy (15.3MiB) plugin_daemon-1 | Downloading gevent (6.4MiB) plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s plugin_daemon-1 | 2025/03/24 12:38:44 runtime_lifetime.go:70: [INFO]init environment for plugin langgenius/ollama:0.0.3 plugin_daemon-1 | 2025/03/24 12:41:45 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Listing '.'...... plugin_daemon-1 | 2025/03/24 12:41:45 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/dify_plugin/config/config.py'...... plugin_daemon-1 | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/dify_plugin/interfaces/model/speech2text_model.py'...... plugin_daemon-1 | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/dpkt/tns.py'...... plugin_daemon-1 | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/gevent/testing/exception.py'...... plugin_daemon-1 | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/gevent/tests/test__issue467.py'...... plugin_daemon-1 | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/greenlet/tests/fail_switch_three_greenlets2.py'...... plugin_daemon-1 | 2025/03/24 12:41:46 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Listing './.venv/lib/python3.12/site-packages/httpx-0.27.2.dist-info/licenses'...... plugin_daemon-1 | 2025/03/24 12:41:47 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/_core/tests/test_abc.py'...... plugin_daemon-1 | 2025/03/24 12:41:47 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/compat/__init__.py'...... plugin_daemon-1 | 2025/03/24 12:41:48 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/f2py/tests/test_regression.py'...... plugin_daemon-1 | 2025/03/24 12:41:48 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/ma/tests/test_extras.py'...... plugin_daemon-1 | 2025/03/24 12:41:48 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/numpy/typing/mypy_plugin.py'...... plugin_daemon-1 | 2025/03/24 12:41:48 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/pydantic/_internal/_utils.py'...... plugin_daemon-1 | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/pydub/utils.py'...... plugin_daemon-1 | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Listing './.venv/lib/python3.12/site-packages/setuptools/_distutils/tests/compat'...... plugin_daemon-1 | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_vendor/inflect/__init__.py'...... plugin_daemon-1 | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/setuptools/_vendor/wheel/cli/convert.py'...... plugin_daemon-1 | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Listing './.venv/lib/python3.12/site-packages/setuptools/tests'...... plugin_daemon-1 | 2025/03/24 12:41:49 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/tiktoken/core.py'...... plugin_daemon-1 | 2025/03/24 12:41:50 environment_python.go:287: [INFO]pre-compiling langgenius/ollama:0.0.3 - Compiling './.venv/lib/python3.12/site-packages/werkzeug/utils.py'...... plugin_daemon-1 | 2025/03/24 12:41:50 environment_python.go:320: [INFO]pre-loaded the plugin langgenius/ollama:0.0.3 plugin_daemon-1 | 2025/03/24 12:41:51 run.go:143: [INFO]plugin langgenius/ollama:0.0.3 started plugin_daemon-1 | 2025/03/24 12:41:52 stdio_handle.go:128: [INFO]plugin langgenius/ollama:0.0.3: Installed model: ollama plugin_daemon-1 | [GIN] 2025/03/24 - 13:07:59 | 200 | 11.109684ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/install/tasks?page=1&page_size=100" plugin_daemon-1 | [GIN] 2025/03/24 - 13:08:03 | 200 | 6.051814ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 13:08:08 | 200 | 4.200631658s | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/dispatch/model/validate_model_credentials" plugin_daemon-1 | [GIN] 2025/03/24 - 13:08:08 | 200 | 708.113µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 13:08:08 | 200 | 508.79µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 13:08:08 | 200 | 10.540423ms | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 13:08:08 | 200 | 7.481477ms | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/dispatch/model/schema" plugin_daemon-1 | [GIN] 2025/03/24 - 13:08:58 | 200 | 706.569µs | 172.18.0.8 | GET "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/management/models?page=1&page_size=256" plugin_daemon-1 | [GIN] 2025/03/24 - 13:08:58 | 200 | 3.378068ms | 172.18.0.8 | POST "/plugin/7d2a1490-76c5-4197-b548-ee84f724cf88/dispatch/model/schema" ```
Author
Owner

@easelify commented on GitHub (Mar 26, 2025):

I found logs for plugin-daemon plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s

Hi, pls try add an environment variable: PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple to you .env and restart your services, it should been fixed

This works, thanks!
Dify 1.1.3 on Aliyun ECS

@easelify commented on GitHub (Mar 26, 2025): > > I found logs for plugin-daemon plugin_daemon-1 | init process exited due to no activity for 120 seconds, retry in 30s > > Hi, pls try add an environment variable: `PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple` to you .env and restart your services, it should been fixed This works, thanks! Dify 1.1.3 on Aliyun ECS
Author
Owner

@MrPolong commented on GitHub (Mar 26, 2025):

问题:添加通义千问的API-KEY报超时。

我在检查日志时发现了这个错误,应该是plugin_daemon初始化环境时出现了问题。
plugin_daemon-1 | 2025/03/26 07:19:52 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s

猜测是在初始化Python环境,安装相关依赖时出现了问题,尝试修改pip源。
docker-comose.yaml文件中修改添加清华源

PIP_MIRROR_URL="https://pypi.tuna.tsinghua.edu.cn/simple"

成功解决问题

@MrPolong commented on GitHub (Mar 26, 2025): 问题:添加通义千问的API-KEY报超时。 我在检查日志时发现了这个错误,应该是`plugin_daemon`初始化环境时出现了问题。 ` plugin_daemon-1 | 2025/03/26 07:19:52 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s ` 猜测是在初始化Python环境,安装相关依赖时出现了问题,尝试修改pip源。 在`docker-comose.yaml`文件中修改添加清华源 ``` PIP_MIRROR_URL="https://pypi.tuna.tsinghua.edu.cn/simple"``` 成功解决问题
Author
Owner

@andylzming commented on GitHub (Apr 14, 2025):

问题:添加通义千问的API-KEY报超时。

我在检查日志时发现了这个错误,应该是plugin_daemon初始化环境时出现了问题。 plugin_daemon-1 | 2025/03/26 07:19:52 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s

猜测是在初始化Python环境,安装相关依赖时出现了问题,尝试修改pip源。 在docker-comose.yaml文件中修改添加清华源

PIP_MIRROR_URL="https://pypi.tuna.tsinghua.edu.cn/simple"

成功解决问题

请问离线环境如何解决?

@andylzming commented on GitHub (Apr 14, 2025): > 问题:添加通义千问的API-KEY报超时。 > > 我在检查日志时发现了这个错误,应该是`plugin_daemon`初始化环境时出现了问题。 `plugin_daemon-1 | 2025/03/26 07:19:52 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s` > > 猜测是在初始化Python环境,安装相关依赖时出现了问题,尝试修改pip源。 在`docker-comose.yaml`文件中修改添加清华源 > > ` PIP_MIRROR_URL="https://pypi.tuna.tsinghua.edu.cn/simple"` > > 成功解决问题 请问离线环境如何解决?
Author
Owner

@craftsman4j commented on GitHub (Apr 22, 2025):

我找到了 plugin-daemon plugin_daemon-1 的日志 | init 进程因 120 秒内无活动而退出,请在 30 秒后重试

你好,请尝试添加一个环境变量:PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple到你的 .env 并重新启动你的服务,它应该已经修复了

已成功解决!!!

@craftsman4j commented on GitHub (Apr 22, 2025): > > 我找到了 plugin-daemon plugin_daemon-1 的日志 | init 进程因 120 秒内无活动而退出,请在 30 秒后重试 > > 你好,请尝试添加一个环境变量:`PIP_MIRROR_URL=https://pypi.tuna.tsinghua.edu.cn/simple`到你的 .env 并重新启动你的服务,它应该已经修复了 已成功解决!!!
Author
Owner

@maijing274 commented on GitHub (Apr 26, 2025):

问题:添加通义千问的API-KEY报超时。
我在检查日志时发现了这个错误,应该是初始化环境时出现了问题。plugin_daemon``plugin_daemon-1 | 2025/03/26 07:19:52 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s
猜测是在初始化Python环境,安装相关依赖时出现了问题,尝试修改pip源。在文件中修改添加清华源docker-comose.yaml
PIP_MIRROR_URL="https://pypi.tuna.tsinghua.edu.cn/simple"
成功解决问题

请问离线环境如何解决?

你好请问解决了吗

@maijing274 commented on GitHub (Apr 26, 2025): > > 问题:添加通义千问的API-KEY报超时。 > > 我在检查日志时发现了这个错误,应该是初始化环境时出现了问题。`plugin_daemon``plugin_daemon-1 | 2025/03/26 07:19:52 runtime_lifetime.go:76: [ERROR]init environment failed: failed to install dependencies: signal: killed, output: init process exited due to no activity for 120 seconds, retry in 30s` > > 猜测是在初始化Python环境,安装相关依赖时出现了问题,尝试修改pip源。在文件中修改添加清华源`docker-comose.yaml` > > ` PIP_MIRROR_URL="https://pypi.tuna.tsinghua.edu.cn/simple"` > > 成功解决问题 > > 请问离线环境如何解决? 你好请问解决了吗
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#8838