Troubles with hello-workflow in edu-101-go-code

I pulled the repo and did all that was described in https://temporal.talentlms.com/plus/my/training/126/units/2147. Then I started doing this hands-on https://temporal.talentlms.com/plus/my/training/126/units/2121. But when I run go run worker/main.go I get this error
practice % go run worker/main.go
2025/11/28 12:14:45 INFO No logger configured for temporal client. Created default one.
2025/11/28 12:14:50 Unable to create client failed reaching server: context deadline exceeded
exit status

Also when I run
temporal workflow start \
--type GreetSomeone \
--task-queue greeting-tasks \
--workflow-id my-first-workflow \
--input '"Donna"'
I get this error in the console
time=2025-11-28T12:20:10.843 level=ERROR msg=“failed reaching server: context deadline exceeded”

Could you help me? What did I do wrong?

The error Unable to create client failed reaching server: context deadline exceeded tells us there’s no running or accessible Temporal server for the Worker code or CLI to communicate with. I’d dig into what exactly your Temporal server process is doing.

What was the output when you ran the temporal server start-dev command? Did you leave the Temporal dev server running while you attempted to run the Worker code in a separate terminal/window?

Thank you.

I get this
CLI 1.5.1 (Server 1.29.1, UI 2.42.1)

Server: localhost:7233
UI: http://localhost:8233
Metrics: http://localhost:51770/metrics

Also, I ran the temporal server with temporal server start-dev --ui-port 8080 --db-filename cluster.db

Is the Temporal server running at the time you try running the Worker code? It seems like you might have run the server then cancelled/closed the process.

You’ll need to run temporal server start-dev --ui-port 8080 --db-filename cluster.db in a separate window, and keep it open, to establish a service for the Temporal Worker to connect with. If the process that spawns in the window where you run temporal server start-dev --ui-port 8080 --db-filename cluster.db closes or stops, there will be no server for the Worker code to communicate with. If you’re attempting to run the Worker code in the same window you ran the dev server command in, then you’ve likely closed the Server process - hence the error.

No, I use two different terminals.

The first for run the server and the second to run the workflow

Can you share the Worker code?

It is just clear code from this repo GitHub - temporalio/edu-101-go-code: Code used in exercises and demonstrations for the "Temporal 101 with Go" course

The one thing that I changed is the name of the task queue name.

I cloned the repo, made the single string modification indicated in your screenshot, and ran the code without any issues:

Is this a work computer, or a personal one? Does your workplace implement firewall or network security software on its endpoints that might stop services communicating on your local device?

Or, do you happen to have another local service running on the required ports?

What do you see when you visit the url localhost:8080 in your browser?

What about the following:

  • env | grep -i temporal
  • ps aux | grep -i temporal
  • nc -zv 127.0.0.1 7233
  • nc -zv 127.0.0.1 8080
  • lsof -nP -iTCP:7233 -sTCP:LISTEN
  • lsof -nP -iTCP:8080 -sTCP:LISTEN
  • curl -I http://localhost:8080 -v

Here are all the commands that were run.


By the way, I can run temporal server start-dev --ui-port 8080 --db-filename cluster.db

But when I try to run worker with go run worker/main.goI get an error
Unable to create client failed reaching server: context deadline exceeded

I see that you ran cloud.
Could you, please, move to ./exercises/hello-workflow/practice and run go run worker/main.go?

My examples were run locally from within the edu-101-go-code/exercises/hello-workflow/practice directory.

context deadline exceeded is usually a network error. If you have a cloud address set in your environment variables (shown via the env | grep -i temporal), then you’ll need to unset that variable to connect to your local cluster.

I have nothing here

Dear Conor. I wanted to tell you that today everything works. Thank you for spending your time. Have a nice day.

1 Like