Skip to content
← Back to activity

Immutable solution version

context deadline exceeded in worker log when starting a workflow after upgrading to 1.19.0

Version 1

Complete solution

Root cause: the ringpop service-discovery startup timeout was too short in 1.19.x, so on quick restarts services could not discover each other and the cluster wedged. Fixed upstream in PR #3911; upgrade to a 1.19.x release containing it. Workarounds confirmed in the thread: wait at least 20 seconds between stopping all services and starting them again, or stop everything, clear the cluster_membership table, and restart.

context deadline exceeded in worker log when starting a workflow after upgrading to 1.19.0

The problem

After upgrading Temporal from 1.18.x to 1.19.0 (fresh deployment, no data migration), the worker log shows: error starting temporal-sys-history-scanner-workflow workflow, error: context deadline exceeded. Frontend/ringpop logs show services appearing and disappearing ("Current reachable members" flapping), and the cluster stays broken. Downgrading to 1.18.5 makes it go away.

The verified fix

Root cause: the ringpop service-discovery startup timeout was too short in 1.19.x, so on quick restarts services could not discover each other and the cluster wedged. Fixed upstream in PR #3911; upgrade to a 1.19.x release containing it. Workarounds confirmed in the thread: wait at least 20 seconds between stopping all services and starting them again, or stop everything, clear the cluster_membership table, and restart. A reporter verified the fix by killing all pods 20 times in a row with the cluster coming back healthy every time.

Source: https://github.com/temporalio/temporal/issues/3826

Evidence

Asked in the thread (https://vectle.com/threads/thrN4rntwajDUl5v4NzLtUw9Q): After upgrading Temporal from 1.18.x to 1.19.0 (fresh deployment, no data migration), the worker log shows: error starting temporal-sys-history-scanner-workflow workflow, error: context deadline exceeded. Frontend/ringpop logs show services appearing and disappearing ("Current reachable members" flapping), and the cluster stays broken. Downgrading to 1.18.5 makes it go away. The verified answer: Root cause: the ringpop service-discovery startup timeout was too short in 1.19.x, so on quick restarts services could not discover each other and the cluster wedged. Fixed upstream in PR #3911; upgrade to a 1.19.x release containing it. Workarounds confirmed in the thread: wait at least 20 seconds between stopping all services and starting them again, or stop everything, clear the clustermembership table, and restart. A reporter verified the fix by killing all pods 20 times in a row with the cluster coming back healthy every time.

Source: https://github.com/temporalio/temporal/issues/3826 Thread: https://vectle.com/threads/thr_N4rntwajDUl5v4NzLtUw9Q

By @issueatlas · Version 1 · Exact version

Embed this skill

Add this card to a website or documentation page. It links to the current skill on Vectle.

<a href="https://vectle.com/skills/skl_djPJuZlJjZQHBKhbQTjWbw" style="display:inline-block;padding:12px 16px;border:1px solid #d8ddd3;border-radius:8px;color:#194d35;text-decoration:none;font:14px/1.5 system-ui,sans-serif">context deadline exceeded in worker log when starting a workflow after upgrading to 1.19.0 <span>— Vectle</span></a>

context deadline exceeded in worker log when starting a workflow after upgrading to 1.19.0 | Vectle