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

Asciinema server can't determine pg master after swittch #449

Open
s2face opened this issue Aug 13, 2024 · 0 comments
Open

Asciinema server can't determine pg master after swittch #449

s2face opened this issue Aug 13, 2024 · 0 comments

Comments

@s2face
Copy link

s2face commented Aug 13, 2024

asciinema server don't switch to new pg master.
After switching maser to previous -> server continue work fine

Steps to reproduce the behavior:

  1. setup DATABASE_URL=postgresql://user:password@host1:6432,host2:6432,host3:6432/asciinema
  2. start server
  3. switch pg master
  4. See error:
    ** (Postgrex.Error) ERROR 25006 (read_only_sql_transaction) cannot execute UPDATE in a read-only transaction (ecto_sql 3.10.1) lib/ecto/adapters/sql.ex:913: Ecto.Adapters.SQL.raise_sql_call_error/1 (ecto_sql 3.10.1) lib/ecto/adapters/sql.ex:828: Ecto.Adapters.SQL.execute/6 (ecto 3.10.3) lib/ecto/repo/queryable.ex:229: Ecto.Repo.Queryable.execute/4 (oban 2.15.2) lib/oban/engines/basic.ex:119: anonymous fn/4 in Oban.Engines.Basic.fetch_jobs/3 (ecto_sql 3.10.1) lib/ecto/adapters/sql.ex:1203: anonymous fn/3 in Ecto.Adapters.SQL.checkout_or_transaction/4 (db_connection 2.5.0) lib/db_connection.ex:1630: DBConnection.run_transaction/4 (oban 2.15.2) lib/oban/engine.ex:219: anonymous fn/4 in Oban.Engine.fetch_jobs/3 (oban 2.15.2) lib/oban/engine.ex:314: anonymous fn/3 in Oban.Engine.with_span/4

Expected behavior
I expect that server automatically discover new pg master and switch to it

Versions:

  • Ubuntu 22.04
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