2017-12-13 101 views
5

Tôi mới dùng lagom-sbt và tôi đang cố gắng chạy gói dịch vụ Lagom bằng ConductR.Lỗi kết nối Lagom ConductR Lỗi từ chối

Tôi đã thêm sau SBT-conductr phiên bản trong plugins.sbt

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

Dưới đây là những gì tôi đã chạy đến nay

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

Dưới đây là các bản ghi: -

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

Lỗi tôi nhận được trong khi chạy các lệnh trên: -

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

Bất kỳ ai cũng có thể biết tại sao tôi gặp phải lỗi này. Cảm ơn trước!!

Trả lời

2

Bạn có thể chạy các lệnh đó đã được đề cập trong lightbend documentation:

sandbox run 2.1.12 -n 3 --feature visualization

thay vì sử dụng sandbox chạy 2.0.8 như trên.

Đảm bảo rằng bạn đã mở rộng ConductRApplicationComponents bằng phương thức load(context: LagomApplicationContext) trong tệp Loader.scala của mình.

Hy vọng điều đó sẽ hữu ích !!

Các vấn đề liên quan