You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Using the latest django3-auth-saml2, and netbox 3.3.9
I have a replicated database that is in readonly. The netbox frontend should be accessible and works with local users.
When I enable SSO using this plugin, I get an error 'cannot execute UPDATE in a read-only transaction'
I traced this to the def sso_acs that runs the login(req, user_obj)
That call triggers the signal user_logged_in, and performs an update of the database to keep track of the last login timestamp.
In netbox, this is solved by disconnecting that signal, if the database is in readonly mode.
Can there be an option created to be compatible with a readonly database ?
some extra configuration parameter ?
Pieter
The text was updated successfully, but these errors were encountered:
Using the latest django3-auth-saml2, and netbox 3.3.9
I have a replicated database that is in readonly. The netbox frontend should be accessible and works with local users.
When I enable SSO using this plugin, I get an error 'cannot execute UPDATE in a read-only transaction'
I traced this to the
def sso_acs
that runs thelogin(req, user_obj)
That call triggers the signal
user_logged_in
, and performs an update of the database to keep track of the last login timestamp.In netbox, this is solved by disconnecting that signal, if the database is in readonly mode.
Can there be an option created to be compatible with a readonly database ?
some extra configuration parameter ?
Pieter
The text was updated successfully, but these errors were encountered: