donaldzou / WGDashboard

Simple dashboard for WireGuard VPN written in Python w/ Flask
https://donaldzou.github.io/WGDashboard-Documentation/
Apache License 2.0
1.44k stars 215 forks source link

Unable to upgrade #390

Open barryboom opened 1 week ago

barryboom commented 1 week ago

Describe The Problem Reimaged my test server installed WG Dashboard V.3.0.6.2 to test process of upgrading from V3 to V4 but unable to upgrade

Expected Error / Traceback


root@OVH-testsrv:~# cd wgdashboard/src                             
root@OVH-testsrv:~/wgdashboard/src# sudo ./wgd.sh update
------------------------------------------------------------
| Are you sure you want to update to the v4.0.3? (Y/N): y
------------------------------------------------------------
| Update Canceled.                                         |
------------------------------------------------------------
root@OVH-testsrv:~/wgdashboard/src#

To Reproduce Run upgrade command from Putty

OS Information:

donaldzou commented 1 week ago

Hi, this was due to v3 doesn’t accept lowercase “y” lol. If you enter “Y”, it should be working :)

Best, Donald

Get Outlook for iOShttps://aka.ms/o0ukef


From: Boom @.> Sent: Sunday, September 15, 2024 1:45:13 AM To: donaldzou/WGDashboard @.> Cc: Subscribed @.***> Subject: [donaldzou/WGDashboard] Unable to upgrade (Issue #390)

Describe The Problem Reimaged my test server installed WG Dashboard V.3.0.6.2 to test process of upgrading from V3 to V4 but unable to upgrade

Expected Error / Traceback

@.:~# cd wgdashboard/src @.:~/wgdashboard/src# sudo ./wgd.sh update

| Are you sure you want to update to the v4.0.3? (Y/N): y

| Update Canceled. |

@.***:~/wgdashboard/src#

To Reproduce Run upgrade command from Putty

OS Information:

— Reply to this email directly, view it on GitHubhttps://github.com/donaldzou/WGDashboard/issues/390, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AGARNUMXJEYYDY2ZF3RAXZLZWRY2TAVCNFSM6AAAAABOHA7ODCVHI2DSMVQWIX3LMV43ASLTON2WKOZSGUZDMNJTHA3TEMY. You are receiving this because you are subscribed to this thread.Message ID: @.***>

barryboom commented 1 week ago

This did indeed update the dashboard to V4.0.3 however now unable to logon with default admin:admin which i never changed on V3. Any simple fixes for that. Cannot believe a simple capital Y was all that was needed LOL

barryboom commented 1 week ago

i have rebooted a few times and still the same. Get to logon screen but username / password hit sign in and it just spins on the sign in button. for more info i use the autostart .service file

to troubleshoot i tried to manually kick off the start command as below not sure if that helps or hinders

root@vOVH-testsrv:~# cd wgdashboard/src root@OVH-testsrv:~/wgdashboard/src# ./wgd.sh start ------------------------------------------------------------ [WGDashboard] Starting WGDashboard with Gunicorn in the background. [WGDashboard] Creating Python Virtual Environment under ./venv ./wgd.sh: line 59: ./venv/bin/activate: No such file or directory sudo: ./venv/bin/gunicorn: command not found

DaanSelen commented 1 week ago

Version 4.x requires a Python venv, are you known with this? If not, you should go to the directy where wgd.sh is and type python3 -m venv venv. If you are able to provide more context, please let me know.

barryboom commented 6 days ago

Issue is that you cannot upgrade and then login when upgrading from V3 to V4 using the upgrade command for an inline upgrade.

DaanSelen commented 3 days ago

Do you mean your login credentials no longer work?

Perhaps duplicate of: https://github.com/donaldzou/WGDashboard/issues/331

barryboom commented 3 days ago

The issue is that if you upgrade from a working V3 to V4 using the upgrade command. and then try to logon putting the correct credentials or random or admin:admin it does not logon. It does not give you an error it just spins at end of the sign in section.

i have tried this multiple times now with no success. tried on Ubuntu 22 and 24. I am not requiring a resolution to resolve my issue as it just my test server and i can rebuild and install a fresh copy of the dashboard which works fine.

What i am reporting and hoping can be fixed is the inline upgrade so that others dont come across the same issue.

On Fri, 20 Sept 2024 at 15:55, dselen @.***> wrote:

Do you mean your login credentials no longer work?

Perhaps duplicate of: #331 https://github.com/donaldzou/WGDashboard/issues/331

— Reply to this email directly, view it on GitHub https://github.com/donaldzou/WGDashboard/issues/390#issuecomment-2363925592, or unsubscribe https://github.com/notifications/unsubscribe-auth/AQC3RU2ALV5T25GKUZZGJOTZXQZOTAVCNFSM6AAAAABOHA7ODCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNRTHEZDKNJZGI . You are receiving this because you authored the thread.Message ID: @.***>

-- Boom Enterprises LTD IT Support / Maintenance / Upgrades

donaldzou commented 3 days ago

Hi @barryboom , yes I'm aware that admin:admin is working properly when upgrading from v3 to v4 if your password did not change in v3. I'll update in the readme file and let others know 😄

NOXCIS commented 2 days ago

@barryboom hmmm might be to do with the db. A lot was changed between v3 and v4, if manually setting wg-dashboard.ini doesn't work it's probably the db query structure being mismatched. I'll test in prod to replicate.