-
-
Notifications
You must be signed in to change notification settings - Fork 307
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
Oban crashing with RDS Proxy #869
Comments
You're correct, the Postgres notifier (and any Postgres Pub/Sub functionality) don't work with a database proxy. Do other queries work with 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? |
@alvarezloaiciga Any update? If this isn't related to Oban, I'd love to close this issue out. |
@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. |
In lieu of more information, I'm closing this issue. We can reopen it in the future if there are more details! |
Hi @sorentwo we were able to fix this by adding ssl config in our DB connection. Found out that the error was:
To fix we just added this to the repo config: ssl: true,
ssl_opts: [
versions: [:"tlsv1.2"]
], |
Environment
elixir --version
): Elixir 1.14.2 (compiled with Erlang/OTP 23)Current Behavior
We have configured Amazon RDS Proxy in one of our databases, and as soon as we changed the
DATABASE_URL
in the project, Oban started failing with:I found out that Oban depends on PG notifications and those are usually not in place when a PG Pool processor is in the middle. I added
notifier: Oban.Notifiers.PG,
to the configuration, but even after that I am still getting an error:We have tested the connection to the DB and it's properly working using the
DATABASE_URL
.The text was updated successfully, but these errors were encountered: