CodeReady application receives SIGTERM and the CodeReady pod fails

Solution Verified - Updated -

Issue

  • CodeReady application receives a SIGTERM signal after which the application stops followed by failing of the liveness probe making the pod go in CrashLoopBackOff state.
  • CodeReady server application logs -
2019-04-08 14:25:37,253[ost-startStop-1]  [INFO ] [o.f.c.i.d.DbSupportFactory 44]       - Database: jdbc:postgresql://postgreesss:5432/dbche (PostgreSQL 9.6)
2019-04-08 14:25:37,340[ost-startStop-1]  [INFO ] [o.f.c.i.util.VersionPrinter 44]      - Flyway 4.2.0 by Boxfuse
2019-04-08 14:25:37,357[ost-startStop-1]  [INFO ] [o.f.c.i.d.DbSupportFactory 44]       - Database: jdbc:postgresql://postgreesss:5432/dbche (PostgreSQL 9.6)
2019-04-08 14:25:37,451[ost-startStop-1]  [INFO ] [i.f.CustomSqlMigrationResolver 158]  - Searching for sql scripts in locations [classpath:che-schema]
2019-04-08 14:25:37,558[ost-startStop-1]  [INFO ] [o.f.c.i.command.DbValidate 44]       - Successfully validated 42 migrations (execution time 00:00.111s)
2019-04-08 14:25:37,614[ost-startStop-1]  [INFO ] [o.f.c.i.command.DbMigrate 44]        - Current version of schema "public": 6.17.0.1
2019-04-08 14:25:37,615[ost-startStop-1]  [INFO ] [o.f.c.i.command.DbMigrate 44]        - Schema "public" is up to date. No migration necessary.
2019-04-08 14:25:40,421[ost-startStop-1]  [INFO ] [unknown.jul.logger 49]               - namespace [codeready] set; clustering enabled
2019-04-08 14:25:40,462[ost-startStop-1]  [INFO ] [unknown.jul.logger 49]               - Starting UndertowServer on port 8888 for channel address: codeready-5d49586679-6sh8j-51742
2019-04-08 14:25:40,528[ost-startStop-1]  [INFO ] [org.xnio 93]                         - XNIO version 3.3.4.Final
2019-04-08 14:25:40,561[ost-startStop-1]  [INFO ] [org.xnio.nio 55]                     - XNIO NIO Implementation Version 3.3.4.Final
2019-04-08 14:25:40,680[ost-startStop-1]  [INFO ] [unknown.jul.logger 49]               - UndertowServer started.

-------------------------------------------------------------------
GMS: address=codeready-5d49586679-6sh8j-51742, cluster=EclipseLinkCommandChannel, physical address=fe80:0:0:0:b880:29ff:fe6d:e76b%eth0:7800
-------------------------------------------------------------------

Received SIGTERM
Stopping Che server running on localhost:8080

Environment

  • Red Hat CodeReady Workspaces
    • 1.0
    • 1.1

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content