2017-12-13 94 views
5

मैं लैगॉम-एसबीटी के लिए नया हूं और मैं कंडक्टआर का उपयोग कर लागम सेवा बंडल चलाने की कोशिश कर रहा हूं।लागम आचरण कनेक्शन ने त्रुटि से इनकार कर दिया

मैं निम्नलिखित एसबीटी-conductr में संस्करण plugins.sbt

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

क्या कोई बता सकता है कि मुझे यह त्रुटि क्यों मिल रही है। अग्रिम में धन्यवाद!!

उत्तर

2

आप कमांड कि lightbend documentation में उल्लेख किया गया है चला सकते हैं: के रूप में ऊपर सैंडबॉक्स रन 2.0.8 का उपयोग करने का

sandbox run 2.1.12 -n 3 --feature visualization

बजाय।

सुनिश्चित करें कि आपने ConductRApplicationComponents को load(context: LagomApplicationContext) विधि Loader.scala फ़ाइल में बढ़ाया है।

उम्मीद है कि यह मदद करता है !!

संबंधित मुद्दे