knav_negi

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:

Most Liked

gege251

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

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”.

Where Next?

Popular in Questions Top

marius95
Hello everyone, I try to use an Javascript Event Handler in my root.html.leex file. Therefore I created a function in the app.js file: ...
New
Tee
can someone please explain to me how Enum.reduce works with maps
New
mcarvalho
What is the difference between System.get_env and Application.get_env? For example, what are best practices to use one versus another.
New
siddhant3030
Hi, I have to write a raw query for one of my project. But till now I have used ecto queries and don’t have much experience writing raw ...
New
johnnyicon
Hi all, I’ve just started learning Elixir and Phoenix Framework, so please pardon my n00bness at this stage. I’m trying to use Postgres...
New
JulienCorb
I am trying to implement my new.html.eex file to create new posts on my website. new.html.eex: <h1>Create Post</h1> <%= ...
New
jay1
Why is it that the mnesia database isn’t the most preferred database for use in Elixir/Phoenix?
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
jason.o
In the code below, if the create action is not set to accept “extra_key” as an input, it errors out with a message shown above. Is there ...
New
PeterCarter
There are pre-rolled solutions for other frameworks that do work. However, Phoenix does not seem to have these. Have people had good expe...
New

Other popular topics Top

WestKeys
Currently suffering from paralysis by [HTTP client] analysis. This is rather unusual in Elixirland as there tends to be consensus on the ...
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
belgoros
I’m not a pro in using Regex and can’t figure out why the following behaviour happens, especially if we take into account the difference ...
New
AngeloChecked
What learn first? Rust or Elixir Hi Elixir community! I’m here because i want learn a new language. I’m a junior developer and mainly i ...
New
joeerl
Hello again - after a longish gap I’ve decided I really must dig into Elixir and see what’s been happening here - so I have a few questio...
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
komlanvi
Hi everyone, I was playing with phoenix liveView but I run into an issue. I have a form and want to validate each input text when the te...
New
openscript
Hello! Sorry for this astonishing simple question, but I’m really stuck. I try to set up the intellij-elixir plugin, but I don’t know ho...
New
JakeBecker
TL;DR: I’ve just released an implementation of Microsoft’s IDE-independent Language Server Protocol for Elixir. It adds language support ...
1144 54250 245
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