Geo: Project Settings > Repository page fails on secondary

Started GET "/root/test_projct/settings/repository" for 178.150.85.208 at 2019-03-06 13:15:49 +0000
Processing by Projects::Settings::RepositoryController#show as HTML
  Parameters: {"namespace_id"=>"root", "project_id"=>"test_projct"}
Completed 500 Internal Server Error in 29ms (ActiveRecord: 12.5ms | Elasticsearch: 0.0ms)

ActiveRecord::StatementInvalid (PG::ReadOnlySqlTransaction: ERROR:  cannot execute INSERT in a read-only transaction
: INSERT INTO "push_rules" ("project_id", "created_at", "updated_at") VALUES (1, '2019-03-06 13:15:49.692253', '2019-03-06 13:15:49.692253') RETURNING "id"):

config/initializers/active_record_locking.rb:14:in `_create_record'
ee/app/controllers/ee/projects/settings/repository_controller.rb:20:in `push_rule'
lib/gitlab/i18n.rb:55:in `with_locale'
lib/gitlab/i18n.rb:61:in `with_user_locale'
...
Assignee Loading
Time tracking Loading