core
core copied to clipboard
Task start could not get worker
I am trying start task with command:
sonmcli.exe task start 383 task.yaml
Error from sonmcli:
[ERR] Cannot start task: rpc error: code = Unknown desc = could not get worker client for deal 383 by eth address 0xeC1478eA64898002C32880f572228fAE97aC27D4: failed to connect to [{TCPAddr:{IP:37.59.57.163 Port:12240 Zone:}}]
Log from sonmnode:
2018-07-03T21:52:02.156+0300 INFO node/hub.go:55 handling Start request 2018-07-03T21:52:03.590+0300 WARN npp/puncher.go:104 failed to resolve remote peer via rendezvous {"remote_peer": "0xeC1478eA64898002C32880f572228fAE97aC27D4", "error": "rpc error: code = InvalidArgument desc = destination ID must have exactly 20 bytes format"} 2018-07-03T21:52:04.764+0300 ERROR zap/server_interceptors.go:39 finished unary call {"grpc.start_time": "2018-07-03T21:52:02+03:00", "system": "grpc", "span.kind": "server", "grpc.service": "sonm.TaskManagement", "grpc.method": "Start", "span.trace_id": "869e41f43524aaa", "span.span_id": "5c3e13119688b665", "peer.wallet": "0x47700c0f8c34a42BA88B35c9E67E5A925c7BF245", "error": "could not get worker client for deal 383 by eth address 0xeC1478eA64898002C32880f572228fAE97aC27D4: failed to connect to [{TCPAddr:{IP:37.59.57.163 Port:12240 Zone:}}]", "grpc.code": "Unknown", "grpc.time_ms": 2608.27587890625} github.com/sonm-io/core/vendor/go.uber.org/zap.Stack c:/gopath/src/github.com/sonm-io/core/vendor/go.uber.org/zap/field.go:209 github.com/sonm-io/core/vendor/go.uber.org/zap.(*Logger).check c:/gopath/src/github.com/sonm-io/core/vendor/go.uber.org/zap/logger.go:273 github.com/sonm-io/core/vendor/go.uber.org/zap.(*Logger).Check c:/gopath/src/github.com/sonm-io/core/vendor/go.uber.org/zap/logger.go:146 github.com/sonm-io/core/vendor/github.com/grpc-ecosystem/go-grpc-middleware/logging/zap.UnaryServerInterceptor.func1 c:/gopath/src/github.com/sonm-io/core/vendor/github.com/grpc-ecosystem/go-grpc-middleware/logging/zap/server_interceptors.go:39 github.com/sonm-io/core/vendor/github.com/grpc-ecosystem/go-grpc-middleware.ChainUnaryServer.func1 c:/gopath/src/github.com/sonm-io/core/vendor/github.com/grpc-ecosystem/go-grpc-middleware/chain.go:37 github.com/sonm-io/core/proto._TaskManagement_Start_Handler c:/gopath/src/github.com/sonm-io/core/proto/node.pb.go:468 github.com/sonm-io/core/vendor/google.golang.org/grpc.(*Server).processUnaryRPC c:/gopath/src/github.com/sonm-io/core/vendor/google.golang.org/grpc/server.go:920 github.com/sonm-io/core/vendor/google.golang.org/grpc.(*Server).handleStream c:/gopath/src/github.com/sonm-io/core/vendor/google.golang.org/grpc/server.go:1142 github.com/sonm-io/core/vendor/google.golang.org/grpc.(*Server).serveStreams.func1.1 c:/gopath/src/github.com/sonm-io/core/vendor/google.golang.org/grpc/server.go:637
I suspect you're using pre-release worker version, because of this:
destination ID must have exactly 20 bytes format
Please paste $ sonmworker --version here.