Stuck with Golang Hello World #5484
Replies: 3 comments
-
Same here :/ |
Beta Was this translation helpful? Give feedback.
-
Hey. You can debug this by starting your service and checking if your service is registered on the backend side with Do you have a sample service somewhere? May be I can spot check your configuration. |
Beta Was this translation helpful? Give feedback.
-
Thanks for the response @3vilhamster, I am using the same docker-compose.yml referenced in the documentation. Then, I ran About the service, I copied and pasted the Golang hello world from the documentation. I put the code in this gist just in case, but it should be the exactly same code of the documentation. After some debugging, I believe the documentation has a typo: compared to cadence-samples repository, the documentation code listens to port 7933 instead of port 7833. I am new to Cadence so I am not entirely sure, but changing it to 7833 works as expected. |
Beta Was this translation helpful? Give feedback.
-
Hi,
I am stuck with Golang very first hello world example. On my Mac desktop, I am successfully able to start server, installed cli, registered domain and verified the domain. But when I run the worker with workflow, I never see logs from the activity. I see following logs with exception.
2023-12-17T18:05:05.732-0800 WARN internal/internal_worker.go:216 unable to verify if domain exist {"Domain": "test-domain", "TaskList": "test-worker", "WorkerID": "[email protected]@test-worker@273f7c44-d16b-4f70-a158-5fc4c6a62282", "WorkerType": "LocallyDispatchedActivityWorker", "domain": "test-domain", "error": "code:unavailable message:connection closed"}
go.uber.org/cadence/internal.verifyDomainExist.func1
/usr/local/go/bin/pkg/mod/go.uber.org/[email protected]/internal/internal_worker.go:216
go.uber.org/cadence/internal/common/backoff.Retry
/usr/local/go/bin/pkg/mod/go.uber.org/[email protected]/internal/common/backoff/retry.go:101
go.uber.org/cadence/internal.verifyDomainExist
/usr/local/go/bin/pkg/mod/go.uber.org/[email protected]/internal/internal_worker.go:226
go.uber.org/cadence/internal.(*activityWorker).Start
/usr/local/go/bin/pkg/mod/go.uber.org/[email protected]/internal/internal_worker.go:505
go.uber.org/cadence/internal.(*aggregatedWorker).Start
/usr/local/go/bin/pkg/mod/go.uber.org/[email protected]/internal/internal_worker.go:826
main.startWorker
/Users/vikramchhibber/workspace/cadence/main.go:84
main.main
/Users/vikramchhibber/workspace/cadence/main.go:28
runtime.main
/usr/local/go/src/runtime/proc.go:267
2023-12-17T18:05:05.732-0800 INFO internal/internal_worker.go:835 Started Activity Worker {"Domain": "test-domain", "TaskList": "test-worker", "WorkerID": "[email protected]@test-worker@273f7c44-d16b-4f70-a158-5fc4c6a62282"}
2023-12-17T18:05:05.732-0800 INFO cadence/main.go:89 Started Worker. {"worker": "test-worker"}
docker run --network=host --rm ubercadence/cli:master --do test-domain workflow la
main.helloWorldWorkflow | ccb2326a-96e1-40d8-9e5d-8b7c95c6a2ee | 483e9639-a148-45a4-8995-c2143aeaa7ac | test-worker | false | 01:41:50 | 01:41:50 | 01:42:50 | TIMED_OUT | 3 | 00:00:00
docker run --network=host --rm ubercadence/cli:master --do test-domain domain describe
Name: test-domain
UUID: 10296bb1-0ceb-457d-ae3b-f00e76f90c27
Description:
OwnerEmail:
DomainData: map[]
Status: REGISTERED
RetentionInDays: 1
EmitMetrics: true
IsGlobal(XDC)Domain: true
ActiveClusterName: cluster0
Clusters: [cluster0]
HistoryArchivalStatus: DISABLED
VisibilityArchivalStatus: DISABLED
Please let me know if anyone has inputs.
Regards
Beta Was this translation helpful? Give feedback.
All reactions