# Reconnect on wakeup not working

**URL:** <https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585>\
**Category:** Pritunl VPN\
**Created:** [November 6, 2024, 10:52am UTC](https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585 "2024-11-06T10:52:20Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![supersteves](https://forum.pritunl.com/user_avatar/forum.pritunl.com/supersteves/32/1035_2.png) [@supersteves](https://forum.pritunl.com/u/supersteves)\
**Post date:** [November 6, 2024, 10:52am UTC](https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585/1 "2024-11-06T10:52:20Z")

</div>

I updated recently to the latest client 1.3.4066.51, and previously the VPN would keep its connection for several days before needing the pin + 2fa entry.

Since the update, every time the computer wakes from sleep, I have to dig out the Authenticator code and re-enter them.

Here’s the service log since the wakeup (redacted):

[2024-11-06 10:31:21][WARN] ▶ watch: Wakeup restarting…

[2024-11-06 10:31:21][INFO] ▶ connection: Stopping reconnect  
◆ client\_disconnect=false  
◆ client\_disconnect\_waiters=0  
◆ client\_disconnected=false  
◆ client\_provider=true  
◆ client\_startime=3870  
◆ data\_iface=“”  
◆ data\_mode=“”  
◆ data\_remotes=string{“x.x.x.x”}  
◆ data\_status=“connected”  
◆ data\_timestamp=1730885110  
◆ data\_tun\_iface=“”  
◆ ovpn\_auth\_failed=false  
◆ ovpn\_cmd=true  
◆ ovpn\_connected=true  
◆ ovpn\_dir=“”  
◆ ovpn\_last\_auth\_failed=-1  
◆ ovpn\_management\_pass=false  
◆ ovpn\_management\_port=0  
◆ ovpn\_path=“/Applications/Pritunl.app/Contents/Resources/pritunl-openvpn”  
◆ ovpn\_remotes=string{“x.x.x.x(x/udp)”}  
◆ ovpn\_running=1  
◆ ovpn\_tap\_iface=“”  
◆ profile\_device\_auth=false  
◆ profile\_disable\_dns=false  
◆ profile\_disable\_gateway=false  
◆ profile\_dynamic\_firewall=false  
◆ profile\_force\_connect=false  
◆ profile\_force\_dns=false  
◆ profile\_geo\_sort=false  
◆ profile\_id=“xxxx”  
◆ profile\_mode=“ovpn”  
◆ profile\_reconnect=true  
◆ profile\_sso\_auth=false  
◆ profile\_system\_profile=false  
◆ profile\_timeout=false  
◆ reason=“stop\_wait”  
◆ state\_closed=false  
◆ state\_closed\_waiters=0  
◆ state\_deadline=false  
◆ state\_delay=false  
◆ state\_id=“xxxx”  
◆ state\_interactive=true  
◆ state\_no\_reconnect=false  
◆ state\_stop=false  
◆ state\_system\_interactive=false  
◆ state\_temp\_paths=string{“/tmp/pritunl/xxxx”, “/tmp/pritunl/xxxx.auth”, “/tmp/pritunl/xxxx-block.sh”, “/tmp/pritunl/xxxx-up.sh”, “/tmp/pritunl/xxxx-down.sh”}  
◆ state\_time=time.Date(2024, time.November, 6, 9, 25, 10, 915277000, time.Local)  
◆ wg\_bash\_path=“/Applications/Pritunl.app/Contents/Resources/bash”  
◆ wg\_conf\_path=“”  
◆ wg\_conf\_path2=“”  
◆ wg\_connected=false  
◆ wg\_last\_handshake=0  
◆ wg\_path=“/Applications/Pritunl.app/Contents/Resources/wg”  
◆ wg\_priv\_key=false  
◆ wg\_pub\_key=false  
◆ wg\_quick\_path=“/Applications/Pritunl.app/Contents/Resources/wg-quick”  
◆ wg\_server\_pub\_key=false  
◆ wg\_sso\_start=time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)  
◆ wg\_sso\_token=false  
◆ wg\_util\_path=“”

