-
We recently wanted to migrate installations and therfore wanted to enable "readonly" mode. For this i have done two things: Unfortunatly, when i log in it seems as if the app still wants to write to the database. I the following error:
which basically translates to "ERROR: Cant Update in Readonly mode" (because i have told the db to be readonly). I am using:
So, I am wondering, What am i missing (doing wrong) to enable a readonly mode for netbox? Thank you |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
This came up before: see google groups. In short, when you login, by default Netbox/Django updates the sessions table, so it doesn't work against a read-only database or replica. Using SESSION_FILE_PATH (see #2426) might work. There was also a feature request for cookie-based sessions (#3050, #3118) and there's more info in those tickets. |
Beta Was this translation helpful? Give feedback.
This came up before: see google groups.
In short, when you login, by default Netbox/Django updates the sessions table, so it doesn't work against a read-only database or replica.
Using SESSION_FILE_PATH (see #2426) might work. There was also a feature request for cookie-based sessions (#3050, #3118) and there's more info in those tickets.