Warning: file_get_contents(/data/phpspider/zhask/data//catemap/7/elixir/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Elixir/Phoenix:服务器在生产中出现eafnosupport故障_Elixir_Phoenix Framework - Fatal编程技术网

Elixir/Phoenix:服务器在生产中出现eafnosupport故障

Elixir/Phoenix:服务器在生产中出现eafnosupport故障,elixir,phoenix-framework,Elixir,Phoenix Framework,我有一个Phoenix Web应用程序,它在开发模式下启动良好(ENV=dev mix phx.server) 但在生产模式中失败: ENV=prod mix phx.server=> [error]无法在:Ranch_tcp:listen([{:cacerts,:…},{:key,:…},{:cert,:…},:inet6,{:port,4000}])中启动Ranch listener HermesWeb.Endpoint.HTTP,原因是:eafnosupport(协议族不支持地址族) 端

我有一个Phoenix Web应用程序,它在开发模式下启动良好(
ENV=dev mix phx.server
) 但在生产模式中失败:

ENV=prod mix phx.server
=>

[error]无法在:Ranch_tcp:listen([{:cacerts,:…},{:key,:…},{:cert,:…},:inet6,{:port,4000}])中启动Ranch listener HermesWeb.Endpoint.HTTP,原因是:eafnosupport(协议族不支持地址族)

端点配置a基本相同:

dev.exs:

 config :hermes, HermesWeb.Endpoint,
   http: [port: 4000],
   url: [scheme: "https", host: "myhost", path: "/hermes/4000", port: 443],
   debug_errors: true,
   code_reloader: true,
   check_origin: false,
   watchers: [...]
prod.exs:

config :hermes, HermesWeb.Endpoint,
  http: [port: 4000],
  url: [scheme: "https", host: "myhost", path: "/hermes/4000", port: 443],
  cache_static_manifest: "priv/static/cache_manifest.json"
此错误是由inet6引起的吗

我试过了
http:[:inet,端口:4000],…
这也不行


如果您能提供任何帮助,我们将不胜感激

因为您遇到了同样的问题。你发现什么了吗?