donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python & Vue.js
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.59k stars 236 forks source link

unable to execute ./venv/bin/gunicorn: No such file or directory #460

Open slima opened 3 hours ago

slima commented 3 hours ago
~/WGDashboard/src$ ./wgd.sh install
------------------------------------------------------------
[WGDashboard] Starting to install WGDashboard
[WGDashboard] OS: ubuntu
[WGDashboard] ✔ Python is installed
[WGDashboard] ✔ Python Virtual Environment is installed
[WGDashboard] ✔ Python Package Manager (PIP) is installed
[WGDashboard] WireGuard is already installed.
[WGDashboard] Upgrading Python Package Manage (PIP)
[WGDashboard] Installing latest Python dependencies
[WGDashboard] WGDashboard installed successfully!
[WGDashboard] Enter ./wgd.sh start to start the dashboard
------------------------------------------------------------
~/WGDashboard/src$ ./wgd.sh start
[WGDashboard] WireGuard is already installed.
------------------------------------------------------------
[WGDashboard] Starting WGDashboard with Gunicorn in the background.
sudo: unable to execute ./venv/bin/gunicorn: No such file or directory

$ python3 --version Python 3.10.12

$ lsb_release -a No LSB modules are available. Distributor ID: Ubuntu Description: Ubuntu 22.04.4 LTS Release: 22.04 Codename: jammy

DaanSelen commented 2 hours ago

Please do source ./venv/bin/activate that way you activate the Python Virtual Environment which allows you to call the dependencies.

slima commented 2 hours ago
~/WGDashboard/src$ source ./venv/bin/activate
(venv) ~/WGDashboard/src$ ./wgd.sh start
[WGDashboard] WireGuard is already installed.
------------------------------------------------------------
[WGDashboard] Starting WGDashboard with Gunicorn in the background.
sudo: unable to execute ./venv/bin/gunicorn: No such file or directory
slima commented 2 hours ago

but file is there:

~/WGDashboard/src/venv/bin$ ls
activate  activate.csh  activate.fish  Activate.ps1  flask  **gunicorn**  pip  pip3  pip3.10  python  python3  python3.10
DaanSelen commented 1 hour ago

Hmmm, okay. That's weird.

I should have done it itself, but to make sure please execute:

make sure all WGDashboard processed are stopped and then:

bash ./wgd.sh install

bash ./wgd.sh start

I see you directly executed it, perhaps you use another shell other than Bash, so make sure you use Bash as marked in the Shebang.