Comments (8)
Судя по ошибке, в файле конфига нет опции fsm_mode
from telegram-casino-bot.
@Integrated0 считаю, что проблема решена. Если нет, пиши комментарий
from telegram-casino-bot.
Да, есть такая проблема:
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | Traceback (most recent call last):
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "/usr/local/lib/python3.9/runpy.py", line 197, in _run_module_as_main
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | return _run_code(code, main_globals, None,
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "/usr/local/lib/python3.9/runpy.py", line 87, in _run_code
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | exec(code, run_globals)
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "/app/bot/main.py", line 8, in
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | from bot.config_reader import config
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "/app/bot/config_reader.py", line 28, in
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | config = Settings()
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "pydantic/env_settings.py", line 38, in pydantic.env_settings.BaseSettings.init
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "pydantic/main.py", line 339, in pydantic.main.BaseModel.init
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "pydantic/main.py", line 1038, in pydantic.main.validate_model
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "pydantic/fields.py", line 850, in pydantic.fields.ModelField.validate
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "pydantic/fields.py", line 1121, in pydantic.fields.ModelField._apply_validators
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "pydantic/class_validators.py", line 282, in pydantic.class_validators._generic_validator_cls.lambda4
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | File "/app/bot/config_reader.py", line 19, in skip_validating_redis
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | if values["fsm_mode"] == "redis" and v is None:
2023-03-16 14:11:54 telegram-casino-bot-bot-1 | KeyError: 'fsm_mode'
1970-01-01 03:00:00 telegram-casino-bot-bot-1 exited with code 1
from telegram-casino-bot.
Ну то же самое.
Как выглядит конфиг? Приватные данные (токены) лучше заменить на заглушки
from telegram-casino-bot.
.env
bot_token=token
fsm_mode=redis
redis=redis://user:pass@host:port
.yml
version: "3.8"
services:
bot:
# Универсальный образ для x86/ARM64
image: groosha/telegram-casino-bot:latest
restart: "always"
stop_signal: SIGINT
volumes:
# Путь к .env файлу с настройками
- "/.env"
depends_on:
- redis
redis:
image: redis:7
restart: "always"
volumes:
# Путь к каталогу с redis.conf
- "/redis.conf"
# Путь к каталогу, где будет лежать дамп базы Redis
- "/redis_data:/data"
command: "redis-server /redis.conf"
from telegram-casino-bot.
Путь к .env файлу с настройками
"/.env"
Как-то не похоже не правду. А если попробовать полный вариант? типа такого
"/home/user/casino-bot-redis/.env:/app/.env"
from telegram-casino-bot.
любой другой введённый путь вызывает ошибку: Error response from daemon: invalid mount config for type "volume": invalid mount path: 'telegram-casino-bot/.env' mount path must be absolute
from telegram-casino-bot.
@JoyoUA ну так да, "must be absolute". У меня в примере и выше в комментарии указан абсолютный путь.
from telegram-casino-bot.
Related Issues (4)
- Бот не запускается HOT 14
- aogram3.0.0b4 изменения HOT 1
- Not in English HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from telegram-casino-bot.