-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guacamole user sync container failing and not syncing Entra with user db #2350
Comments
@jemrobinson any ideas? |
Possible that this is a larger number of users than we have tried to sync before and that is causing problems. Time out suggests to me the server we are querying is stalling or not working correctly. As the error happens in an SqlAlchemy command, presumably this is when interacting with the database of Guacamole users/connections. |
Can we get some more log messages? This would be helpful to narrow down where this is happening. My guess is that this is due to a missing "close connection" in one of the files here (https://github.com/alan-turing-institute/guacamole-user-sync/blob/main/guacamole_user_sync/postgresql). If anyone has time to take a look, it should be a relatively quick fix. |
After adding and removing users via Entra - it appears the maximum number of users is 10 |
Default max number of connections is 5+5 so that makes sense. The most likely thing seems that guacamole-user-sync is making a connection for each user, which risks going over the limit. |
After co-working hot fix 55 users have successfully been added and the sync container is running |
✅ Checklist
💻 System information
📦 Packages
List of packages
🚫 Describe the problem
Yesterday 55 users were added to the sbox123 SRE, one of the new users tried to log in and cannot see any connections.
Users were added to the User group via Entra in batches of 10 (manually) over the course of ~ 20-30 minutes.
Users added prior to yesterday have access.
Checking the status of the guacamole user sync container we can see it's terminating and restarting (presumably since yesterday - 130 times as of 5PM wednesday)
DB never finishes synchronising and appears to timeout and restart before it can
From: container logs for guacamole user sync container (50+ users assigned in Entra)
sqlalchemy.exc.TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00 (Background on this error at: https://sqlalche.me/e/20/3o7r)
🌳 Log messages
Relevant log messages
From: container logs for guacamole user sync container (50+ users assigned in Entra)
sqlalchemy.exc.TimeoutError: QueuePool limit of size 5 overflow 10 reached, connection timed out, timeout 30.00 (Background on this error at: https://sqlalche.me/e/20/3o7r)
♻️ To reproduce
The text was updated successfully, but these errors were encountered: