Skip to content
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

[Airbrake] [Production] PG::ReadOnlySqlTransaction: ERROR: cannot execute UPDATE in a read-only transaction : UPDATE "users" SET "last_sign_in_at" = '2016-05-10 04:27:47.946471', "current_sign_in_at" = '2016-05-10 07:21:50.425992', "sign_in_count" = 2... #235

Open
benarent opened this issue May 23, 2016 · 0 comments

Comments

@benarent
Copy link

Airbrake error: #4604
Airbrake project: 1112

Error type: ActiveRecord::StatementInvalid
Error message: PG::ReadOnlySqlTransaction: ERROR: cannot execute UPDATE in a read-only transaction : UPDATE "users" SET "last_sign_in_at" = '2016-05-10 04:27:47.946471', "current_sign_in_at" = '2016-05-10 07:21:50.425992', "sign_in_count" = 21347, "updated_at" = '2016-05-10 07:21:50.427043' WHERE "users"."id" = 3371
Where: pivotal#pivotal_stories
Occurred at: May 23, 2016 15:12:24 UTC
First seen at: May 23, 2016 15:12:24 UTC
Occurrences: 0 (0 since last deploy on Mar 30, 2016 19:37:42 UTC)

URL: https://cookieshq.airbrake.io/pivotal_stories?api_key=4343b63012e65a7fe11f944c89618211&project_id=98159&auth_token=33b25d819459154b4675a8fafc6fa352e8e00f27
File: [GEM_ROOT]/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb

Backtrace:

[GEM_ROOT]/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in async_exec
[GEM_ROOT]/gems/activerecord-4.2.6/lib/active_record/connection_adapters/postgresql_adapter.rb:592:in block in exec_no_cache
[GEM_ROOT]/gems/activerecord-4.2.6/lib/active_record/connection_adapters/abstract_adapter.rb:472:in block in log
[GEM_ROOT]/gems/activesupport-4.2.6/lib/active_support/notifications/instrumenter.rb:20:in instrument
...
Caused by PG::ReadOnlySqlTransaction: ERROR:  cannot execute UPDATE in a read-only transaction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant