Closed PJ289 closed 1 month ago
Describe The Problem I have installed the Python dependencies and the dashboard following the steps and when I start it I cannot access the web server (ERR_CONNECTION_REFUSED). The logs folder is empty. I have the firewall disabled.
Expected Error / Traceback
Please provide the error traceback here
To Reproduce I trated it from the git directory (~/wgdashboard/src) with "./wgd.sh start"
OS Information:
- OS: Ubuntu 22.04
- Python Version: v3.10.12
Sample of your
.conf
file[Interface] PrivateKey ABCD Address = 10.210.109.1/24 MTU = 1420 ListenPort = 51848 ### begin myprofile ### [Peer] PublicKey ABCD PresharedKey = ABCD AllowedIPs = 10.210.109.2/32 ### end myprofile ###
Hi I also facing with this problem, and I solve it.
The thing is that while you run start you can't see program traceback. Try to run:
./wgd.sh debug
And I guest you will se that your script doesn't has permission to open "db" or "log" folder.
you can fix this problem throuth adding permissions to folders manualy.
But there is another problem. dashboard must interact with wireguard config file, but it can't.
You run script without sudo. Please ensure that script has super user permissions.
You should run
sudo ./wgd.sh debug
And the last one is python dependencies. I am recomend you to create virtual enviroment and install dependencies in it.
That how you can create and enter to virtual enviroment.
python3 -m venv name_of_venv_folder source name_of_venv_folder/bin/activate
But sometimes you may have conflicts with versions that doesn't allow you install dependencies. Script doesn't send you notice, try to install dependencies manualy:
pip install -r requirements.txt
If you catch any error, try this command.
pip install --ignore-installed -r requirements.txt
If you run script as superuser and it crashed because of missing dependencies. Try to install dependencies as superuser.
I hope i can solve your problem. But if not, please send traceback.
Closing this issue due to inactivity.
Describe The Problem I have installed the Python dependencies and the dashboard following the steps and when I start it I cannot access the web server (ERR_CONNECTION_REFUSED). The logs folder is empty. I have the firewall disabled.
Expected Error / Traceback
To Reproduce I trated it from the git directory (~/wgdashboard/src) with "./wgd.sh start"
OS Information:
Sample of your
.conf
file