can not start by error: pydantic_core._pydantic_core.ValidationError: 1 validation error for DifyConfig #7137

Closed
opened 2026-02-21 18:19:04 -05:00 by yindo · 1 comment
Owner

Originally created by @yihong0618 on GitHub (Dec 10, 2024).

Self Checks

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

Dify version

0.13.2

Cloud or Self Hosted

Self Hosted (Source)

Steps to reproduce

start local

✔️ Expected Behavior

succeed

Actual Behavior

pydantic_core._pydantic_core.ValidationError: 1 validation error for DifyConfig
REMOTE_SETTINGS_SOURCE_NAME
Input should be 'apollo' [type=enum, input_value='', input_type=str]
For further information visit https://errors.pydantic.dev/2.9/v/enum

Originally created by @yihong0618 on GitHub (Dec 10, 2024). ### Self Checks - [X] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [X] I have searched for existing issues [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [X] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [X] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [X] Please do not modify this template :) and fill in all the required fields. ### Dify version 0.13.2 ### Cloud or Self Hosted Self Hosted (Source) ### Steps to reproduce start local ### ✔️ Expected Behavior succeed ### ❌ Actual Behavior pydantic_core._pydantic_core.ValidationError: 1 validation error for DifyConfig REMOTE_SETTINGS_SOURCE_NAME Input should be 'apollo' [type=enum, input_value='', input_type=str] For further information visit https://errors.pydantic.dev/2.9/v/enum
yindo added the 🐞 bug label 2026-02-21 18:19:04 -05:00
yindo closed this issue 2026-02-21 18:19:05 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Dec 10, 2024):

Hey @yihong0618! I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's tackle this issue together!

The error you're encountering indicates that the REMOTE_SETTINGS_SOURCE_NAME field in your DifyConfig is not set to a valid value. The valid value for this field is "apollo" [1].

To resolve this issue, ensure that your configuration file (likely .env or another environment configuration file) includes the line:

REMOTE_SETTINGS_SOURCE_NAME=apollo

This should align the configuration with the expected value and resolve the validation error.

To continue talking to Dosu, mention @dosu.


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

@dosubot[bot] commented on GitHub (Dec 10, 2024): <!-- Greeting --> Hey @yihong0618! I'm here to help you with any bugs, questions, or contributions you have for Dify. Let's tackle this issue together! <!-- Answer --> The error you're encountering indicates that the `REMOTE_SETTINGS_SOURCE_NAME` field in your `DifyConfig` is not set to a valid value. The valid value for this field is "apollo" <sup>[[1]](https://github.com/langgenius/dify/blob/main/api/configs/remote_settings_sources/enums.py)</sup>. To resolve this issue, ensure that your configuration file (likely `.env` or another environment configuration file) includes the line: ``` REMOTE_SETTINGS_SOURCE_NAME=apollo ``` This should align the configuration with the expected value and resolve the validation error. <!-- 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/087c07cd-29ec-43c9-b4af-f3da5e016d6d?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/087c07cd-29ec-43c9-b4af-f3da5e016d6d?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/087c07cd-29ec-43c9-b4af-f3da5e016d6d?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/087c07cd-29ec-43c9-b4af-f3da5e016d6d?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/087c07cd-29ec-43c9-b4af-f3da5e016d6d?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/087c07cd-29ec-43c9-b4af-f3da5e016d6d?feedback_type=other)</sup>
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify#7137