首页 > 解决方案 > 无法开始马拉松-lb

问题描述

无论我使用默认配置还是自定义(减少 cpus,因为我正在试用),我的 maraton-lb 都无法启动,并且在健康检查中不停地失败。我究竟做错了什么?

日志:

[ALERT] 184/143843 (321) : Starting frontend marathon_http_in: cannot bind socket [0.0.0.0:80]
[ALERT] 184/143843 (321) : sendmsg logger #1 failed: No such file or directory (errno=2)
[ALERT] 184/143843 (321) : sendmsg logger #2 failed: No such file or directory (errno=2)
[ALERT] 184/143843 (321) : sendmsg logger #1 failed: No such file or directory (errno=2)
[ALERT] 184/143843 (321) : sendmsg logger #2 failed: No such file or directory (errno=2)
Received task health update, healthy: false
Received killTask for task marathon-lb.cbfaf218-7f97-11e8-aef1-70b3d5800001

马拉松-json:

{
  "marathon-lb": {
      "instances": 1.0, "mem": 1048.0, "cpus": 1
  }
}

dcos package install --options=marathon-config.json marathon-lb

仅供参考,我尝试了很多配置。Azure docs、marathon docs、mesos docs 和各种不同的变体。总是一样的结果。

标签: azuremarathondcos

解决方案


你有其他东西已经绑定到端口 80 吗?Marathon-lb 通常部署到公共代理,因此配置通常比您发布的配置长 - 您是否尝试过使用默认配置?默认情况下,它还需要绑定到 80 和 443,以及它使用的非特权端口 - 该错误看起来无法绑定到任何部署的地方。


推荐阅读