Open baz0okq opened 3 weeks ago
Hello @baz0okq, now you no longer need to run ngrok manually, it runs when you run the bot in the ngrok_executor.py file. I think this is not the main problem when running the bot, according to the console, you still have some problems in the db.py file
@baz0okq Is your problem still relevant?
Yes mate. Still the same, broke all my head cant find any mistake.
@baz0okq have you tried deploying the bot through docker?
Fill the docker-compose.yaml and run docker-compose up and its solve problem but give me another one :D
@baz0okq By the logs you have some other version of Aiogram even in the docker image, although it should be 3.1.1. You can try not to build the docker image from source, but use the image from Dockerhub.
or
https://hub.docker.com/r/ilyarolf/aiogram-shop-bot-encrypted
In this case your docker-compose.yml will look like this:
version: "3.8"
services:
bot:
image: "ilyarolf/aiogram-shop-bot"
container_name: 'AiogramShopBot'
environment:
WEBHOOK_PATH: ""
WEBAPP_HOST: "0.0.0.0" # Don't touch this
WEBAPP_PORT: 5000 # Here your port
TOKEN: "1234567890:QWER.....TYI" # Here your bot token from botfather
NGROK_TOKEN: 'NGROK_TOKEN_HERE' # Here your ngrok token from ngrok.com
ADMIN_ID_LIST: "12345678,87654321" # Telegram ID's for admins;
SUPPORT_LINK: "https://t.me/YourUsername"
DB_NAME: "database.db" # Here your database name
PAGE_ENTRIES: 20 # Items per page
ports:
- "4040:4040"
- "5000:5000" # ${WEBAPP_PORT}:${WEBAPP_PORT}
expose:
- 4040
- 5000 # ${WEBAPP_PORT}
volumes:
- /AiogramShopBot:/bot/data
command: ["python", "-u", "run.py"]
volumes:
AiogramShopBot:
@baz0okq Is your problem still relevant?
Hi.
ngrok running
In env
And i have that error
Anyone have idea?