Lagom ConductR Failure Fails Error

I am new to lagom-sbt and I am trying to run the Lagom service pack using ConductR.

I added the next version of sbt-conductr to plugins.sbt

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

Here is what I launched so far

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

Here are the logs: -

 |------------------------------------------------| | 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 

An error occurred while executing the above commands: -

Error: Cannot contact ConductR.

Error: reason: HTTPConnectionPool (host = '127.0.0.1', port = 9005): The maximum number of attempts was exceeded using url: / v2 / bundles (caused by NewConnectionError (': Failed to establish a new connection: [Errno 111] Connection rejected' ,))

Error: run ConductR sandbox with: IMAGE_VERSION sandbox

Can someone tell me why I get this error. Thanks in advance!

+5
source share
1 answer

You can run the command specified in the lightbend documentation :

sandbox 2.1.12 -n 3 - visual visualization

instead of using sandbox 2.0.8 as above.

Make sure you add ConductRApplicationComponents using the load(context: LagomApplicationContext) method load(context: LagomApplicationContext) to your Loader.scala file.

Hope this helps!

+2
source

Source: https://habr.com/ru/post/1274031/


All Articles