Hi,
I’m having issues with VPN instances repeatedly restarting causing client reconnects. When looking at the log file I see the following error for different VPN server instances on the Pritunl server several times a day.
[thriving-forest-9169][2025-05-11 16:41:00,513][WARNING] Removing instance doc
server_id = "67ed374617b505acd725ee94"
instance_id = "682013e6c94726328edb72e6"
cur_timestamp = "2025-05-11 16:41:00.500098"
ttl_timestamp = "2025-05-11 16:40:30.500098"
ping_timestamp = "2025-05-11 16:39:55.870000"
[thriving-forest-9169][2025-05-11 16:41:00,571][INFO] Recovering server state
server_id = "67ed374617b505acd725ee94"
prefered_hosts = ["ae928187adbf440184e662be89250926"]
[thriving-forest-9169][2025-05-11 16:41:00,641][INFO] Starting vpn server
server_id = "67ed374617b505acd725ee94"
instance_id = "6820d31cc94726328edc7d04"
instances = []
instances_count = 0
route_count = 0
network = "10.0.31.0/24"
network6 = "fd00:a001:f00::/64"
dynamic_firewall = false
route_dns = false
device_auth = false
host_id = "ae928187adbf440184e662be89250926"
host_address = <snip>
host_address6 = <snip>
host_networks = <snip>
cur_timestamp = "2025-05-11 16:41:00.641150"
libipt = false
[thriving-forest-9169][2025-05-11 16:41:01,637][ERROR] Instance doc lost, stopping server. Check datetime settings
server_id = "67ed374617b505acd725ee94"
instance_id = "682013e6c94726328edb72e6"
cur_timestamp = "2025-05-11 16:41:01.632152"
Traceback (most recent call last):
File "/usr/lib/pritunl/usr/lib/python3.9/threading.py", line 937, in _bootstrap
self._bootstrap_inner()
File "/usr/lib/pritunl/usr/lib/python3.9/threading.py", line 980, in _bootstrap_inner
self.run()
File "/usr/lib/pritunl/usr/lib/python3.9/threading.py", line 917, in run
self._target(*self._args, **self._kwargs)
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/helpers.py", line 42, in _wrapped
for _ in call(*args, **kwargs):
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/server/instance.py", line 1120, in _keep_alive_thread
logger.error(
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/logger/__init__.py", line 55, in error
kwargs['traceback'] = traceback.format_stack()
[thriving-forest-9169][2025-05-11 16:41:05,697][WARNING] Stopping duplicate instance, check date time sync
server_id = "67ed374617b505acd725ee94"
instance_id = "682013e6c94726328edb72e6"
I’m running
Ubuntu 20.04 LTS
pritunl v1.32.3805.95
mongodb v4.4.3 (Single Server, local instance)
System time is correct and updated via NTP. There are not any mongo errors in journalctl around the times the VPN server instances are restarted by pritunl.
Are there any other log files I can look at for a reason as to what would cause for errors relating to datetime sync?
Any pointers would be most appreciated.
Cheers
James