Coder Social home page Coder Social logo

problem with start about wireguard-bot HOT 5 OPEN

pheezz avatar pheezz commented on May 23, 2024
problem with start

from wireguard-bot.

Comments (5)

PheeZz avatar PheeZz commented on May 23, 2024

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:

  1. cd ~/wireguard-bot/
  2. pip install poetry
  3. poetry install
  4. 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'
  1. reload .service
    sudo systemctl daemon-reload
    sudo systemctl reload wireguard-bot.service

from wireguard-bot.

PheeZz avatar PheeZz commented on May 23, 2024

@Bilalline if you still have problems with launch, I can try to put project inside docker containers in 24h

from wireguard-bot.

Bilalline avatar Bilalline commented on May 23, 2024

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
root@botgw:
/wireguard-bot# systemctl status wireguard-bot.service

  • 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.

Bilalline avatar Bilalline commented on May 23, 2024

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.

PheeZz avatar PheeZz commented on May 23, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.