[2024-11-06 10:31:21][ERRO] ▶ connection: Disconnecting  
◆ client\_disconnect=true  
◆ client\_disconnect\_waiters=0  
◆ client\_disconnected=false  
◆ client\_provider=true  
◆ client\_startime=3870  
◆ data\_iface=“”  
◆ data\_mode=“”  
◆ data\_remotes=string{“x.x.x.x”}  
◆ data\_status=“connected”  
◆ data\_timestamp=1730885110  
◆ data\_tun\_iface=“”  
◆ ovpn\_auth\_failed=false  
◆ ovpn\_cmd=true  
◆ ovpn\_connected=true  
◆ ovpn\_dir=“”  
◆ ovpn\_last\_auth\_failed=-1  
◆ ovpn\_management\_pass=false  
◆ ovpn\_management\_port=0  
◆ ovpn\_path=“/Applications/Pritunl.app/Contents/Resources/pritunl-openvpn”  
◆ ovpn\_remotes=string{“x.x.x.x(x/udp)”}  
◆ ovpn\_running=1  
◆ ovpn\_tap\_iface=“”  
◆ profile\_device\_auth=false  
◆ profile\_disable\_dns=false  
◆ profile\_disable\_gateway=false  
◆ profile\_dynamic\_firewall=false  
◆ profile\_force\_connect=false  
◆ profile\_force\_dns=false  
◆ profile\_geo\_sort=false  
◆ profile\_id=“xxxx”  
◆ profile\_mode=“ovpn”  
◆ profile\_reconnect=true  
◆ profile\_sso\_auth=false  
◆ profile\_system\_profile=false  
◆ profile\_timeout=false  
◆ state\_closed=false  
◆ state\_closed\_waiters=0  
◆ state\_deadline=false  
◆ state\_delay=false  
◆ state\_id=“xxxx”  
◆ state\_interactive=true  
◆ state\_no\_reconnect=true  
◆ state\_stop=true  
◆ state\_system\_interactive=false  
◆ state\_temp\_paths=string{“/tmp/pritunl/xxxx”, “/tmp/pritunl/xxxx.auth”, “/tmp/pritunl/xxxx-block.sh”, “/tmp/pritunl/xxxx-up.sh”, “/tmp/pritunl/xxxx-down.sh”}  
◆ state\_time=time.Date(2024, time.November, 6, 9, 25, 10, 915277000, time.Local)  
◆ wg\_bash\_path=“/Applications/Pritunl.app/Contents/Resources/bash”  
◆ wg\_conf\_path=“”  
◆ wg\_conf\_path2=“”  
◆ wg\_connected=false  
◆ wg\_last\_handshake=0  
◆ wg\_path=“/Applications/Pritunl.app/Contents/Resources/wg”  
◆ wg\_priv\_key=false  
◆ wg\_pub\_key=false  
◆ wg\_quick\_path=“/Applications/Pritunl.app/Contents/Resources/wg-quick”  
◆ wg\_server\_pub\_key=false  
◆ wg\_sso\_start=time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)  
◆ wg\_sso\_token=false  
◆ wg\_util\_path=“”

