Hello,
It seems like after the recent upgrade v1.32.4034.11 user search stopped working within the UI - Failed to load users, server error occurred.
Here is the full error from server logs:
[snowy-skies-7274][2024-10-14 07:49:25,790][ERROR] Exception on /user/5e7de9809c2e48a5eea1c7a9 [GET]
Traceback (most recent call last):
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py”, line 2190, in wsgi_app
response = self.full_dispatch_request()
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py”, line 1486, in full_dispatch_request
rv = self.handle_user_exception(e)
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py”, line 1484, in full_dispatch_request
rv = self.dispatch_request()
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/flask/app.py”, line 1469, 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/user.py”, line 105, in user_get
for usr in query:
File “/usr/lib/pritunl/usr/lib/python3.9/site-packages/pritunl/organization/organization.py”, line 279, in iter_users
self.last_search_count = cursor.count()
AttributeError: ‘Cursor’ object has no attribute ‘count’
The version of MongoDB hasn’t changed during the upgrade…
Any thoughts?
Thanks and looking forward to reply.