Lagom ConductR 连接被拒绝错误
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
我在 运行 执行上述命令时遇到的错误 :-
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
。
希望对您有所帮助!!
我是 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
。
希望对您有所帮助!!