[2024-11-06 10:31:21][INFO] ▶ connection: Stopping reconnect  
◆ client\_disconnect=false  
◆ client\_disconnect\_waiters=0  
◆ client\_disconnected=false  
◆ client\_provider=true  
◆ client\_startime=3870  
◆ data\_iface=“”  
◆ data\_mode=“”  
◆ data\_remotes=string{“x.x.x.x”}  
◆ data\_status=“connected”  
◆ data\_timestamp=1730885110  
◆ data\_tun\_iface=“”  
◆ ovpn\_auth\_failed=false  
◆ ovpn\_cmd=true  
◆ ovpn\_connected=true  
◆ ovpn\_dir=“”  
◆ ovpn\_last\_auth\_failed=-1  
◆ ovpn\_management\_pass=false  
◆ ovpn\_management\_port=0  
◆ ovpn\_path=“/Applications/Pritunl.app/Contents/Resources/pritunl-openvpn”  
◆ ovpn\_remotes=string{“x.x.x.x(x/udp)”}  
◆ ovpn\_running=1  
◆ ovpn\_tap\_iface=“”  
◆ profile\_device\_auth=false  
◆ profile\_disable\_dns=false  
◆ profile\_disable\_gateway=false  
◆ profile\_dynamic\_firewall=false  
◆ profile\_force\_connect=false  
◆ profile\_force\_dns=false  
◆ profile\_geo\_sort=false  
◆ profile\_id=“xxxx”  
◆ profile\_mode=“ovpn”  
◆ profile\_reconnect=true  
◆ profile\_sso\_auth=false  
◆ profile\_system\_profile=false  
◆ profile\_timeout=false  
◆ reason=“stop\_background”  
◆ state\_closed=false  
◆ state\_closed\_waiters=0  
◆ state\_deadline=false  
◆ state\_delay=false  
◆ state\_id=“xxxx”  
◆ state\_interactive=true  
◆ state\_no\_reconnect=false  
◆ state\_stop=false  
◆ state\_system\_interactive=false  
◆ state\_temp\_paths=string{“/tmp/pritunl/xxxx”, “/tmp/pritunl/xxxx.auth”, “/tmp/pritunl/xxxx-block.sh”, “/tmp/pritunl/xxxx-up.sh”, “/tmp/pritunl/xxxx-down.sh”}  
◆ state\_time=time.Date(2024, time.November, 6, 9, 25, 10, 915277000, time.Local)  
◆ wg\_bash\_path=“/Applications/Pritunl.app/Contents/Resources/bash”  
◆ wg\_conf\_path=“”  
◆ wg\_conf\_path2=“”  
◆ wg\_connected=false  
◆ wg\_last\_handshake=0  
◆ wg\_path=“/Applications/Pritunl.app/Contents/Resources/wg”  
◆ wg\_priv\_key=false  
◆ wg\_pub\_key=false  
◆ wg\_quick\_path=“/Applications/Pritunl.app/Contents/Resources/wg-quick”  
◆ wg\_server\_pub\_key=false  
◆ wg\_sso\_start=time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)  
◆ wg\_sso\_token=false  
◆ wg\_util\_path=“”

[2024-11-06 10:31:24][INFO] ▶ utils: Restore DNS  
[2024-11-06 10:31:24][INFO] ▶ utils: Restore DNS  
[2024-11-06 10:31:25][INFO] ▶ utils: Clearing DNS state

