Skip to content

Postgres replication issue on Fly.io since latest release (3.13.4) #708

@capoccias

Description

@capoccias

Elixir version

1.19.2

Database and Version

PostgreSQL 17.2

Ecto Versions

ecto 3.13.5

Database Adapter and Versions (postgrex, myxql, etc)

postgrex 0.21.1

Current behavior

  1. Create an Elixir app and Postgres app on Fly.io with the fly_postgres dependency
  2. Scale to multiple regions
  3. Bump to ecto_sql 3.13.4

Saw a bunch of errors immediately following a deployment that bumped ecto_sql from 3.13.3 to 3.13.4
These errors went away after downgrading back to 3.13.3
Note: our primary region is iad

This can be seen in the following screenshot from Sentry:
Image
01:31 ACDT: Deployed ecto_sql 3.13.4 (shown by the little purple dot under the bar graph)
01:48 ACDT: The first error
15:28 ACDT: Deployed ecto_sql 3.13.3
15:29 ACDT: The latest error
16:37 ACDT: Took this screenshot

Stack trace in Sentry:

ArgumentError: no node found running in region "iad"
    lib/fly_rpc.ex:165: Elixir.Fly.RPC.Fly.RPC.rpc_region/3
    lib/task/supervised.ex:105: Elixir.Task.Supervised.Task.Supervised.invoke_mfa/2

Expected behavior

I'd have hoped everything would keep working as it did prior to the upgrade

From what I can tell, this is the only code change in 3.13.4: 1883163

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions