Authentication cache sometimes not working

Hi,

Users in my company are getting disconnected from the VPN quite often.

By inspecting the logs I noticed that only those users sometime do not have the log line: “Storing authentication cache token” after the authenticate, which requires them to authenticate again.

Again, to clarify:

The expectation:

[summer-dreams-3351][2024-02-13 08:51:15,304][INFO] Authenticating user
  user_name = "user@company.com"
  factors   = ["google", "otp", "pin"]
[summer-dreams-3351][2024-02-13 08:51:17,343][INFO] Storing authentication cache token
  user_name = "user@company.com"
  factors   = ["google", "otp", "pin"]

what actually happens:

[summer-dreams-3351][2024-02-13 08:51:15,304][INFO] Authenticating user
  user_name = "user@company.com"
  factors   = ["google", "otp", "pin"]

“Pritunl Authentication Cache” is checked in the Settings (and most of users do not experience such issue).

Thanks.

They may need to reimport the profile, some older profiles don’t have the added encryption keys that allow for additional encryption. The profile may also need to be reimported if configuration sync isn’t working and the profile has the Pritunl client cache was enabled on the server after the profile was imported. It could be an older Pritunl client with the older cache design that is no longer supported. Only the Pritunl Client will work with the cache, other OpenVPN clients don’t have the functionality.