question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

`Can't connect to server` error trying to enable and connect to VPN, after successfully fetching credentials

See original GitHub issue

Description

Can't connect to server error trying to enable and connect to VPN, after successfully fetching credentials

Steps to Reproduce

  1. delete any BraveVPN OS-configs, first
  2. install 1.47.81
  3. launch Brave using --vmodule="*/skus/*"=2 --enable-logging=stdrr --v=1
  4. click Maybe later
  5. click Skip welcome tour
  6. open brave://flags
  7. set brave://flags/#brave-vpn to Enabled
  8. click Relaunch (if you want to retain logging, CTRL+C and relaunch from Terminal/console
  9. click No thanks on the Tired of cookie consent notices? dialog
  10. load account.bravesoftware.com
  11. enter staging credentials from 1Password
  12. enter a unique email address such as "unique99@mailinator.com" or similar
  13. click Get login link
  14. open the Log in to your Brave Pre... email (https://www.mailinator.com/v4/public/inboxes.jsp?to=unique99 in the above case)
  15. click on either the Log in to Brave button -or- the link below it
  16. click Browse plans on https://account.bravesoftware.com/account/
  17. scroll down
  18. click on Buy now beneath Brave VPN Subscription
  19. complete the Stripe checkout using https://stripe.com/docs/testing#testing-interactively
  20. click on the VPN button in the browser toolbar, and attempt to add and connect to the BraveVPN config

Actual result:

image

chrome_debug.log

Expected result:

Able to connect to Brave VPN after purchase + successful credentials loading

Reproduces how often:

100% for me

Brave version (brave://version info)

Brave 1.47.81 Chromium: 108.0.5359.40 (Official Build) nightly (64-bit)
Revision 280b5fcaab3e877562b06cfaf2eb51121e13c3b9-refs/branch-heads/5359@{#689}
OS Windows 10 Version 22H2 (Build 19045.2311)

Version/Channel Information:

  • Can you reproduce this issue with the current release? n/a
  • Can you reproduce this issue with the beta channel? yes
  • Can you reproduce this issue with the nightly channel? yes

/cc @mattmcalister @bsclifton @spylogsster @LaurenWags @MadhaviSeelam @GeetaSarvadnya @rebron @srirambv

Issue Analytics

  • State:open
  • Created 10 months ago
  • Comments:5 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
spylogsstercommented, Dec 14, 2022

I have followed the steps from the STR. I am not getting this issue in my Windows 10 x64 on top of master branch. I guess this could be related to the server side state.

1reaction
stephendonnercommented, Nov 17, 2022

@mattmcalister @bsclifton @rebron @LaurenWags @brave/user-support-team @MadhaviSeelam @GeetaSarvadnya

We’ll want to document this and investigate/mitigate further, I believe.

But some good-ish news: got my Windows 10 setup working again, and verified a full end-to-end flow (once fixed) with the following build:

Reproduced the issue, and re-verified my environment as fixed, using the same Brave build (confirming code outside of our control):

Brave 1.46.114 Chromium: 107.0.5304.110 (Official Build) beta (64-bit)
Revision 2a558545ab7e6fb8177002bf44d4fc1717cb2998-refs/branch-heads/5304@{#1202}
OS Windows 10 Version 22H2 (Build 19045.2311)

Non-fix “fix”:

In the end, I “fixed” this and achieved the above expected result by following the (full) steps on https://github.com/trailofbits/algo/issues/1051, summarized here:

  • clear networking caches; ran all as Administrator in elevated command console:
    • netsh int ip reset
    • netsh int ipv6 reset
    • netsh int winsock reset
  • reset Device-Manager adaptors
    • open Device Manager
    • open Network Adapters
    • uninstall each of the WAN Miniport drivers
    • click Action -> Scan for hardware changes
    • ensure you see the above-removed adapters repopulated
  • restart Windows
  • remove previous attempt’s BraveVPN config
  • restart Windows

Confirmed I could now purchase, configure, and use BraveVPN

error BraveVPN config another valid BraveVPN config BraveVPN removal success
image (1) image (2) image (6) image image (3)
Read more comments on GitHub >

github_iconTop Results From Across the Web

VPN not connecting: the biggest problems and how to fix them
If you can't connect to a VPN or your connection is slow, it might not be the VPN server, or the VPN provider....
Read more >
How to fix the four biggest problems with failed VPN connections
Is your VPN connected but not working? Learn four of the biggest trouble areas with VPN connections and how you can fix them...
Read more >
How to Fix a VPN That's Not Connecting - Lifewire
Check your internet connection. · Check your login credentials. · Change the VPN server connection. · Restart the VPN software or browser plug-in....
Read more >
IPVanish Not Connecting: Solved! (2022 Guide) - Privacy Affairs
IPVanish is Not Connecting? Read this guide and learn how to fix the most common errors that can result in IPVanish connection issues....
Read more >
The VPN seems connected but I can't connect to my server or ...
There are a number of possible causes for such a behavior. This FAQ will help you to find out what is causing the...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found