500 thrown when logging into https://geo.ops.gitlab.net
After logging in via Google and verifying via 2FA, I see a 500 on the https://geo.ops.gitlab.net/profile/two_factor_auth page.
More details can be found at https://sentry.gitlab.net/gitlab/opsgitlabnet/issues/550189
PG::ReadOnlySqlTransaction: ERROR: cannot execute UPDATE in a read-only transaction
from peek/views/pg.rb:17:in `async_exec'
from peek/views/pg.rb:17:in `async_exec'
from active_record/connection_adapters/postgresql_adapter.rb:592:in `block in exec_no_cache'
from active_record/connection_adapters/abstract_adapter.rb:484:in `block in log'
from active_support/notifications/instrumenter.rb:20:in `instrument'
from active_record/connection_adapters/abstract_adapter.rb:478:in `log'
from active_record/connection_adapters/postgresql_adapter.rb:592:in `exec_no_cache'
from active_record/connection_adapters/postgresql_adapter.rb:584:in `execute_and_clear'
from active_record/connection_adapters/postgresql/database_statements.rb:173:in `exec_delete'
from active_record/connection_adapters/abstract/database_statements.rb:114:in `update'
from active_record/connection_adapters/abstract/query_cache.rb:14:in `update'
from active_record/relation.rb:88:in `_update_record'
from active_record/persistence.rb:515:in `_update_record'
from /opt/gitlab/embedded/service/gitlab-rails/config/initializers/active_record_locking.rb:15:in `_update_record'
from active_record/attribute_methods/dirty.rb:129:in `_update_record'
from active_record/callbacks.rb:310:in `block in _update_record'
from active_support/callbacks.rb:117:in `call'
from active_support/callbacks.rb:555:in `block (2 levels) in compile'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:92:in `__run_callbacks__'
from active_support/callbacks.rb:778:in `_run_update_callbacks'
from active_record/callbacks.rb:310:in `_update_record'
from active_record/timestamp.rb:70:in `_update_record'
from active_record/persistence.rb:504:in `create_or_update'
from active_record/callbacks.rb:302:in `block in create_or_update'
from active_support/callbacks.rb:117:in `call'
from active_support/callbacks.rb:555:in `block (2 levels) in compile'
from active_support/callbacks.rb:505:in `call'
from active_support/callbacks.rb:92:in `__run_callbacks__'
from active_support/callbacks.rb:778:in `_run_save_callbacks'
from active_record/callbacks.rb:302:in `create_or_update'
from active_record/persistence.rb:120:in `save'
from active_record/validations.rb:37:in `save'
from active_record/attribute_methods/dirty.rb:21:in `save'
from active_record/transactions.rb:286:in `block (2 levels) in save'
from active_record/transactions.rb:351:in `block in with_transaction_returning_status'
from active_record/connection_adapters/abstract/database_statements.rb:213:in `block in transaction'
from active_record/connection_adapters/abstract/transaction.rb:184:in `within_new_transaction'
from active_record/connection_adapters/abstract/database_statements.rb:213:in `transaction'
from active_record/transactions.rb:220:in `transaction'
from active_record/transactions.rb:348:in `with_transaction_returning_status'
from active_record/transactions.rb:286:in `block in save'
from active_record/transactions.rb:301:in `rollback_active_record_state!'
from active_record/transactions.rb:285:in `save'
from state_machines/integrations/active_record.rb:509:in `block in save'
from state_machines/integrations/active_record.rb:528:in `block in around_save'
from state_machines/transition_collection.rb:150:in `block in run_actions'
from state_machines/transition_collection.rb:170:in `catch_exceptions'
from state_machines/transition_collection.rb:148:in `run_actions'
from state_machines/transition_collection.rb:133:in `run_callbacks'
from state_machines/transition_collection.rb:212:in `run_callbacks'
from state_machines/transition_collection.rb:63:in `block (2 levels) in perform'
from state_machines/transition_collection.rb:63:in `catch'
from state_machines/transition_collection.rb:63:in `block in perform'
from state_machines/transition_collection.rb:186:in `within_transaction'
from state_machines/transition_collection.rb:62:in `perform'
from state_machines/integrations/active_record.rb:528:in `around_save'
from state_machines/integrations/active_record.rb:509:in `save'
from users/update_service.rb:22:in `execute'
...
Edited by 🤖 GitLab Bot 🤖