OpenShift Gogs Fails to Create Required Postgresql Database

From NovaOrdis Knowledge Base
Revision as of 21:56, 5 December 2017 by Ovidiu (talk | contribs) (Created page with "=Internal= * OpenShift Troubleshooting =Overview= The integrated CI/CD (Gogs/Nexus/etc.) deployment fails because Gogs deployment fails....")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Internal

Overview

The integrated CI/CD (Gogs/Nexus/etc.) deployment fails because Gogs deployment fails. The Gogs deployment fails because the liveness probe kills the container that is being initialized right when it creates the required database ("gogs"). The next time the container is started, most of the structures are there, so the database creation is not being attempted anymore - thus the readiness probe fails.

Solution

Relax liveness - it takes longer to become live.