Fix Services in CrashLoop because of "Required migrations are outdated, waiting for their execution..."
How to re-run migrations job in Linux
Introduction
Starting in L8.2.4, the API-Gateway service runs a migration module as one of it's initialization containers (called check-containers).
In some cases, the migration does not run successfully and may cause NodeJS-based Pods to be stuck in CrashLoopBackOff. Taking the Identity Service as an example, the following was be printed in it's service logs:
This means that the Identity Service was waiting for the migration to complete and because it was not done, the service exited gracefully.
Solution
1) Take a backup of the migration job specification:
2) Rerun the job:
3) Recycle service:
0 comments