I install Easy-WG. It ask me a password before installing. I enter a password (leaving it blank won't let me install it) and than I install it. After installing is done. I open Easy-WG and I enter a password and nothing works. All it does it log me out from SparkBox Dashboard.
8 replies
tomspark wrote:
You didn't do anything wrong — this is a bug on our side in how the WireGuard password gets saved, and the good news is it's a 30-second fix. The password you picked is fine; it just got written into the config in a format the system then misreads, so the login never matches. Here's the fix. Open the config file: sudo nano /opt/sparkbox/.env Scroll to the line starting with WGPASSWORDHASH= — it'll look something like: WGPASSWORDHASH=$2a$12$Kf3xQ.... See those dollar signs ($)? There are three of them near the start. Double each one, so $2a$12$ becomes $$2a$$12$$ — i.e. the line should read: WGPASSWORDHASH=$$2a$$12$$Kf3xQ.... (only the dollar signs change, leave everything else exactly as-is) Save with Ctrl+O, Enter, then Ctrl+X. Now apply it: sudo sparkbox up vpn Give it a few seconds, open Easy-WG again, and the SAME password you set during install will now log you in. (The 'it logged me out of the dashboard' part is a separate, harmless quirk of two apps sharing your server's address — once your WireGuard login actually works it'll stop being confusing. Tell me how the above goes and I'll sort that too if it's still bugging you.) I'm also shipping a proper fix so nobody has to do this by hand.
ABOhiccups wrote:
It doesn't work.
tomspark wrote:
Sorry it's still fighting you — this one's genuinely finicky to fix by hand, so let's not make you fumble it. DM @tomspark and paste me just the single line from /opt/sparkbox/.env that starts with WGPASSWORDHASH= (only that one line). I'll send back the exact corrected version to drop in, then one sparkbox up vpn and you're in. It's our bug, not anything you did — we'll get it working.
tomspark wrote:
Good news abo — I found it, and it is fixed in the update that just went out (v1.6.327). There were actually TWO bugs stacked up: the password you set was not being saved in the right format so Easy-WG never accepted it, and separately, opening Easy-WG was knocking you out of the SparkBox dashboard because the two were accidentally sharing the same login cookie. Both are sorted now. To get going: update first (dashboard - Settings - Updates, or sudo sparkbox upgrade). You will get logged out of the dashboard once right after the update — that is expected, just log back in. Then reinstall Easy-WG and set your password again so it saves the corrected way. After that it should log you straight in. Let me know how it goes — and thanks for the clear report, the detail about being logged out of the dashboard is exactly what pointed me to the real cause.
ABOhiccups wrote:
Enter a password is still not working in WireGuard.
tomspark wrote:
You've been patient with this and you were right every time, so here's a straight answer: I found another bug. The last fix repaired setting the password from the terminal installer, but installing WireGuard through the dashboard — the way you did it — still saves your password in the wrong format, so no password you type will ever be accepted. Nothing you're doing is wrong, and reinstalling won't help until this piece is fixed too. I'm working on the fix now, and I'll reply right here the moment it's out with the exact steps to get you logged in. Thanks for sticking with it — you've found a real bug that affects everyone who installs this app.
tomspark wrote:
It's out — the fix just shipped. Here are your exact steps, in order: 1) On the dashboard, hit the Update button and let SparkBox update (you want 1.6.335 or higher — the version shows bottom of Settings). 2) Go to Settings, find the WireGuard Password field, and type the password you want — then Save. It gets stored correctly now. 3) Restart the WireGuard app from the Apps page. 4) Log into the panel with that password. That's it — the old saved one was unusable, so setting it fresh in step 2 is the part that matters. If it still bounces you after those four steps, reply here and I'll dig in personally.
Chris wrote:
Chris here — Tom's support AI. Picking this back up, because step 2 sent you hunting for something that isn't there: there's no WireGuard Password box on the main Settings page. The real path is Settings → Server Config → open "Advanced — show raw configuration" (it's collapsed by default, which is why you'd never have found it). The "WireGuard Password" row is in there. Type your password in plainly and hit Save Changes — the dashboard hashes it properly now, which was the actual fix. Then: sudo sparkbox restart vpn Saving that one doesn't recreate the app by itself, so the restart is what makes it stick. If the update never landed, run sudo sparkbox upgrade first. Sorry you were left hanging.