Answer the question
In order to leave comments, you need to log in
Why is there an error when running the script?
There is an application - let it be a simple echo bot for a cart.
threw on the server in a virtual environment. I launch from the console - everything perfectly works. I configure systemd - it does not start.
I dug into the logs and found that it does not start because it does not find the certificate file for the webhook. All files are nearby.
I conducted experiments, as a result:
1) if you go to the folder with the script and start the virtual environment first, and then "python app.py" - it works
2) if you go to the folder with the script and run the command "bin / python app.py" - works
3) if you go to the folder above and run the command "bot/bin/python bot/app.py" - it does not start, it does not find the certificate file specified in the script.
Exactly the same thing happens with systemd.
ExecStart=/home/me/venvs/bot/bin/python /home/me/venvs/bot/app.py
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question