Comments (5)
problem with python3.10, it's not installed. You have two ways: 1. install python 3.10 and project dependencies or try to install project dependencies over your python 3.11
steps to install dependencies over python 3.11:
cd ~/wireguard-bot/
pip install poetry
poetry install
- fix your
/etc/systemd/system/wireguard-bot.service
file
ExecStart...
line must be something like:
ExecStart=/bin/bash -c 'cd ~/wireguard-bot/ && $(poetry env info --path)/bin/python3.11 app.py'
- reload .service
sudo systemctl daemon-reload
sudo systemctl reload wireguard-bot.service
from wireguard-bot.
@Bilalline if you still have problems with launch, I can try to put project inside docker containers in 24h
from wireguard-bot.
it would be great to have a ready-made container with the ability to edit environment variables
By the way, after entering the command
pip install poetry
I received an error, a quick solution to which was
rm /usr/lib/python3.11/EXTERNALLY-MANAGED
systemctl reload wireguard-bot.service
Failed to reload wireguard-bot.service: Job type reload is not applicable for unit wireguard-bot.service.
systemctl reload wireguard-bot.service
Failed to reload wireguard-bot.service: Job type reload is not applicable for unit wireguard-bot.service.
root@botgw:~/wireguard-bot# systemctl status wireguard-bot.service
x wireguard-bot.service - WireGuard VPN Bot
Loaded: loaded (/etc/systemd/system/wireguard-bot.service; enabled; preset: enabled)
Active: failed (Result: exit-code) since Wed 2024-02-07 18:17:23 UTC; 1h 6min ago
Duration: 1ms
Main PID: 8771 (code=exited, status=127)
CPU: 1ms
Feb 07 18:17:23 botgw systemd[1]: Started wireguard-bot.service - WireGuard VPN Bot.
Feb 07 18:17:23 botgw bash[8771]: /bin/bash: line 1: /bin/python3.10: No such file or directory
Feb 07 18:17:23 botgw systemd[1]: wireguard-bot.service: Main process exited, code=exited, status=127/n/a
Feb 07 18:17:23 botgw systemd[1]: wireguard-bot.service: Failed with result 'exit-code'.
root@botgw:/wireguard-bot# systemctl restart wireguard-bot.service/wireguard-bot# systemctl status wireguard-bot.service
root@botgw:
- wireguard-bot.service - WireGuard VPN Bot
Loaded: loaded (/etc/systemd/system/wireguard-bot.service; enabled; preset: enabled)
Active: active (running) since Wed 2024-02-07 19:24:03 UTC; 2s ago
Main PID: 10439 (python3.11)
Tasks: 2 (limit: 154359)
Memory: 40.9M
CPU: 1.088s
CGroup: /system.slice/wireguard-bot.service
`-10439 /root/.cache/pypoetry/virtualenvs/wireguard-bot-HQhWNfUr-py3.11/bin/python3.11 app.py
Feb 07 19:24:03 botgw systemd[1]: Started wireguard-bot.service - WireGuard VPN Bot.
from wireguard-bot.
2024-02-07 19:55:36.848 | SUCCESS | utils.vpn_cfg_work:restart_service:82 - [+] wireguard service restarted
2024-02-07 19:56:37.417 | ERROR | database.selector:all_user_configs:55 - [-] relation "vpn_config" does not exist
LINE 2: SELECT config_name FROM vpn_config WHERE use...
^
2024-02-07 19:56:37.428 | ERROR | database.selector:is_subscription_end:73 - [-] relation "users" does not exist
LINE 2: SELECT subscription_end_date FROM users WHER...
^
2024-02-07 19:58:38.736 | ERROR | database.selector:get_subscription_end_date:91 - [-] relation "users" does not exist
LINE 2: SELECT subscription_end_date FROM users WHER...
^
2024-02-07 19:59:41.481 | ERROR | database.selector:is_subscription_end:73 - [-] relation "users" does not exist
LINE 2: SELECT subscription_end_date FROM users WHER...
^
2024-02-07 20:00:42.208 | ERROR | database.selector:all_user_configs:55 - [-] relation "vpn_config" does not exist
LINE 2: SELECT config_name FROM vpn_config WHERE use...
^
2024-02-07 20:00:42.218 | ERROR | database.selector:all_user_configs:55 - [-] relation "vpn_config" does not exist
LINE 2: SELECT config_name FROM vpn_config WHERE use...
^
2024-02-07 20:01:42.899 | ERROR | database.selector:all_user_configs:55 - [-] relation "vpn_config" does not exist
LINE 2: SELECT config_name FROM vpn_config WHERE use...
from wireguard-bot.
Sorry for the long waiting. Now I have some troubles with moving project inside docker, wireguard just don't want to work. Your last message seems like database tables not configured. Check 7 point of installation guide
from wireguard-bot.
Related Issues (15)
- Скрипт снова рушится из-за отсутствия рута HOT 2
- No admin access HOT 12
- Multilingual
- When user disconnect wireguard down
- curl -s ifconfig.me returns nothing HOT 1
- rewrites ip wg to 10.0.0.1 HOT 3
- failed to start HOT 2
- не работает база данных HOT 3
- опять вопрос по базе данных( HOT 2
- Работа при закрытом терминале HOT 1
- PresharedKey HOT 9
- Конфиг генерится без переносов строк HOT 1
- Автоматический скрипт не развертывает базу данных с помощью root пользователя
- Скрипт рушится на данных строчках при запуске не от рут пользователя HOT 4
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 wireguard-bot.