Hello,
I am currently deploying a Pritunl server on Ubuntu 22.04 LTS with pritunl v1.32.3602.80 and with a Mongo Replicaset (Mongo 7) hosted on 3 separate hosts.
I am however encountering the following problem:
Every time I stop the pritunl server, the following error appears in the logs in /var/log/pritunl.log
on the host machine:
Instance doc lost, stopping server. Check datetime setting
Then if I try to restart the server from the UI, after some time it eventually fails and the following message is printed:
Failed to start the server, server error occurred.
In the server logs, accessible from the UI, the following log appears:
[ERROR] Exception on /server/<server id>/operation/start [PUT]
Traceback (most recent call last):
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py", line 2528, in wsgi_app
response = self.full_dispatch_request()
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py", line 1825, in full_dispatch_request
rv = self.handle_user_exception(e)
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py", line 1823, in full_dispatch_request
rv = self.dispatch_request()
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py", line 1799, in dispatch_request
return self.ensure_sync(self.view_functions[rule.endpoint])(**view_args)
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/auth/app.py", line 10, in _wrapped
return call(*args, **kwargs)
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/handlers/server.py", line 1351, in server_operation_put
svr.start()
File "/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/server/server.py", line 1656, in start
raise ServerStartError('Server start timed out', {
pritunl.exceptions.ServerStartError: Server start timed out.
The only way to fix this timeout is to restart the pritunl service on the host.
After restarting the service, the server start successfully without any issue.
If I stop the server again, the same error log (Instance doc lost
) happens again.
There is no time drift between the pritunl host and the mongo hosts.
Does someone have an idea of where this error could come from?
Thank you