-
Notifications
You must be signed in to change notification settings - Fork 49
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
Stuck on "Launching OpenVPN..." #102
Comments
Interesting, could you also try with It seems like the issue might be the way it is splitting the "Initialization Sequence Completed" message. As it checks for that directly - Line 107 in 4f78e78
Could you check the log file too when running it? In |
Thanks for the fast reply!! Unfortunately adding Yeah, I thought it was weird that it was splitting the last line like that, but the logfile shows it as normal (here's the last part of it):
|
I still think the log parsing is the issue, if the buffer is being split right in the middle there, like it could just be bad luck that the log length is just enough to do that. A simple "fix" might be to increase the buffer size here to 8192 for example and try again. Line 77 in 4f78e78
You can build it from source with Rustup - https://rustup.rs/
In general I'm not sure what the best solution is for large log files. Since we only read it once, and read it forwards - and that is the issue here, like it reads once, happens to split the 1024 bytes in the middle of the phrase it is looking for, then clears the buffer and just reads the few remaining ones repeatedly. I think the simplest option is just to increase the buffer size since the log files aren't like megabytes in size (at least in the little part before initialisation that we care about), so memory usage isn't really an issue. Could you try to build it and test it with the larger buffer size please? As it's hard to test this since it depends on the length of the log from OpenVPN. |
After compiling with a buffer size of 8192 bytes, it's still splitting that one line :(
It makes sense that that's what could be causing the issue, but I have only a little experience with Rust, so I have no idea why it could be happening. I should also note that I'm not having this issue when I provide a NordVPN config file as a custom OpenVPN connection, like:
The above command will work fine without any issues whatsoever. |
Hmm, I think it's clearing the buffer every time. Try also commenting out line 115: Line 115 in 4f78e78
|
Hey, sorry for the late reply, I had a bunch of exams to revise for, but I just built it with a buffer of 8192 and commented out line 115 and it worked! Thanks so much for your help! |
Thanks for trying it, I will patch it here too. |
And do not clear the buffer to prevent splitting on the messages we need #102
It's updated on the AUR now btw - https://aur.archlinux.org/packages/vopono-bin/ And the deb packages are on the release page: https://github.com/jamesmcm/vopono/releases/tag/0.8.5 |
Great - appreciate it! |
Hi, I'm just trying to test out this program (it looks exactly like what I need so thank you for making it!) but I'm having some trouble while using it with NordVPN. I'm running Ubuntu Server 20.04.3.
I've synced all the OVPN config files and am now trying to run the following command:
But it gets no further than this:
It just stays on "Launching OpenVPN..." forever, until I manually kill the program. I can confirm that when using OpenVPN normally, I can connect fine.
Verbose output:
Could I be doing something wrong? There are no other running programs using either OpenVPN or Vopono, and my server is 100% online, as I'm SSH-ing into it while it's running a few hundred kilometres away at a friend's house.
Thanks in advance for any help!
Edit: I also tried running it with
--firewall iptables
- still had the same result, stuck on "Initialization Sequence Completed".The text was updated successfully, but these errors were encountered: