[英]Lagom ConductR connection refused error
我是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引起(':無法建立新連接:[Errno 111] Connection refused' ))
錯誤:啟動ConductR沙箱:sandbox運行IMAGE_VERSION
任何人都可以告訴我為什么會收到此錯誤。 提前致謝!!
您可以運行lightbend文檔中提到的命令:
sandbox run 2.1.12 -n 3 - 特征可視化
而不是像上面那樣使用沙箱運行2.0.8 。
確保在Loader.scala
文件中使用load(context: LagomApplicationContext)
方法擴展了ConductRApplicationComponents
。
希望能幫助到你!!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.