Code Monkey home page Code Monkey logo

Comments (5)

sorentwo avatar sorentwo commented on July 30, 2024

You're correct, the Postgres notifier (and any Postgres Pub/Sub functionality) don't work with a database proxy.

Do other queries work with Oban.Repo? It's a light wrapper around your app's Repo that merely standardizes some options; I wouldn't expect Oban queries to differ.

Try the following query to check functionality:

import Ecto.Query

Oban.Repo.one(Oban.config(), last(Oban.Job))

Your stacktrace implies that connections are working, but the pool is overloaded. Has your average query time gone up from the proxy? Is your database pool large enough?

from oban.

sorentwo avatar sorentwo commented on July 30, 2024

@alvarezloaiciga Any update? If this isn't related to Oban, I'd love to close this issue out.

from oban.

alvarezloaiciga avatar alvarezloaiciga commented on July 30, 2024

@sorentwo sorry I got pulled into other things. Will run this tomorrow. One issue is that the app was crashing on start, after we added RDS Proxy.

from oban.

sorentwo avatar sorentwo commented on July 30, 2024

In lieu of more information, I'm closing this issue. We can reopen it in the future if there are more details!

from oban.

alvarezloaiciga avatar alvarezloaiciga commented on July 30, 2024

Hi @sorentwo we were able to fix this by adding ssl config in our DB connection. Found out that the error was:

[error] Postgrex.Protocol (#PID<0.1350.0>) failed to connect: ** (Postgrex.Error) FATAL 28000 (invalid_authorization_specification) This RDS Proxy requires TLS connections

To fix we just added this to the repo config:

  ssl: true,
  ssl_opts: [
    versions: [:"tlsv1.2"]
  ],

from oban.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.