[2024-11-06 10:31:25][INFO] ▶ profile: Disconnected without restart  
◆ client\_disconnect=true  
◆ client\_disconnect\_waiters=0  
◆ client\_disconnected=true  
◆ client\_provider=true  
◆ client\_startime=3875  
◆ data\_iface=“”  
◆ data\_mode=“”  
◆ data\_remotes=string{“x.x.x.x”}  
◆ data\_status=“disconnected”  
◆ data\_timestamp=0  
◆ data\_tun\_iface=“”  
◆ ovpn\_auth\_failed=false  
◆ ovpn\_cmd=true  
◆ ovpn\_connected=true  
◆ ovpn\_dir=“”  
◆ ovpn\_last\_auth\_failed=-1  
◆ ovpn\_management\_pass=false  
◆ ovpn\_management\_port=0  
◆ ovpn\_path=“/Applications/Pritunl.app/Contents/Resources/pritunl-openvpn”  
◆ ovpn\_remotes=string{“x.x.x.x(x/udp)”}  
◆ ovpn\_running=-1  
◆ ovpn\_tap\_iface=“”  
◆ profile\_device\_auth=false  
◆ profile\_disable\_dns=false  
◆ profile\_disable\_gateway=false  
◆ profile\_dynamic\_firewall=false  
◆ profile\_force\_connect=false  
◆ profile\_force\_dns=false  
◆ profile\_geo\_sort=false  
◆ profile\_id=“xxxx”  
◆ profile\_mode=“ovpn”  
◆ profile\_reconnect=true  
◆ profile\_sso\_auth=false  
◆ profile\_system\_profile=false  
◆ profile\_timeout=false  
◆ state\_closed=true  
◆ state\_closed\_waiters=0  
◆ state\_deadline=false  
◆ state\_delay=false  
◆ state\_id=“xxxx”  
◆ state\_interactive=true  
◆ state\_no\_reconnect=true  
◆ state\_stop=true  
◆ state\_system\_interactive=false  
◆ state\_temp\_paths=string{“/tmp/pritunl/xxxx”, “/tmp/pritunl/xxxx.auth”, “/tmp/pritunl/xxxx-block.sh”, “/tmp/pritunl/xxxx-up.sh”, “/tmp/pritunl/xxxx-down.sh”}  
◆ state\_time=time.Date(2024, time.November, 6, 9, 25, 10, 915277000, time.Local)  
◆ wg\_bash\_path=“/Applications/Pritunl.app/Contents/Resources/bash”  
◆ wg\_conf\_path=“”  
◆ wg\_conf\_path2=“”  
◆ wg\_connected=false  
◆ wg\_last\_handshake=0  
◆ wg\_path=“/Applications/Pritunl.app/Contents/Resources/wg”  
◆ wg\_priv\_key=false  
◆ wg\_pub\_key=false  
◆ wg\_quick\_path=“/Applications/Pritunl.app/Contents/Resources/wg-quick”  
◆ wg\_server\_pub\_key=false  
◆ wg\_sso\_start=time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)  
◆ wg\_sso\_token=false  
◆ wg\_util\_path=“”

[2024-11-06 10:31:29][INFO] ▶ utils: Restore DNS

---

<div class="post-metadata">

