Project

General

Profile

Actions

Bug #10654

closed

Bug #1974: If an error happen during boostrap, the webapp starts but is in a zombie state and the error page is not displayed

If an error happen during boostrap, the webapp starts but is in a zombie state and the error page is not displayed

Added by François ARMAND over 7 years ago. Updated over 7 years ago.

Status:
Released
Priority:
N/A
Category:
System integration
Target version:
Severity:
UX impact:
User visibility:
Effort required:
Priority:
0
Name check:
Fix check:
Regression:

Description

Today, if there is an initialisation error in the inventory endpoint webapp or in Rudder webapp, the application container is nonetheless started but the application does not work. That is the expected behaviour (a servlet container may and generally run several application, it won't be good to have an error on one of them to shutdown the whole thing).

But in our case, we have one application container by application, and we manage the full environment. So it would be much much much more easy to diagnosis a boot error for an admin if the whole application was clearly stopped.

Option I see for now:

  • a System.exit(Int)
    • but that's bad because it brutally stops the servlet container, maybe letting open resources not cleaned
  • a container proprietary method (to be investigated for Jetty)
  • a syscall to a shell script that call the normal app container shutdown (well, I know, it's ugly, but it's the most configurable for an admin who want to add things for that case and portable and simple)
Actions

Also available in: Atom PDF