# I see "maximum attempts exceeded to update history" often in front end logs any idea what could be going wrong?

**URL:** <https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424>\
**Category:** Community Support\
**Tags:** history\
**Created:** [February 2, 2021, 10:01am UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424 "2021-02-02T10:01:01Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![madhu](https://avatars.discourse-cdn.com/v4/letter/m/a8b319/32.png) [@madhu](https://community.temporal.io/u/madhu)\
**Post date:** [February 2, 2021, 10:01am UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424/1 "2021-02-02T10:01:01Z")

</div>

{“level”:“error”,“ts”:“2021-02-02T06:32:34.640Z”,“msg”:“Unknown error”,“service”:“frontend”,“error”:“maximum attempts exceeded to update history”,“logging-call-at”:“workflowHandler.go:3454”,“stacktrace”:“[go.temporal.io/server/common/log/loggerimpl.(\*loggerImpl](http://go.temporal.io/server/common/log/loggerimpl.(*loggerImpl)).Error\n\t/temporal/common/log/loggerimpl/logger.go:138\[ngo.temporal.io/server/service/frontend.(\*WorkflowHandler](http://ngo.temporal.io/server/service/frontend.(*WorkflowHandler)).error\n\t/temporal/service/frontend/workflowHandler.go:3454\[ngo.temporal.io/server/service/frontend.(\*WorkflowHandler](http://ngo.temporal.io/server/service/frontend.(*WorkflowHandler)).RespondActivityTaskCompleted\n\t/temporal/service/frontend/workflowHandler.go:1452\[ngo.temporal.io/server/service/frontend.(\*DCRedirectionHandlerImpl](http://ngo.temporal.io/server/service/frontend.(*DCRedirectionHandlerImpl)).RespondActivityTaskCompleted.func2\n\t/temporal/service/frontend/dcRedirectionHandler.go:816\[ngo.temporal.io/server/service/frontend.(\*NoopRedirectionPolicy](http://ngo.temporal.io/server/service/frontend.(*NoopRedirectionPolicy)).WithNamespaceIDRedirect\n\t/temporal/service/frontend/dcRedirectionPolicy.go:111\[ngo.temporal.io/server/service/frontend.(\*DCRedirectionHandlerImpl](http://ngo.temporal.io/server/service/frontend.(*DCRedirectionHandlerImpl)).RespondActivityTaskCompleted\n\t/temporal/service/frontend/dcRedirectionHandler.go:812\[ngo.temporal.io/api/workflowservice/v1.\_WorkflowService\_RespondActivityTaskCompleted\_Handler.func1\n\t/go/pkg/mod/go.temporal.io/api@v1.4.0/workflowservice/v1/service.pb.go:1191\ngo.temporal.io/server/common/authorization.(\*interceptor](http://ngo.temporal.io/api/workflowservice/v1._WorkflowService_RespondActivityTaskCompleted_Handler.func1%5Cn%5Ct/go/pkg/mod/go.temporal.io/api@v1.4.0/workflowservice/v1/service.pb.go:1191%5Cngo.temporal.io/server/common/authorization.(*interceptor)).Interceptor\n\t/temporal/common/authorization/interceptor.go:136\[ngoogle.golang.org/grpc.getChainUnaryHandler.func1\n\t/go/pkg/mod/google.golang.org/grpc@v1.34.0/server.go:1051\ngo.temporal.io/server/common/rpc.ServiceErrorInterceptor\n\t/temporal/common/rpc/grpc.go:100\ngoogle.golang.org/grpc.chainUnaryServerInterceptors.func1\n\t/go/pkg/mod/google.golang.org/grpc@v1.34.0/server.go:1037\ngo.temporal.io/api/workflowservice/v1.\_WorkflowService\_RespondActivityTaskCompleted\_Handler\n\t/go/pkg/mod/go.temporal.io/api@v1.4.0/workflowservice/v1/service.pb.go:1193\ngoogle.golang.org/grpc.(\*Server](http://ngoogle.golang.org/grpc.getChainUnaryHandler.func1%5Cn%5Ct/go/pkg/mod/google.golang.org/grpc@v1.34.0/server.go:1051%5Cngo.temporal.io/server/common/rpc.ServiceErrorInterceptor%5Cn%5Ct/temporal/common/rpc/grpc.go:100%5Cngoogle.golang.org/grpc.chainUnaryServerInterceptors.func1%5Cn%5Ct/go/pkg/mod/google.golang.org/grpc@v1.34.0/server.go:1037%5Cngo.temporal.io/api/workflowservice/v1._WorkflowService_RespondActivityTaskCompleted_Handler%5Cn%5Ct/go/pkg/mod/go.temporal.io/api@v1.4.0/workflowservice/v1/service.pb.go:1193%5Cngoogle.golang.org/grpc.(*Server)).processUnaryRPC\n\t/go/pkg/mod/google.golang.org/grpc@v1.34.0/server.go:1210\[ngoogle.golang.org/grpc.(\*Server](http://ngoogle.golang.org/grpc.(*Server)).handleStream\n\t/go/pkg/mod/google.golang.org/grpc@v1.34.0/server.go:1533\[ngoogle.golang.org/grpc.(\*Server](http://ngoogle.golang.org/grpc.(*Server)).serveStreams.func1.2\n\t/go/pkg/mod/google.golang.org/grpc@v1.34.0/server.go:871”}

---

<div class="post-metadata">

**Author:** ![Wenquan\_Xing](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/wenquan_xing/32/362_2.png) [@Wenquan\_Xing](https://community.temporal.io/u/Wenquan_Xing)\
**Post date:** [February 2, 2021, 9:44pm UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424/2 "2021-02-02T21:44:21Z")

</div>

> [@madhu](#):
>
> maximum attempts exceeded to update history

That error typically means either Temporal history server is busy or underlying DB is busy. Plz check DB usage.

---

<div class="post-metadata">

**Author:** ![chandanbhattad](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/chandanbhattad/32/149_2.png) [@chandanbhattad](https://community.temporal.io/u/chandanbhattad)\
**Post date:** [September 30, 2021, 8:33pm UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424/3 "2021-09-30T20:33:28Z")

</div>

@Wenquan_Xing I am also facing this issue a lot in production and lot of activities and workflows are failing.  
I checked history replica memory CPU its very low. I have 2000 shards and 40 history replicas.  
mysql database CPU is under 10% usage.  
mysql database has 16vCPUs

not sure what else I should check.  
Please help. Thank you so much.

---

<div class="post-metadata">

**Author:** ![Gordon\_Bean](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/gordon_bean/32/224_2.png) [@Gordon\_Bean](https://community.temporal.io/u/Gordon_Bean)\
**Post date:** [November 10, 2021, 7:27pm UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424/4 "2021-11-10T19:27:43Z")

</div>

Does anyone have any info on this? Our production environment is impacted right now by this error, and there appears to be no documentation on what to do to fix it.

---

<div class="post-metadata">

**Author:** ![Gordon\_Bean](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/gordon_bean/32/224_2.png) [@Gordon\_Bean](https://community.temporal.io/u/Gordon_Bean)\
**Post date:** [November 10, 2021, 8:45pm UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424/5 "2021-11-10T20:45:54Z")

</div>

@Wenquan_Xing ?

---

<div class="post-metadata">

**Author:** ![nicolas\_meylan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/nicolas_meylan/32/687_2.png) [@nicolas\_meylan](https://community.temporal.io/u/nicolas_meylan)\
**Post date:** [December 7, 2021, 7:39am UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424/6 "2021-12-07T07:39:27Z")

</div>

Hello @Gordon_Bean I am interested if you found what was your issue and how you solve this

---

<div class="post-metadata">

**Author:** ![Wenquan\_Xing](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/wenquan_xing/32/362_2.png) [@Wenquan\_Xing](https://community.temporal.io/u/Wenquan_Xing)\
**Post date:** [December 7, 2021, 7:19pm UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424/7 "2021-12-07T19:19:10Z")

</div>

can you check the history service logs?

history service logs should contain more details

---

<div class="post-metadata">

**Author:** ![Mathiarasan](https://sea2.discourse-cdn.com/flex016/user_avatar/community.temporal.io/mathiarasan/32/2506_2.png) [@Mathiarasan](https://community.temporal.io/u/Mathiarasan)\
**Post date:** [July 26, 2022, 1:48am UTC](https://community.temporal.io/t/i-see-maximum-attempts-exceeded-to-update-history-often-in-front-end-logs-any-idea-what-could-be-going-wrong/1424/8 "2022-07-26T01:48:47Z")

</div>

Are you able to fix this problem? @madhu am also facing this issue but not able to find the root cause.
