wdiechmann
(EXIT) shutdown: failed to start child: {:ranch_listener_sup, Endpoint.HTTP}
I’m literally inching my way into this - sorry for all these noob questions!
Now with a working Dockerfile and docker-compose.yml I’m starting the app with
_build/prod/rel/fish/bin/fish start
only to see this:
22:50:51.505 [info] Application fish exited: Fish.Application.start(:normal, []) returned an error: shutdown: failed to start child: FishWeb.Endpoint
** (EXIT) shutdown: failed to start child: {:ranch_listener_sup, FishWeb.Endpoint.HTTP}
** (EXIT) shutdown: failed to start child: :ranch_acceptors_sup
** (EXIT) :badarg
and I’m aware that there is some ‘badarg’ somewhere - but how am I going to find that?
My releases.ex looks like this:
import Config
secret_key_base = System.fetch_env!("SECRET_KEY_BASE")
cool_text = System.fetch_env!("COOL_TEXT")
application_port = System.fetch_env!("APP_PORT")
pool_size = System.fetch_env!("POOL_SIZE")
username = System.fetch_env!("DBUSER")
password = System.fetch_env!("DBPWRD")
database = System.fetch_env!("DBNAME")
hostname = System.fetch_env!("DBHOST")
urlhost = System.fetch_env!("URLHOST")
config :fish, FishWeb.Endpoint,
http: [:inet6, host: urlhost, port: String.to_integer(application_port)],
secret_key_base: secret_key_base,
url: [host: urlhost, port: String.to_integer(application_port)]
I’d really appreciate if someone could steer me in the right direction ![]()
oh - and doing port: application_portinstead does not change anything I’m afraid
Marked As Solved
NobbZ
In the :http key, there isn’t a :host key allowed.
Also Liked
wdiechmann
Oh, NobbZ! If only I had a few 100hrs more Elixir/Phoenix under my belt ![]()
Thank you so much for pointing that out !
Hermanverschooten
Old topic, but you just saved me from a headache.
thiagomajesk
I want to leave a comment here for posterity because this was the first result I got from searching about this error… If you are getting this exception while creating a Phoenix release, make sure that the port is not being used… You can check it with: lsof -i :5000 (if you are trying to run it in port 5000).
Popular in Questions
Other popular topics
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
- #channels
- #elixirconf
- #exunit
- #discussion
- #code-sync
- #javascript
- #podcasts
- #onsite
- #dialyzer
- #docker
- #authentication
- #umbrella
- #full-time-contract
- #podcasts-by-brainlid
- #ecto-query
- #elixir-ls
- #phoenix_html
- #iex
- #blog-post
- #graphql
- #genstage
- #ai
- #websockets
- #supervisor
- #advent-of-code
- #elixirconf-us
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #performance









