cve-2022-26134-web-1 | INFO:root:Generating /opt/atlassian/confluence/conf/server.xml from template server.xml.j2 cve-2022-26134-web-1 | INFO:root:Generating /opt/atlassian/confluence/confluence/WEB-INF/classes/seraph-config.xml from template seraph-config.xml.j2 cve-2022-26134-web-1 | INFO:root:Generating /opt/atlassian/confluence/confluence/WEB-INF/classes/confluence-init.properties from template confluence-init.properties.j2 cve-2022-26134-web-1 | INFO:root:Generating /var/atlassian/application-data/confluence/confluence.cfg.xml from template confluence.cfg.xml.j2 cve-2022-26134-web-1 | INFO:root:User is currently root. Will downgrade run user to confluence cve-2022-26134-web-1 | INFO:root:Running Confluence with command '/opt/atlassian/confluence/bin/start-confluence.sh', arguments ['/opt/atlassian/confluence/bin/start-confluence.sh', '-fg'] cve-2022-26134-web-1 | executing as current user cve-2022-26134-web-1 | If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide cve-2022-26134-web-1 | cve-2022-26134-web-1 | Server startup logs are located in /opt/atlassian/confluence/logs/catalina.out cve-2022-26134-web-1 | --------------------------------------------------------------------------- cve-2022-26134-web-1 | Using Java: /opt/java/openjdk/bin/java cve-2022-26134-web-1 | 2024-04-25 08:01:37,871 INFO [main] [atlassian.confluence.bootstrap.SynchronyProxyWatchdog] A Context element for ${confluence.context.path}/synchrony-proxy is found in /opt/atlassian/confluence/conf/server.xml. No further action is required cve-2022-26134-web-1 | --------------------------------------------------------------------------- cve-2022-26134-web-1 | NOTE: Picked up JDK_JAVA_OPTIONS: --add-opens=java.base/java.lang=ALL-UNNAMED --add-opens=java.base/java.io=ALL-UNNAMED --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.util.concurrent=ALL-UNNAMED --add-opens=java.rmi/sun.rmi.transport=ALL-UNNAMED cve-2022-26134-web-1 | [0.001s][warning][gc] -Xloggc is deprecated. Will use -Xlog:gc:/opt/atlassian/confluence/logs/gc-2024-04-25_08-01-37.log instead. cve-2022-26134-web-1 | OpenJDK 64-Bit Server VM warning: INFO: os::commit_memory(0x00000000c0000000, 1073741824, 0) failed; error='Not enough space' (errno=12) cve-2022-26134-web-1 | # cve-2022-26134-web-1 | # There is insufficient memory for the Java Runtime Environment to continue. cve-2022-26134-web-1 | # Native memory allocation (mmap) failed to map 1073741824 bytes for committing reserved memory. cve-2022-26134-web-1 | # An error report file with more information is saved as: cve-2022-26134-web-1 | # /var/atlassian/application-data/confluence/hs_err_pid7.log
# resolve links - $0 may be a softlink - stolen from catalina.sh PRG="$0" while [ -h "$PRG" ]; do ls=`ls -ld "$PRG"` link=`expr"$ls" : '.*-> \(.*\)$'` ifexpr"$link" : '/.*' > /dev/null; then PRG="$link" else PRG=`dirname"$PRG"`/"$link" fi done PRGDIR=`dirname"$PRG"` export START_CONFLUENCE_JAVA_OPTS="-Datlassian.plugins.startup.options='${@}'"
if [ "$1" = "--help" ] || [ "$1" = "-h" ] ; then exec$PRGDIR/display-help.sh exit 0 fi
if [[ ${@} == *"disable-all-addons"* ]]; then echo"Disabling all user installed addons"; fi
if [[ ${@} == *"disable-addons"* ]]; then echo"Disabling specified plugins"; fi
PRGRUNMODE=false if [[ ${@} == *"-fg"* ]] || [[ ${@} == *"run"* ]]; then shift PRGRUNMODE=true else echo"" echo"To run Confluence in the foreground, start the server with start-confluence.sh -fg" fi
. `dirname$0`/user.sh #readin the username
if [ -z "$CONF_USER" ] || [ $(id -un) == "$CONF_USER" ]; then
echo executing as current user if [ "$PRGRUNMODE" == "true" ] ; then exec$PRGDIR/catalina.sh run $@ else exec$PRGDIR/startup.sh $@ fi
elif [ $UID -ne 0 ]; then
echo Confluence has been installed to run as $CONF_USER so please sudo run this to enable switching to that user exit 1
else
echo executing using dedicated user: $CONF_USER if [ -x "/sbin/runuser" ]; then sucmd="/sbin/runuser" else sucmd="su" fi
if [ "$PRGRUNMODE" == "true" ] ; then $sucmd -m $CONF_USER -c "$PRGDIR/catalina.sh run $@" else $sucmd -m $CONF_USER -c "$PRGDIR/startup.sh $@" fi
# cat /opt/atlassian/confluence/bin/setenv.sh #----------------------------------------------------------------------------------- # See the CATALINA_OPTS below for tuning the JVM arguments used to start Confluence #-----------------------------------------------------------------------------------
echo"If you encounter issues starting up Confluence, please see the Installation guide at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide"
# set the location of the pid file if [ -z "$CATALINA_PID" ] ; then if [ -n "$CATALINA_BASE" ] ; then CATALINA_PID="$CATALINA_BASE"/work/catalina.pid elif [ -n "$CATALINA_HOME" ] ; then CATALINA_PID="$CATALINA_HOME"/work/catalina.pid fi fi export CATALINA_PID
PRGDIR=`dirname"$0"` if [ -z "$CATALINA_BASE" ]; then if [ -z "$CATALINA_HOME" ]; then LOGBASE=$PRGDIR LOGTAIL=.. else LOGBASE=$CATALINA_HOME LOGTAIL=. fi else LOGBASE=$CATALINA_BASE LOGTAIL=. fi
PUSHED_DIR=`pwd` cd$LOGBASE cd$LOGTAIL LOGBASEABS=`pwd` cd$PUSHED_DIR echo"" echo"Server startup logs are located in $LOGBASEABS/logs/catalina.out"
# IMPORTANT NOTE: Only set JAVA_HOME or JRE_HOME above this line # Get standard Java environment variables if$os400; then # -r will Only work on the os400 if the files are: # 1. owned by the user # 2. owned by the PRIMARY group of the user # this will not work if the user belongs in secondary groups . "$CATALINA_HOME"/bin/setjre.sh else if [ -r "$CATALINA_HOME"/bin/setjre.sh ]; then . "$CATALINA_HOME"/bin/setjre.sh else echo"Cannot find $CATALINA_HOME/bin/setjre.sh" echo"This file is needed to run this program" exit 1 fi fi
#----------------------------------------------------------------------------------- # This section contains commonly modified Java options and system properties # When upgrading Confluence, copy this section to reapply your customizations # Always the review the new file for any changes to the default values
# To learn more about Java 8 options see: # https://docs.oracle.com/javase/8/docs/technotes/tools/windows/java.html # To learn more about Java 11 options see: # https://docs.oracle.com/en/java/javase/11/tools/java.html #-----------------------------------------------------------------------------------
# Set the Java heap size CATALINA_OPTS="-Xms${JVM_MINIMUM_MEMORY:=1024m} -Xmx${JVM_MAXIMUM_MEMORY:=1024m} -Dconfluence.home=${CONFLUENCE_HOME}${CATALINA_OPTS}"
# Default values for small to medium size instances CATALINA_OPTS="-XX:ReservedCodeCacheSize=${JVM_RESERVED_CODE_CACHE_SIZE:=256m}${CATALINA_OPTS}"
# Recommended values for medium to large, and enterprise size instances # Comment out the default values in the block above, then uncomment the values below # To learn more about the impact of disabling the upgrade recovery file see: # https://confluence.atlassian.com/x/ShtwPg #CATALINA_OPTS="-XX:ReservedCodeCacheSize=${JVM_RESERVED_CODE_CACHE_SIZE:=384m} ${CATALINA_OPTS}" #CATALINA_OPTS="-XX:+PrintTenuringDistribution ${CATALINA_OPTS}" #CATALINA_OPTS="-XX:+PrintGCDetails -XX:+PrintGCTimeStamps ${CATALINA_OPTS}" #CATALINA_OPTS="-Dconfluence.upgrade.recovery.file.enabled=false ${CATALINA_OPTS}"
# Additional Confluence system properties # For a list of properties recognized by Confluence see: # https://confluence.atlassian.com/display/DOC/Recognized+System+Properties # We recommend you include a support ticket ID and/or note to help track the reason for change # For example: # CSP-123456 - Added example JVM option to help explain this section #CATALINA_OPTS="-Dexample.property=true ${CATALINA_OPTS}"
# Uncomment this line to disable email notifications #CATALINA_OPTS="-Datlassian.mail.senddisabled=true -Datlassian.mail.fetchdisabled=true ${CATALINA_OPTS}"
#----------------------------------------------------------------------------------- # End of commonly modified Java options. You should not need to change the options # below unless recommended by Atlassian Support #-----------------------------------------------------------------------------------