donaldzou / WGDashboard

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

issue in starting wg service #378

Open Salarsdg opened 2 months ago

Salarsdg commented 2 months ago

sc1

its my wg-dashboard.service : [Unit] After=netword.service

[Service] WorkingDirectory=/root/wgdashboard/src ExecStart=/usr/bin/python3 /root/wgdashboard/src/dashboard.py Restart=always StartLimitInterval=1

[Install] WantedBy=default.target

whats wrong with it?

donaldzou commented 2 months ago

Hi @Salarsdg , what would happen if you run this directly in your terminal?

/usr/bin/python3 /root/wgdashboard/src/dashboard.py
rcv11x commented 2 months ago

I have the same thing, I have the latest version of WGDashboard and if I reboot or shutdown and start the machine it starts WDDashboard but I can't start the WG server and I have to manually enter the interface to start it.

rhammen commented 1 month ago

I had the same problem. What I discovered was the following:

rcv11x commented 2 weeks ago

@donaldzou in my case if I restart the machine wgdashboard starts without problem but my vpn profile in my case wg0sv does not start so if I am in remote and I restart the server I can not connect, I have to be in my network locally, enter wgdashboard and start it manually as you see in the image.

Captura de pantalla_20241107_211611

DaanSelen commented 1 week ago

@donaldzou in my case if I restart the machine wgdashboard starts without problem but my vpn profile in my case wg0sv does not start so if I am in remote and I restart the server I can not connect, I have to be in my network locally, enter wgdashboard and start it manually as you see in the image.

Captura de pantalla_20241107_211611

With version 4.1 You can enable auto-start. Can you try that?