We were using RedHat Openshift for hosting and deploying our application.
Everything was working fine untill recently the deployments using DeploymentConfig just started throwing ‘Crashloop backoff error’ with not much logs and fails as soon as we try to deploy.
Even using the old code which was working is now failing. Only deployments of already existing images in imagestreams can be deployed.
Any new deployment, will come and sit in image streams from nexus, but as soon as we edit the tag in deplymentconfig the pods will throw ‘Crashloop backoff error’ and then reverting to the old image
We tried checking with older code commits which used to work even they are failing.
2
Answers
A crash in the container during startup will often result in a CrashLoopBackOff error. In my daily practice of addressing this issue, I check the logs of the failing pod. Even if the pod crashes immediately, there should be logs that can provide an indication of what went wrong.
The
--previous
flag will show the logs from the pod’s previous instance, which is the one that crashed.Additionally, in some cases, you can inspect the YAML file in the deployment configuration, as it may contain error logs as well. Good luck!
I would check the following options:
not FIPS complaint, (Federal Information Processing Standards).
You may try the following if the previous steps did not help:
Reference: CrashLoopBackOff status for Openshift Pod