Closed sohrabp72 closed 2 months ago
Hi, if you check the requirements it says Python 3.10 or above, maybe that is the reason? The error states that it could not commit to the sqlite DB, maybe due to permissions on the filesystem, but as you would git clone
d the setup, it does not seem likely, do check with the below command, ouput from my setup.
ls -l WGDashboard/src/db/ total 596 -rw-r--r-- 1 root root 49152 Aug 28 10:31 wgdashboard.db -rw-r--r-- 1 root root 12288 Aug 27 09:32 wgdashboard_job.db -rw-r--r-- 1 root root 544768 Sep 4 11:32 wgdashboard_log.db
This is due to the nature of async access of SQLite.. I'm trying to fix this issue
Refer to #354
This is due to the nature of async access of SQLite.. I'm trying to fix this issue
Thank you, but for the time being is there a workaround for the users?
@sohrabp72, do you mind trying out this branch?
git clone https://github.com/donaldzou/WGDashboard -b Fix-#353
Hi, if you check the requirements it says Python 3.10 or above, maybe that is the reason? The error states that it could not commit to the sqlite DB, maybe due to permissions on the filesystem, but as you would
git clone
d the setup, it does not seem likely, do check with the below command, ouput from my setup.ls -l WGDashboard/src/db/ total 596 -rw-r--r-- 1 root root 49152 Aug 28 10:31 wgdashboard.db -rw-r--r-- 1 root root 12288 Aug 27 09:32 wgdashboard_job.db -rw-r--r-- 1 root root 544768 Sep 4 11:32 wgdashboard_log.db
This is not the case. ls -l WGDashboard/src/db/ total 1884 -rw-r--r-- 1 root root 196608 Sep 5 11:33 wgdashboard.db -rw-r--r-- 1 root root 12288 Aug 20 03:56 wgdashboard_job.db -rw-r--r-- 1 root root 1712128 Sep 5 11:32 wgdashboard_log.db
@sohrabp72, do you mind trying out this branch?
git clone https://github.com/donaldzou/WGDashboard -b Fix-#353
I would not as many peers are connected and I have no backup of the panel, any problem on the way makes trouble.
Describe The Problem After removing more than 10 peers it pannel crashs. After restricting and allowing some peers this crash happened again.
Expected Error / Traceback
To Reproduce Normally installed on the server, no docker.
OS Information:
Sample of your
.conf
file [Interface] Address = 10.252.1.0/24 PreUp = sysctl -w net.ipv4.ip_forward=1 PreUp = iptables -t mangle -A PREROUTING -i wg0 -j MARK --set-mark 0x30 PreUp = iptables -t nat -A POSTROUTING ! -o wg0 -m mark --mark 0x30 -j MASQUERADE PostDown = iptables -t mangle -D PREROUTING -i wg0 -j MARK --set-mark 0x30 PostDown = iptables -t nat -D POSTROUTING ! -o wg0 -m mark --mark 0x30 -j MASQUERADE ListenPort = 26840 (port is changed for security reasons) PrivateKey = ABCD[Peer] PublicKey = 7GacYlIQdZNIeK7N364Ix7WNBrVv4FiyqEsRW/9Wqys= AllowedIPs = 10.252.1.15/32 Endpoint = 127.0.0.1:54134