# Temporal error: context deadline exceeded

**URL:** <https://community.temporal.io/t/temporal-error-context-deadline-exceeded/10394>\
**Category:** Community Support\
**Tags:** go-sdk, server\
**Created:** [December 15, 2023, 10:29am UTC](https://community.temporal.io/t/temporal-error-context-deadline-exceeded/10394 "2023-12-15T10:29:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bryan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/bryan/32/3245_2.png) [@Bryan](https://community.temporal.io/u/Bryan)\
**Post date:** [December 15, 2023, 10:29am UTC](https://community.temporal.io/t/temporal-error-context-deadline-exceeded/10394/1 "2023-12-15T10:29:12Z")

</div>

Hi all, I used docker-compose to deploy Temporal on my local device. Initially I used the default docker-compose.yml, and then tried docker-compose-cass-es.yml. Below are the versions:  
GO\_VERSION= 1.21.0  
CASSANDRA\_VERSION=3.11.9  
ELASTICSEARCH\_VERSION=7.16.2  
TEMPORAL\_VERSION=1.22.2  
TEMPORAL\_UI\_VERSION=2.21.0

The container successfully runs and I can access the web UI and admin tools. I can register a new namespace and add search attributes. But when I try to execute a workflow from a service, I got:

> error":“context deadline exceeded”

This is the code:

> wfOptions := client.StartWorkflowOptions{  
> ID: wfId,  
> TaskQueue: service.taskQueue,  
> WorkflowIDReusePolicy: enums.WORKFLOW\_ID\_REUSE\_POLICY\_REJECT\_DUPLICATE,  
> SearchAttributes: searchAttributes,  
> }  
> \_, err := service.client.ExecuteWorkflow(context.Background(), wfOptions, “WorkflowName”, req)

I ran command to check cluster health and it is serving.  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/e/ed0435187606b8f21a5794dedb35c28f17997cdb.png)

But when I tried to check whether Temporal frontend service is up or not, it failed:

 ![image](https://us1.discourse-cdn.com/flex016/uploads/temporal/original/2X/f/fe05a66665fdd29cd25103d1a7c12da9830eb2b4.png)

However, I am able to execute workflow using tctl command. So, the problem is when I trigger it using my workflow service, but I still cannot pinpoint the cause.

When I try other functions, they work just fine.

> wfRun := service.client.GetWorkflow(ctx, wfId, “”)
> 
> workflow, err := service.client.ListWorkflow(ctx, &workflowservice.ListWorkflowExecutionsRequest{})  
> if err != nil {  
> return err  
> }

I tried to use another workflow, using the same namespace, task queue, and hostport on my local device, and it is successfully executed.

Please help to troubleshoot or advise.

---

<div class="post-metadata">

**Author:** ![Bryan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/bryan/32/3245_2.png) [@Bryan](https://community.temporal.io/u/Bryan)\
**Post date:** [December 15, 2023, 1:42pm UTC](https://community.temporal.io/t/temporal-error-context-deadline-exceeded/10394/2 "2023-12-15T13:42:34Z")

</div>

So I am finally able to execute the workflow. The only change that I did was not passing search attributes in the workflow options.

> wfOptions := client.StartWorkflowOptions{  
> ID: wfId,  
> TaskQueue: service.taskQueue,  
> WorkflowIDReusePolicy: enums.WORKFLOW\_ID\_REUSE\_POLICY\_REJECT\_DUPLICATE,  
> //SearchAttributes: searchAttributes,  
> }  
> \_, err := service.client.ExecuteWorkflow(ctx, wfOptions, utilities.WorkflowName, req)

Is it related to ‘Search Attributes not supported with Standard Visibility’?
