Open naresh8t7 opened 2 years ago
Hello @naresh8t7
There was a bug we introduced in a PR yesterday and reverted after a few hours.
Please run docker pull ubercadence/server:master-auto-setup
to update the image then run the docker-compose up
command again.
We added a test to protect the docker image so hopefully this won't happen again. https://github.com/uber/cadence/pull/4535
Sorry for the inconvenience!
Thanks @longquanzheng I am able to start the server now. But when I run the below command seeing few errors in common package's thrift_util.
go get go.uber.org/cadence
# go.uber.org/cadence/internal/common
../../../go/pkg/mod/go.uber.org/cadence@v0.18.2/internal/common/thrift_util.go:31:38: not enough arguments in call to thrift.NewTSerializer().Write
have (thrift.TStruct)
want (context.Context, thrift.TStruct)
../../../go/pkg/mod/go.uber.org/cadence@v0.18.2/internal/common/thrift_util.go:53:27: not enough arguments in call to t.Protocol.Flush
have ()
want (context.Context)
../../../go/pkg/mod/go.uber.org/cadence@v0.18.2/internal/common/thrift_util.go:57:28: not enough arguments in call to t.Transport.Flush
have ()
want (context.Context)
@naresh8t7 yeah that’s a know issue , please see https://github.com/uber-go/cadence-client/issues/1129#issuecomment-932554933 lmk if that works or not
Make sure you use the right version of thrift
Thrift 0.9.3 (use homebrew or distribution)
Thanks @longquanzheng . It worked.
When running samples, I created sample domain by running
docker run --network=host --rm ubercadence/cli:master --do samples-domain domain register -rd 1
and running the helloworld sample, getting below error in the worker. Any inputs will be highly appreciated. Thanks
2021-10-10T23:20:12.717-0400 WARN internal/internal_worker.go:261 unable to verify if domain exist {"Domain": "samples-domain", "TaskList": "helloWorldGroup", "WorkerID": "56269@XYZ@helloWorldGroup", "WorkerType": "LocallyDispatchedActivityWorker", "domain": "samples-domain", "error": "code:unknown message:received unknown error calling service: \"cadence-frontend\", procedure: \"WorkflowService::DescribeDomain\", err: unexpected EOF"}
What is the output of the domain register command?
I wonder if the server by docker compose is actually up
Yes, the docker compose is up and server is running fine. Domain register command output is as below. docker run --network=host --rm ubercadence/cli:master --do samples-domain domain describe Name: samples-domain UUID: 8e0445b2-f9e1-482f-9bf8-0cbe94147cc7 Description: OwnerEmail: DomainData: map[] Status: REGISTERED RetentionInDays: 1 EmitMetrics: true IsGlobal(XDC)Domain: true ActiveClusterName: primary Clusters: primary HistoryArchivalStatus: DISABLED VisibilityArchivalStatus: DISABLED Bad binaries to reset: +-----------------+----------+------------+--------+ | BINARY CHECKSUM | OPERATOR | START TIME | REASON | +-----------------+----------+------------+--------+ +-----------------+----------+------------+--------+
@naresh8t7 Sorry for the late response. Have you figured it out? I am guessing there is something wrong with the compiling sample repo, or networking issue with the docker(because your CLI is also docker). Something to try to eliminate the possibility of docker
brew install cadence-workflow
to get the cadence CLI, and then describe the domain again? docker system prune --all
to clean it up and restart the server. See more https://docs.docker.com/config/pruning/ . LMK how it goes.
Thanks @longquanzheng . It worked. When running samples, I created sample domain by running
docker run --network=host --rm ubercadence/cli:master --do samples-domain domain register -rd 1
and running the helloworld sample, getting below error in the worker. Any inputs will be highly appreciated. Thanks 2021-10-10T23:20:12.717-0400 WARN internal/internal_worker.go:261 unable to verify if domain exist {"Domain": "samples-domain", "TaskList": "helloWorldGroup", "WorkerID": "56269@XYZ@helloWorldGroup", "WorkerType": "LocallyDispatchedActivityWorker", "domain": "samples-domain", "error": "code:unknown message:received unknown error calling service: "cadence-frontend", procedure: "WorkflowService::DescribeDomain", err: unexpected EOF"}
Hi, can you check the latest change in samples? We have moved to gRPC so hopefully you won’t have any issue with thrift anymore
I am trying to run the cadence server using docker-compose and I am seeing below issues.