-
Bug
-
Resolution: Duplicate
-
Medium
-
None
-
master
-
Severity 2 - Major
Issue Summary
Jira deployed from an official docker image does not create catalina.out file in $JIRA_INST/logs folder
Steps to Reproduce
Deploy Jira from the official docker image (in my case I tried 8.9.1)
Expected Results
catalina.out file should be present in the $JIRA_INST/logs/ directory
Actual Results
catalina.out file is not there
Workaround
no workaround known yet
[SCALE-45] Catalina.out file is missing in $JIRA_INST/logs folder in dockerized Jira
Labels | New: dcxp-triaged |
Resolution | New: Duplicate [ 3 ] | |
Status | Original: Gathering Impact [ 12072 ] | New: Closed [ 6 ] |
Remote Link | Original: This issue links to "DCD-1187 (Bulldog)" [ 524557 ] | New: This issue links to "CLIP-1187 (JIRA Server (Bulldog))" [ 524557 ] |
Comment |
[ Hi [~soslopov] , yup yup, let me elaborate a bit more.
# The reason why {{catalina.out}} is not created is because of the manner in which Jira is started by Docker. The shell script {{start-jira.sh}} starts the Jira process in foreground mode, i.e. {{{}./start-jira.sh -fg{}}}. In this mode, the script calls catalina.sh with the "run" parameter, (see [https://www.mulesoft.com/tcat/tomcat-start] ). Instead of redirecting {{STDOUT}} and {{STDERR}} to {{{}catalina.out{}}}, it'll stream to console/terminal directly. # The reason why docker must run {{start-jira.sh}} in foreground is due to the nature of docker container. Unlike VM, docker container is a box of processes, once the init process is considered completed, the container will be stopped. Basically running {{start-jira.sh}} in daemon will stop docker container immediately, hence Jira instance will be stopped as well. So, running {{start-jira.sh}} in foreground within docker is by purpose so that Jira, as a long-running service, wont be stopped immediately. # Since we know that {{STDOUT}} and {{STDERR}} are streamed to console/terminal within the container, we can then retrieve them by running `docker logs` command. [https://docs.docker.com/config/containers/logging/] ] |
Remote Link | New: This issue links to "Page (Confluence)" [ 609495 ] |
Priority | Original: Low [ 4 ] | New: Medium [ 3 ] |
Duplicate of
SCALE-46