jxxcarlson
Hi, I’ve set up a Phoenix app on Heroku which builds but then crashes. Below is the error message.
019-04-08T21:18:29.878617+00:00 app[web.1]: 21:18:29.878 [info] Application log_server exited: LogServer.Application.start(:normal, []) returned an error: shutdown: failed to start child: LogServer.Repo
2019-04-08T21:18:29.878635+00:00 app[web.1]: ** (EXIT) an exception was raised:
2019-04-08T21:18:29.878644+00:00 app[web.1]: ** (ArgumentError) supervisors expect the child to be a module, a {module, arg} tuple or a map with the child specification, got: {DBConnection.ConnectionPool, {Ecto.Repo.Supervisor, :start_child, [{DBConnection.ConnectionPool, :start_link, [{Postgrex.Protocol, [types: Postgrex.DefaultTypes, hostname: "localhost", port: 5432, repo: LogServer.Repo, telemetry_prefix: [:log_server, :repo], otp_app: :log_server, timeout: 15000, pool_size: 10, pool: DBConnection.ConnectionPool]}]}, Ecto.Adapters.Postgres, #Reference<0.1050692944.2562588678.94950>, %{opts: [timeout: 15000, pool_size: 10, pool: DBConnection.ConnectionPool], sql: Ecto.Adapters.Postgres.Connection, telemetry: {LogServer.Repo, :debug, [:log_server, :repo, :query]}}]}, :permanent, 5000, :worker, [DBConnection.ConnectionPool]}
Trending in Questions
Hey guys,
I’ve got a huge CSV ( around 10 GB ) that needs to be processed hourly
Do you guys have any suggestions what is the best prac...
New
Hello!
Could someone please give me a help/sample code, how to delete a file from s3 using waffle/waffle_ecto from Phoenix app.
I creat...
New
I have what I’ve heard referred to as a “lookup table” in my database. This is a way of assigning codes to common values. One common lo...
New
What approach to take when sending live updates to “random” users Hi! I have a question, I have a little chat app, and when I create a DM...
New
Anyone here using Honeybadger?
My Honeybadger account is being overwhelmed with noise from some bots. Seeing a lot of
Bandit.HTTPError...
New
I’m seeing that a list inside a Kino.DataTable will be interpreted as a charlist, even if the Kino.configure() is set to charlists: :as_l...
New
Hi, I’ve just set up an application with ash_authentication. There is only magic link strategy for now, so there is no confirmation add o...
New
Other Trending Topics
I am happy to introduce the very α version of the new programming language compiled to BEAM.
Welcome Cure.
It has literally three kille...
New
Hobbes is a low-level distributed database for the Elixir programming language.
Hobbes provides a simple, safe, and scalable storage lay...
New
ExRatatui lets you cook up rich terminal UIs in Elixir, powered by Rust’s ratatui via Rustler NIFs. Build interactive terminal applicatio...
New
Hello everyone. After busy few months I am happy to announce v0.1.0 of Emerge & Solve.
They are GUI (Emerge) and State management (S...
New
Corex is an accessible, unstyled UI component library for Phoenix that integrates Zag.js state machines using Vanilla JavaScript and Live...
New
There are three potential reasons for members of this forum to have a look at https://vutuv.de
You are tired or annoyed of LinkedIn.
Yo...
New
Categories:
Sub Categories:
Forums
Popular Tags
- #ecto
- #liveview
- #troubleshooting
- #learning-elixir
- #deployment
- #library
- #erlang
- #testing
- #genserver
- #mix
- #absinthe
- #remote-other
- #otp
- #plug
- #how-to-question
- #macros
- #postgres
- #elixirconf
- #channels
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #blog-post
- #elixir-ls
- #ai
- #elixirconf-us
- #phoenix_html
- #iex
- #graphql
- #genstage
- #websockets
- #supervisor
- #advent-of-code
- #distillery
- #processes
- #api
- #forms
- #hex
- #security
- #metaprogramming










Showing Posts 1 to 10- Show Best Posts
- Show All (oldest first)
- Show All (newest first)
al2o3cr
The shape of the data in that error message looks like what the old
Supervisor.Spec.worker()would produce; can you share yourapplication.exfile?jxxcarlson
Yes, @al2o3cr , here is the
application.exfile:outlog
what is the db setup in prod.exs?
jxxcarlson
Below is
prod.exs, I fixed one stupid error at (XX), but am still getting crashes. See further on down for the error message.ERROR MESSAGE:
al2o3cr
You may want to check what version of Elixir is used when your buildpack runs - the symptoms you’re describing sound just like the ones here:
jxxcarlson
I think that is part of the solution. I added a file
elixir_buildpack.configwith contentsThe app builds, but now I get a different error message:
Background: I did not set up the app with
--no-brunch --no-htmland have tried to reconfigure it to that end. Am using only thehashnuke/elixirbuildpack`.On heroku the app looks for the nonexistent
“/app/_build/prod/lib/log_server/priv/static/cache_manifest.json”
I don’t know if this is what is causing the crash. The app runs fine locally.
BrightEyesDavid
I don’t know if it’s the reason for the crash either, but have you tried removing the
cache_static_manifestkey fromprod.exsas per theapp[web.1]errors?jola
If you’re following the Phoenix heroku guide you’re probably missing
server: truein yourEndpointconfig. It only happens if you don’t use theheroku-buildpack-phoenix-staticbuildpack, which does usemix phx.serverin the Procfile.As context, when you run
mix phx.serverit automatically runs withserver: true, but not if you run withmix run --no-halt, which is what the buildpack does.Made a PR here to update it
jxxcarlson
Hello jola, where would I put
server: trueinendpoint,ex? I see variousplug ..entries in that file, and alsosocket ,,,, which I think is irrelevant.jeremyjh
You can also just provide your own Procfile, in your root make a file named
Procfilewith contents like: