oban-bg / oban

💎 Robust job processing in Elixir, backed by modern PostgreSQL and SQLite3
https://oban.pro
Apache License 2.0
3.37k stars 314 forks source link

Config for Oban.Met? Not seen this before from AppSignal #1063

Closed ghenry closed 8 months ago

ghenry commented 8 months ago

Exception: RuntimeError - Untriaged

Occurred in Oban.Web.DashboardLive#mount on resi_switch (prod) in live_view
on April 03, 2024 at 21:11 (UTC)

MESSAGE

** (RuntimeError) no config registered for [Oban, Oban.Met] instance

SUMMARY

File: | lib/oban/web/dashboard_live.ex:171 in Oban.Web.DashboardLive.await_init/3 -- | -- d89169dae4d4d8  
ghenry commented 8 months ago

I must have missed these two plugins when I first set Oban Web up https://getoban.pro/docs/web/2.9.6/installation.html#configuration

ghenry commented 8 months ago

Actually, I was reading old docs. My config is correct as per:

https://getoban.pro/docs/web/2.10.3/installation.html#configuration

Will see if this was a one-off and keep this closed until then.

sorentwo commented 7 months ago

There have been intermittent reports of this issue, which seems to be a race condition in Oban Met's auto-start mechanism. It's possible to add Oban.Met as an Oban plugin and disable auto_start to work around it (which is documented in the next Met release):

config :oban_met, auto_start: false
ghenry commented 7 months ago

Thanks. Will do if it comes up again.

ghenry commented 7 months ago

Yeah, seeing lots of this now, so doing as you suggest:

2024-04-04T16:26:43.628 app[d89169dae4d4d8] lhr [info] ** (RuntimeError) no config registered for [Oban, Oban.Met] instance