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

sergio
In Ruby, I can go: User.find_by(email: "foobar@email.com").update(email: "hello@email.com") How can I do something similar in Elixir? ...
New
9mm
I am constructing a JSON object (map) and I need to conditionally set a field. I’m trying to write proper elixir-way code… and I’m at a l...
New
electic
Hi, I am new to Elixir. I am trying to use the DateTime component to insert a date into MySQL however the there seems to be no way to fo...
New
greenz1
I have a phoenix application from which a user can download multiple(5-6) files of size 1MB. I couldn’t find anything related to sending ...
New
myronmarston
The Elixir Typespec docs show the following syntax for keyword lists in typespecs: # ... | [key: type] # keyword lists...
New
freewebwithme
Using vs code and installed ElixirLS: support and debugger. And I got an error popped up on start up says Failed to run ‘elixir’ comma...
New
SoCreat
i’m a new one to elixir which editor can i use vs code? or atom? Thanks! :smiley:
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
romenigld
I am trying to run a deploy with docker and I successfully runned with this command: docker build -t romenigld/blog-prod . but when I t...
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

Other popular topics Top

Harrisonl
We have an ECS cluster with 4 services, where each task joins a single cluster, via discovery ECS discovery service. Currently when I de...
New
jononomo
I am trying to figure out how Mix knows whether the environment is test, dev, or prod – where is this set? Thanks.
New
minhajuddin
I have seen a lot of code which picks the first element from a list using Enum.at(0) instead of List.first. Is there a reason why people ...
New
aesmail
Hello guys, I have finally made it. I created an admin interface for a framework. It’s been on my todo list for years and with the curre...
New
Qqwy
Original source of discussion: This topic on the Pragmatic Programmers’ Functional Web Development with Elixir, OTP, and Phoenix forum. ...
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
RisingFromAshes
I’ve read in another post that it may be possible with a router helper - but I couldn’t find an appropriate one, and tbh, I’m still just ...
New
KronicDeth
Elixir plugin for JetBrain’s IntelliJ Platform (including Rubymine) This is a plugin that adds support for Elixir to JetBrains IntelliJ...
289 36432 110
New
sergio
Kind of like when jquery came out, it was super necessary. Existing drag and drop libraries have a bunch of baggage to support old browse...
New
lanycrost
Hi everyone! I need implement if…else if…else condition from my elixir code, and anymore of this control flow structures not work proper...
New

We're in Beta

About us Mission Statement