Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

can't running the bot #246

Open
yaovenus opened this issue Feb 18, 2024 · 2 comments
Open

can't running the bot #246

yaovenus opened this issue Feb 18, 2024 · 2 comments

Comments

@yaovenus
Copy link

yt_bot exited with code 1
yt_bot | [RabbitMQ] Waiting to be reachable on port 5672
yt_bot | [PostgreSQL] Waiting to be reachable on port 5432
yt_bot | [RabbitMQ] Connection on port 5672 verified
yt_bot | [PostgreSQL] Connection on port 5432 verified
yt_bot | Traceback (most recent call last):
yt_bot | File "/app/main.py", line 3, in
yt_bot | from api.core.app import app # noqa: F401
yt_bot | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
yt_bot | File "/app/api/core/app.py", line 10, in
yt_bot | from api.core.config import settings
yt_bot | File "/app/api/core/config.py", line 10, in
yt_bot | settings = ApiSettings()
yt_bot | ^^^^^^^^^^^^^
yt_bot | File "/usr/local/lib/python3.11/site-packages/pydantic_settings/main.py", line 71, in init
yt_bot | super().init(
yt_bot | File "/usr/local/lib/python3.11/site-packages/pydantic/main.py", line 171, in init
yt_bot | self.pydantic_validator.validate_python(data, self_instance=self)
yt_bot | pydantic_core.pydantic_core.ValidationError: 3 validation errors for ApiSettings
yt_bot | API_HOST
yt_bot | Field required [type=missing, input_value={'APPLICATION_NAME': 'yt
...ADED_DIR': 'downloaded'}, input_type=dict]
yt_bot | For further information visit https://errors.pydantic.dev/2.6/v/missing
yt_bot | API_PORT
yt_bot | Field required [type=missing, input_value={'APPLICATION_NAME': 'yt_...ADED_DIR': 'downloaded'}, input_type=dict]
yt_bot | For further information visit https://errors.pydantic.dev/2.6/v/missing
yt_bot | API_WORKERS
yt_bot | Field required [type=missing, input_value={'APPLICATION_NAME': 'yt_...ADED_DIR': 'downloaded'}, input_type=dict]
yt_bot | For further information visit https://errors.pydantic.dev/2.6/v/missing

@tropicoo
Copy link
Owner

Did you delete the envs/.env_api file or edit docker-compose.yaml file?
Your error says it can't found API_HOST, API_PORT and API_WORKERS variables which are stored envs/.env_api file.

@yaovenus
Copy link
Author

i can't delete the envs/.env_api file and keep defaut。
i can't edit docker-compose.yaml file

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants