首页 文章

Lagom ConductR连接拒绝错误

提问于
浏览
5

我是lagom-sbt的新手,我正在尝试使用ConductR运行Lagom服务包 .

我在 plugins.sbt 中添加了以下 sbt-conductr 版本

addSbtPlugin("com.lightbend.conductr" % "sbt-conductr" % "2.4.0")

这是我到目前为止所做的

sbt 
sandbox run 2.0.8 
install 
bundle:dist 
project <my-service-impl>
conduct load <bindle_zip>

这是日志: -

|------------------------------------------------|
| Starting ConductR                              |
|------------------------------------------------|
Network address aliases are required so that the sandbox can operate as a cluster of machines.
To add the network aliases sudo privileges are required.
sudo ifconfig lo:0 192.168.10.1 netmask 255.255.255.255 up

运行上述命令时出现的错误: -

错误:无法联系ConductR . 错误:原因:HTTPConnectionPool(host ='127.0.0.1',port = 9005):使用url:/ v2 / bundles超出最大重试次数(由NewConnectionError引起(':无法 Build 新连接:[Errno 111] Connection refused' ,))错误:启动ConductR沙箱:sandbox运行IMAGE_VERSION

任何人都可以告诉我为什么会收到此错误 . 提前致谢!!

1 回答

  • 2

    您可以运行lightbend documentation中提到的命令:

    sandbox run 2.1.12 -n 3 - 特征可视化

    而不是像上面那样使用 sandbox run 2.0.8 .

    确保在 Loader.scala 文件中使用 load(context: LagomApplicationContext) 方法扩展了 ConductRApplicationComponents .

    希望能帮助到你!!

相关问题