**Author:** ![supersteves](https://forum.pritunl.com/user_avatar/forum.pritunl.com/supersteves/32/1035_2.png) [@supersteves](https://forum.pritunl.com/u/supersteves)\
**Post date:** [November 6, 2024, 11:02am UTC](https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585/2 "2024-11-06T11:02:50Z")

</div>

And here are the logs from when I subsequently reauthenticated, in case it helps:

[2024-11-06 10:59:39][INFO] ▶ profile: Connecting  
◆ device\_auth=false  
◆ disable\_dns=false  
◆ disable\_gateway=false  
◆ dynamic\_firewall=false  
◆ force\_connect=false  
◆ force\_dns=false  
◆ geo\_sort=“”  
◆ mode=“ovpn”  
◆ profile\_id=“xxxx”  
◆ reconnect=true  
◆ sso\_auth=false

[2024-11-06 10:59:39][INFO] ▶ connection: Resolved remotes  
◆ public\_address=“”  
◆ public\_address6=“”  
◆ remotes=string{“x.x.x.x”}  
◆ sort\_method=“random”

[2024-11-06 10:59:39][INFO] ▶ connection: Attempting remotes  
◆ client\_disconnect=false  
◆ client\_disconnect\_waiters=0  
◆ client\_disconnected=false  
◆ client\_provider=true  
◆ client\_startime=0  
◆ data\_iface=“”  
◆ data\_mode=“”  
◆ data\_remotes=string{“x.x.x.x”}  
◆ data\_status=“connecting”  
◆ data\_timestamp=0  
◆ data\_tun\_iface=“”  
◆ ovpn\_auth\_failed=false  
◆ ovpn\_cmd=false  
◆ ovpn\_connected=false  
◆ ovpn\_dir=“”  
◆ ovpn\_last\_auth\_failed=-1  
◆ ovpn\_management\_pass=false  
◆ ovpn\_management\_port=0  
◆ ovpn\_path=“/Applications/Pritunl.app/Contents/Resources/pritunl-openvpn”  
◆ ovpn\_remotes=string{}  
◆ ovpn\_running=0  
◆ ovpn\_tap\_iface=“”  
◆ profile\_device\_auth=false  
◆ profile\_disable\_dns=false  
◆ profile\_disable\_gateway=false  
◆ profile\_dynamic\_firewall=false  
◆ profile\_force\_connect=false  
◆ profile\_force\_dns=false  
◆ profile\_geo\_sort=false  
◆ profile\_id=“xxxx”  
◆ profile\_mode=“ovpn”  
◆ profile\_reconnect=true  
◆ profile\_sso\_auth=false  
◆ profile\_system\_profile=false  
◆ profile\_timeout=false  
◆ remotes=string{“x.x.x.x”}  
◆ state\_closed=false  
◆ state\_closed\_waiters=0  
◆ state\_deadline=false  
◆ state\_delay=false  
◆ state\_id=“3a2113561ec56xxxx7c7”  
◆ state\_interactive=true  
◆ state\_no\_reconnect=false  
◆ state\_stop=false  
◆ state\_system\_interactive=false  
◆ state\_temp\_paths=string{}  
◆ state\_time=time.Date(2024, time.November, 6, 10, 59, 39, 17325000, time.Local)  
◆ wg\_bash\_path=“/Applications/Pritunl.app/Contents/Resources/bash”  
◆ wg\_conf\_path=“”  
◆ wg\_conf\_path2=“”  
◆ wg\_connected=false  
◆ wg\_last\_handshake=0  
◆ wg\_path=“/Applications/Pritunl.app/Contents/Resources/wg”  
◆ wg\_priv\_key=false  
◆ wg\_pub\_key=false  
◆ wg\_quick\_path=“/Applications/Pritunl.app/Contents/Resources/wg-quick”  
◆ wg\_server\_pub\_key=false  
◆ wg\_sso\_start=time.Date(1, time.January, 1, 0, 0, 0, 0, time.UTC)  
◆ wg\_sso\_token=false  
◆ wg\_util\_path=“”

---

<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:** [November 6, 2024, 2:35pm UTC](https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585/3 "2024-11-06T14:35:22Z")

</div>

This has been fixed in the repository and will be included in the release this week.

---

<div class="post-metadata">

**Author:** ![supersteves](https://forum.pritunl.com/user_avatar/forum.pritunl.com/supersteves/32/1035_2.png) [@supersteves](https://forum.pritunl.com/u/supersteves)\
**Post date:** [November 7, 2024, 8:39am UTC](https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585/4 "2024-11-07T08:39:51Z")

</div>

Amazing! Thank you.

---

<div class="post-metadata">

**Author:** ![supersteves](https://forum.pritunl.com/user_avatar/forum.pritunl.com/supersteves/32/1035_2.png) [@supersteves](https://forum.pritunl.com/u/supersteves)\
**Post date:** [December 2, 2024, 1:26pm UTC](https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585/5 "2024-12-02T13:26:42Z")

</div>

Hi Zach, using 1.3.4083, still dropping the connection every time my Mac sleeps. What can I do to diagnose?

---

<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:** [December 2, 2024, 5:49pm UTC](https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585/6 "2024-12-02T17:49:18Z")

</div>

Verify that Pritunl Client Authentication Cache is enabled in the top right settings on the server web console. Then reimport the profile to the client. The OpenVPN Authentication Cache option will no longer be attempted with the newer client.

---

<div class="post-metadata">

**Author:** ![supersteves](https://forum.pritunl.com/user_avatar/forum.pritunl.com/supersteves/32/1035_2.png) [@supersteves](https://forum.pritunl.com/u/supersteves)\
**Post date:** [December 2, 2024, 6:00pm UTC](https://forum.pritunl.com/t/reconnect-on-wakeup-not-working/2585/7 "2024-12-02T18:00:27Z")

</div>

I’ll try it. Many thanks.
