Error starting the WGD
PJ289 opened this issue · comments
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 ###
![image](https://private-user-images.githubusercontent.com/120306083/277096029-a074d71e-9988-4081-9124-4a589f0f379a.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkzMDMzMzksIm5iZiI6MTcwOTMwMzAzOSwicGF0aCI6Ii8xMjAzMDYwODMvMjc3MDk2MDI5LWEwNzRkNzFlLTk5ODgtNDA4MS05MTI0LTRhNTg5ZjBmMzc5YS5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMwMVQxNDIzNTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT00YmY0ODUwMzc4MTNiM2E2OTA3YjZjMmVjMWM0NTNmNWYxMTIzNjJhNWVmM2RhN2U0MWVlOTI1NzNlNjgyNjQyJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.ECLyVSjUbA0mA6o46NeAIuSSfO4iTLuF81V9JKPk_YQ)
![image](https://private-user-images.githubusercontent.com/120306083/277096051-46577544-52a7-4b7b-84b9-fedabfedf7e4.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MDkzMDMzMzksIm5iZiI6MTcwOTMwMzAzOSwicGF0aCI6Ii8xMjAzMDYwODMvMjc3MDk2MDUxLTQ2NTc3NTQ0LTUyYTctNGI3Yi04NGI5LWZlZGFiZmVkZjdlNC5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwMzAxJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDMwMVQxNDIzNTlaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wYTI5MGI1NjYyYmE3NDM4ODI3NTVkMTAzZDA5ZTE4MDlkMmQ0NzlmNmRjYTk4MTE4ZDZkZGFiOGRkMTkzOGRhJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.qfYdUx38tbBIDe4mSLmb-FELumh1rrgl-F6OFMagSBo)
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.