【问题标题】:"iex -S mix" returns error server cannot start in Mac“iex -S mix”返回错误服务器无法在 Mac 中启动
【发布时间】:2015-12-19 23:12:48
【问题描述】:

我试图在 Mac 上的 elixir 中启动我的混音项目。该项目在 CentOS 上运行良好。 错误如下所示:

_build/dev/lib/<project_name>/ebin/Elixir.Mix.Tasks.Proddata.beam failed: :badfile
** (Mix) Could not start application exq: Exq.start(:normal, []) returned an error:
  shutdown: failed to start child: Exq.Manager
    ** (EXIT) {:connection_error, {:connection_error, :econnrefused}}

我尝试从 brew 更新我的 erlang 版本,但没有帮助。我也尝试过清理依赖项。我正在使用

Erlang/OTP 18 [erts-7.0.3] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false] [dtrace]

和 Elixir 1.0.5。

【问题讨论】:

  • 尝试删除整个 _build 目录树并重新编译。
  • @FredtheMagicWonderDog 试过了,没用

标签: macos elixir phoenix-framework elixir-iex


【解决方案1】:

让我们看看错误:

_build/dev/lib//ebin/Elixir.Mix.Tasks.Proddata.beam 失败::badfile

这意味着您正在尝试使用错误名称调用任务。也许您正在调用“mix run proddata”,它将查找名为 Proddata 的任务,但您可能已将其命名为不同的名称。使用mix help 查看哪些任务可用。

** (Mix) 无法启动应用程序 exq: Exq.start(:normal, []) 返回错误:shutdown: failed to start child: Exq.Manager ** (EXIT) {:connection_error, {:connection_error, :econnrefused}}

它说它无法连接到某物Exq.Manager 似乎需要 Redis,因此请确保 Redis 正在运行并且您已使用正确的凭据对其进行配置。

【讨论】:

  • 嘿,何塞,redis 连接失败,现在可以了。我不确定为什么要使用“Proddata”,现在一切正常。
猜你喜欢
  • 2017-08-27
  • 1970-01-01
  • 2014-07-01
  • 2020-10-06
  • 1970-01-01
  • 1970-01-01
  • 2016-08-28
  • 2016-01-06
  • 2015-06-14
相关资源
最近更新 更多