temporalio / helm-charts

Temporal Helm charts
MIT License
294 stars 321 forks source link

[Bug] Several services crashing when deploying v.0.24.0 #407

Closed vishwa-trulioo closed 2 months ago

vishwa-trulioo commented 1 year ago

What are you really trying to do?

I attempted updating the Temporal deployment from Helm chart version 0.22.1 to 0.24.0. Several of the services starts crashing.

Details: Current Helm chart version: v0.22.1 Expected version: v0.24.0 Storage backend: MySQL/Aurora

Error summary:

sql schema version compatibility check failed: version mismatch for keyspace/database: "temporal". Expected version: 1.10 cannot be greater than Actual version: 1.9.

Kubernetes env details:

% kubectl --namespace=temporal get pods -l "app.kubernetes.io/instance=temporal"
NAME                                  READY   STATUS             RESTARTS        AGE
temporal-admintools-c5b5554f8-6hdm2   1/1     Running            0               11m
temporal-frontend-5dd4b6cd49-qrtkj    1/1     Running            0               17m
temporal-frontend-7895bcd6c6-fb7mn    0/1     CrashLoopBackOff   7 (4s ago)      11m
temporal-frontend-7895bcd6c6-npqsj    0/1     CrashLoopBackOff   7 (20s ago)     11m
temporal-history-774b8bf6b9-hfw9c     0/1     CrashLoopBackOff   2 (13s ago)     35s
temporal-history-774b8bf6b9-r6zqw     0/1     CrashLoopBackOff   7 (35s ago)     11m
temporal-history-fb6bb49cd-kkdvb      1/1     Running            0               17m
temporal-matching-65b59c5868-wtw9z    1/1     Running            0               17m
temporal-matching-758f4c7865-76ztd    0/1     CrashLoopBackOff   7 (25s ago)     11m
temporal-matching-758f4c7865-hmrt5    0/1     CrashLoopBackOff   5 (2m19s ago)   5m29s
temporal-web-956f445dd-tx6mg          1/1     Running            0               11m
temporal-worker-5d8dc58949-9clhc      1/1     Running            0               17m
temporal-worker-5d8dc58949-dhnvn      1/1     Running            0               17m
temporal-worker-d849c84bb-jqxbg       0/1     CrashLoopBackOff   7 (14s ago)     11m

Error details:

Notes:

Minimal Reproduction

Environment/Versions

Additional context

vishwa-trulioo commented 1 year ago

This may be related to the bug described in release 1.21.1. It says,

Do not upgrade to this version if you using advanced visibility with MySQL as storage. The release of v1.21.0 included an script to upgrade the schema, but it contains a bug. Please wait for the release of v1.21.2 which will fix it.

I will keep my eye on it to see if it fixes with 1.21.2 release and confirm if it automatically fixes.

robholland commented 2 months ago

Assuming this is fixed, please re-open if not.