knav_negi
Deploying Phoenix App on cloud foundry
Hi,
I am trying to deploy phoenix app to cloud Foundry. Somehow phoenix app does not start and I keep getting below error:
2018-06-03T10:36:38.15+0200 [APP/PROC/WEB/0] OUT {“Kernel pid terminated”,application_controller,“{application_start_failure,my_app,{{shutdown,{failed_to_start_child,‘Elixir.MyAppWeb.Endpoint’,{shutdown,{failed_to_start_child,‘Elixir.Phoenix.Endpoint.Handler’,{shutdown,{failed_to_start_child,{ranch_listener_sup,‘Elixir.MyAppWeb.Endpoint.HTTP’},{shutdown,{failed_to_start_child,ranch_acceptors_sup,{listen_error,‘Elixir.MyAppWeb.Endpoint.HTTP’,eafnosupport}}}}}}}}},{‘Elixir.MyApp.Application’,start,[normal,]}}}”}
2018-06-03T10:36:39.32+0200 [APP/PROC/WEB/0] ERR Crash dump is being written to: erl_crash.dump…done
2018-06-03T10:36:39.32+0200 [APP/PROC/WEB/0] ERR Kernel pid terminated (application_controller) ({application_start_failure,my_app,{{shutdown,{failed_to_start_child,‘Elixir.MyAppWeb.Endpoint’,{shutdown,{failed_to_start_child,'Elixir.Phoenix.Endpoi
2018-06-03T10:36:39.34+0200 [APP/PROC/WEB/0] OUT Exit status 1
My Manifest file is below:
applications:
- name: my-app
host: xpar
instances: 1
memory: 2G
port: 8080
buildpack: GitHub - HashNuke/heroku-buildpack-elixir: Heroku Buildpack for Elixir with nitro boost · GitHub
command: MIX_ENV=prod PORT=$PORT elixir -S mix phx.server
Most Liked
gege251
I just had the same issue. I use websockets in my application so removing them is not an option. After changing my settings from inet6 to inet4 helped.
config :my_app, MyAppWeb.Endpoint,
http: [:inet4, port: System.get_env("PORT") || 8080],
cache_static_manifest: "priv/static/cache_manifest.json"
voughtdq
Maybe something is wrong with the address you’re trying to use? I don’t really understand what eafnosupport would mean in this context, except “Address family not supported by protocol”.
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
- #elixirconf-us
- #advent-of-code
- #distillery
- #processes
- #forms
- #api
- #metaprogramming
- #security
- #hex









