加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 综合聚焦 > 服务器 > 安全 > 正文

scala – Lagom ConductR连接拒绝错误

发布时间:2020-12-16 18:34:55 所属栏目:安全 来源:网络整理
导读:我是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 proje
我是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

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

Error: Unable to contact ConductR.

Error: Reason: HTTPConnectionPool(host=’127.0.0.1′,port=9005): Max retries exceeded with url: /v2/bundles (Caused by NewConnectionError(‘: Failed to establish a new connection: [Errno 111] Connection refused’,))

Error: Start the ConductR sandbox with: sandbox run IMAGE_VERSION

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

解决方法

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

sandbox run 2.1.12 -n 3 –feature visualization

而不是像上面那样使用沙箱运行2.0.8.

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

希望能帮助到你!!

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读