# Pritunl Wireguard constant reconnects (urgent)

**URL:** <https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977>\
**Category:** Pritunl VPN\
**Tags:** pritunl-client\
**Created:** [January 20, 2025, 9:06am UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977 "2025-01-20T09:06:24Z")\
**Posts on this page:** 12\
**Page:** 2

<div class="post-metadata">

**Author:** ![Joly0](https://forum.pritunl.com/user_avatar/forum.pritunl.com/joly0/32/649_2.png) [@Joly0](https://forum.pritunl.com/u/Joly0)\
**Post date:** [February 7, 2025, 1:30pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/21 "2025-02-07T13:30:29Z")

</div>

Hey @zach can you give us some more input from your side?  
The version you recommended is working so far, but we do not want to stay on this version forever, therefore we need a fix for the current and future versions regarding this issue.

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [February 10, 2025, 6:35pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/22 "2025-02-10T18:35:22Z")

</div>

I have been reviewing the code looking for issues but I haven’t found any problems or been able to reproduce the issue.

---

<div class="post-metadata">

**Author:** ![Joly0](https://forum.pritunl.com/user_avatar/forum.pritunl.com/joly0/32/649_2.png) [@Joly0](https://forum.pritunl.com/u/Joly0)\
**Post date:** [February 24, 2025, 12:47pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/23 "2025-02-24T12:47:30Z")

</div>

@zach So what is your idea then? We are paying for pritunl and we cant just stick to the old client version forever. Something is broken and it needs a fix

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [February 24, 2025, 1:41pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/24 "2025-02-24T13:41:07Z")

</div>

I’ve been running several configurations trying to reproduce the issue. I haven’t seen any other reports of the same issue. I think there is possibly some compatibility issues that started when WireGuard was bundled with the client but that started in v1.3.4051.36. If you have a working release after that it’s a different issue. Also have you tried installing v1.3.4099.99 to verify the issue still occurs and it wasn’t something else that fixed the issue?

---

<div class="post-metadata">

**Author:** ![Joly0](https://forum.pritunl.com/user_avatar/forum.pritunl.com/joly0/32/649_2.png) [@Joly0](https://forum.pritunl.com/u/Joly0)\
**Post date:** [February 25, 2025, 12:07pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/25 "2025-02-25T12:07:09Z")

</div>

Hey @zach you are sure, wireguard is bundled with pritunl? From what i can see, in the client ui aswell as the github repo, wireguard is only bundled with macos. Also i uninstalled wireguard and pritunl version v1.3.4026.10 and installed the newer v1.3.4099.99. So far its working, but from the logs i can see, that it is using openvpn (obviously, i do not have the wireguard button anymore) and openvpn had no problems from the beginning, other than latency and performance problems that come from openvpn and not from pritunl. But i will now try and install wireguard again and will try it again with wireguard, but i wanted to let you know that for now.

---

<div class="post-metadata">

**Author:** ![Joly0](https://forum.pritunl.com/user_avatar/forum.pritunl.com/joly0/32/649_2.png) [@Joly0](https://forum.pritunl.com/u/Joly0)\
**Post date:** [February 25, 2025, 12:54pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/26 "2025-02-25T12:54:30Z")

</div>

Ok, even with the newest version and wireguard installed, i keep getting random disconnects

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [February 25, 2025, 2:40pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/27 "2025-02-25T14:40:20Z")

</div>

I believe I found the cause, the rewritten connection code was not retrying on failed ping requests. When the code was refactored the `retry` was left out from [**service/profile/profile.go**](https://github.com/pritunl/pritunl-client-electron/blob/1.3.4026.10/service/profile/profile.go#L3263). If you still have the full `Watch connection error` with the stack trace I should be able to confirm this was the cause. I’ve added some [**additional code**](https://github.com/pritunl/pritunl-client-electron/commit/60133ec4e87e2f71b1606ed78065970159738304) to retry for longer and on all errors except 400 responses which the server sends to instruct the client to disconnect. This will be included in the next release sometime in the next few weeks.

This would indicate your connection is unstable, if it is needing to retry pings every 5-10 minutes. You may want to relocate the server to a better location.

---

<div class="post-metadata">

**Author:** ![Joly0](https://forum.pritunl.com/user_avatar/forum.pritunl.com/joly0/32/649_2.png) [@Joly0](https://forum.pritunl.com/u/Joly0)\
**Post date:** [February 25, 2025, 2:56pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/28 "2025-02-25T14:56:35Z")

</div>

This is the service.logs file for my client that had a reconnect about 20 minutes ago

> <https://pastebin.com/0nKiGqs9>

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [February 25, 2025, 3:06pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/29 "2025-02-25T15:06:23Z")

</div>

Yes that was the cause, it should be retrying on that error.

---

<div class="post-metadata">

**Author:** ![Joly0](https://forum.pritunl.com/user_avatar/forum.pritunl.com/joly0/32/649_2.png) [@Joly0](https://forum.pritunl.com/u/Joly0)\
**Post date:** [February 26, 2025, 8:30am UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/30 "2025-02-26T08:30:15Z")

</div>

Do you happen to have a test build maybe that i could try to verify if this is really the problem?

---

<div class="post-metadata">

**Author:** ![zach](https://forum.pritunl.com/user_avatar/forum.pritunl.com/zach/32/1105_2.png) [@zach](https://forum.pritunl.com/u/zach)\
**Post date:** [February 26, 2025, 12:52pm UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/31 "2025-02-26T12:52:01Z")

</div>

There isn’t a test build and it may be a few weeks before the release is available. But it’s clear from the stack trace in the error. The `retry` in [**service/profile/profile.go**](https://github.com/pritunl/pritunl-client-electron/blob/1.3.4026.10/service/profile/profile.go#L3263) was left out when the code was copied to the new connection code in [**service/connection/wg.go**](https://github.com/pritunl/pritunl-client-electron/blob/1.3.4099.99/service/connection/wg.go#L425).

---

<div class="post-metadata">

**Author:** ![spbcity](https://forum.pritunl.com/letter_avatar_proxy/v4/letter/s/3be4f8/32.png) [@spbcity](https://forum.pritunl.com/u/spbcity)\
**Post date:** [March 5, 2025, 1:20am UTC](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977/32 "2025-03-05T01:20:30Z")

</div>

Hello!  
In my country, pritunl began to be actively blocked and at some point I was forced to look for alternative solutions. Tell me, is it possible to enable obfuscation to bypass blocking? How to do it?  
Thanks in advance

[Previous page](https://forum.pritunl.com/t/pritunl-wireguard-constant-reconnects-urgent/2977.md?page=1)
