-
-
Notifications
You must be signed in to change notification settings - Fork 294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Upgraded from v4.1.4 to v4.2.0-dev UI timedout #613
Comments
@akhepcat Did you restart the service after upgrading? |
Fully restarted the container. Very reproducable here. here's three tests:
|
Okay, it looks like it's a bug in the refresh code interval inside the server configuration page, at the bottom by the peers list I can set it to 5 seconds, and am nearly immediately logged out. |
This is super weird.. Is it possible for you to run in |
Also, left myself logged in overnight at the main screen, no timeout. My best guess (i'm restarting into debug mode now) is that the refresh is somehow not using the correct url, or isn't saving state somewhere, such that it's forgetting that we're already logged in. I'm using chrome 133 on linux and android mobile; i can also try firefox and check it, and probably safari on ipad, too. oh, prior to restarting in debug mode, i'm removing all __pycache__ just in case |
Chrome linux- log in, look at server config, select 1m refresh, and wait:
|
Validated on Safari/ipad, which i've never used to log into this at all ever before, functions the same way, in that after a 1 minute pause while looking at the wg server + peers screen, the screen refresh jumps back to the login. I do not currently have 2FA enabled, fwiw. |
Okay... seems like a frontend issue. Can you pull the latest v4.2-dev again and see there's any output in your browser's console? |
No change: cd /etc/wgdashboard/src && tar -cpvf ~/wgd.tar db *.ini cd /etc git clone https://github.com/donaldzou/WGDashboard.git -b v4.2-dev wgdashboard ./wgd.sh install systemctl start wg-dashboard.service (clear site data from browser cache) Log in get kicked out tail logs/access*.log |
Oh I meant when you do a right-click on the page, Inspect Element, you should see a console. Do you see any errors? |
Ah, yes, i'm seeing this when the page times out and refreshes: TypeError: Cannot read properties of null (reading 'sent') |
Okay, here's what's changing between events: I pre-set the refresh to 10 seconds, then backed out of the configuration screen. Then, going back into it, i see that there's a cookie being set: Request: https://wgvpn.local/api/getWireguardConfigurationInfo?configurationName=wg-test 10 seconds later, there's a refresh: Request: https://wgvpn.local/api/getWireguardConfigurationInfo?configurationName=wg-test (these are the only changes) But then there's a bounce back to a different page: Request URL: https://wgvpn.local/api/getWireguardConfigurationRealtimeTraffic?configurationName=wg1 and this is where the logout happens Note that there is no configuration in my server called 'wg1' curl https://wgvpn.local/api/getWireguardConfigurationRealtimeTraffic?configurationName=wg1 confirmed with sqlite dumping wgdashboard.db, there is no 'wg1' |
OMGGGG... I have to admit I'm dumb sometimes.. it was hardcoded by myself during testing :( |
Just pushed a commit and should be good now :) |
That's done it! phew! |
I will close this for now :) |
Originally posted by @akhepcat in #461
@DaanSelen
The text was updated successfully, but these errors were encountered: