karlosmid

karlosmid

Oban web dashboard crash in :prod on get /oban route, no crash in :dev

Hi! I have following issue with currency rate oban dashboard. currency rate is part of lab_umbrella:

Precheck

  • Do a quick search and make sure the bug has not yet been reported (done)
  • For support, favor using the Elixir Forum, Slack, IRC, etc.
  • Be friendly and polite!

Environment

  • “oban”: {:hex, :oban, “2.15.4”}
    “oban_pro”: {:hex, :oban_pro, “0.14.3”}, “69f55799c556338f6713c474e191326dfe95c0636ed3a32860195289351170fb”, [:mix],
    “oban_web”: {:hex, :oban_web, “2.9.7”}
  • PostgreSQL Version: postgres:11-alpine
  • Elixir & Erlang/OTP Versions
  • erlang 26.1.2
  • elixir 1.15.6-otp-26

Current Behavior

config :my_app, Oban,
engine: Oban.Pro.Queue.SmartEngine,
name: MyApp.Oban,
repo: MyApp.Repo,
plugins: [
Oban.Web.Plugins.Stats,
{
Oban.Pro.Plugins.DynamicPruner,
mode: {:max_age, {3, :days}}
},
{
Oban.Pro.Plugins.DynamicCron,
crontab:
}
],
queues: [
scheduled: [global_limit: 1]
]
application.yml
{Oban, Application.fetch_env!(:my_app, Oban)}
:my_app is part of umbrella application
rooter.ex
import Oban.Web.Router
scope “/”, MyAppWeb do
pipe_through [:browser, :oban_auth]

oban_dashboard("/oban",
  oban_name: MyApp.Oban,
  as: :my_app_oban_dashboard
)

end

Oban worker is working.

on GET /oban we get in log
#PID<0.130419.0> running MyAppWeb.Endpoint (connection #PID<0.130418.0>, stream id 1) terminated
Server: my-app.t2.lab.testenv.io:80 (http)
Request: GET /oban
** (exit) exited in: GenServer.call({:via, Registry, {Oban.Registry, {MyApp.Oban, {:plugin, Oban.Web.Plugins.Stats}}}}, :activate, 15000)
** (EXIT) no process: the process is not alive or there’s no process currently associated with the given name, possibly because its application isn’t started

In dev env, no issue.
It seems that Oban.Web.Plugins.Stats has not been started.

Expected Behavior

In prod env, on /oban route we get oban dashboard live view.
Thank you!

First Post!

sorentwo

sorentwo

Oban Core Team

You mentioned that it’s an umbrella application, are the worker and web nodes split? Meaning, is Oban running in on some worker nodes but on on the web node? If so, that’s the problem.

Is this a recent installation? There are a lot of improvements in Web v2.10, including the removal of Oban.Web.Plugins.Stats.

Where Next?

Popular in Questions Top

_russellb
I want to try my hand at web scraping. What tools/libraries do I need to use. I’m hoping to turn this into something professional so don’...
New
mgjohns61585
Could someone help me? I'm making my first elixir program, number guessing game. I can't figure out how to convert the user's guess from ...
New
chokchit
** (DBConnection.ConnectionError) connection not available and request was dropped from queue after 2733ms. You can configure how long re...
New
Darmani72
If I have a post route which an argument: post /my_post_route/:my_param1, MyController.my_post_handler How would get the post params ...
New
JorisKok
I have a server on AWS, and was running a load test using artillery. When looking at the Phoenix dashboard I see the Ports going to 100% ...
New
vonH
When I run the Plug and I recompile I wind up having to use Ctrl C to quit iex and start again. Witht the help of rlwrap I can use the cu...
New
hariharasudhan94
lets say i have a sample like a = 20; b = 10; if (a &gt; b) do {:ok, "a"} end if (a &lt; b) do {:ok, b} end if (a == b) do {:ok, "eq...
New
bsollish-terakeet
Credo is smart enough to check for (something like) this: assert length(the_list) == 0 with this response: Checking if an enum is empt...
New
script
If I have a string “1000 cfu/ml” . I want to remove the characters and / and space . So the string is like this "1000" What is the ...
New
rms.mrcs
Hi, I need to transform a list of numbers into a map where the keys are the indexes and the values are the original values of the list....
New

Other popular topics Top

chrismccord
Phoenix 1.4.0 released Phoenix 1.4 is out! This release ships with exciting new features, most notably with HTTP2 support, improved deve...
688 30840 112
New
Fl4m3Ph03n1x
About me? ( if you have nothing better to do than reading about some random guy in the internet :stuck_out_tongue: ) Hello all, this is ...
New
AstonJ
Posting this to see if we can make things easier for people to get into Neovim. If you use Neovim and have a favourite distro please let ...
New
gshaw
What is the idiomatic way of matching for not nil in Elixir? E.g., First way: defp halt_if_not_signed_in(conn, signed_in_account) when...
New
dokuzbir
I want to highlight html closing tags when i click a html tag. That works in .html files but doesnt work for html.eex templates. How can...
New
JeremM34
Hello, how can I check the Phoenix version ? Thanks !
New
vrod
I am using the Starship cross-shell prompt – it seems pretty nice, but I get some errors: [WARN] - (starship::utils): Executing command ...
New
fayddelight
I tried installing elixir 1.11.2 erlang 23.3.4 via asdf in my zsh shell. Enabled the versions locally and globally. When I list them ...
New
axelson
This post is a wiki (feel free to hit the edit button near the bottom right of this post to add your own changes!) This post collects co...
239 47849 226
New
svb
Hi! Currently I want to submit a form by pressing the Enter key. However, since my input field is of type “textarea” this is just adds a...
New

We're in Beta

About us Mission Statement