-
Bug
-
Resolution: Unresolved
-
Low
-
None
-
6.0.2
-
Severity 2 - Major
-
0
-
When clicking start-confluence.bat or startup.bat, the command window disappears immediately.
If I use "catalina.bat run", the error message is something like:
C:\Atlassian\Confluence\bin>catalina.bat run 3 周五./0./1_ 8.18.18 30周五.-0.-1_08.18.18 If you encounter issues starting up Confluence, please see the Installation guid e at http://confluence.atlassian.com/display/DOC/Confluence+Installation+Guide Using CATALINA_BASE: "C:\Atlassian\Confluence" Using CATALINA_HOME: "C:\Atlassian\Confluence" Using CATALINA_TMPDIR: "C:\Atlassian\Confluence\temp" Using JRE_HOME: "C:\Atlassian\Confluence\jre" Using CLASSPATH: "C:\Atlassian\Confluence\bin\bootstrap.jar;C:\Atlassian\C onfluence\bin\tomcat-juli.jar" Invalid file name for use with -Xloggc: Filename can only contain the characters [A-Z][a-z][0-9]-_.%[p|t] but it has been C:\Atlassian\Confluence\bin\..\logs\gc -30周五.-0.-1_08.18.18.log Note %p or %t can only be used once Error: Could not create the Java Virtual Machine. Error: A fatal exception has occurred. Program will exit.
It looks in setenv.bat confluence is trying to specify gc log file name based on timestamp with Chinese characters, which is not accepted by the start command.
set atlassian_timestamp=%DATE:~-4%.%DATE:~4,2%.%DATE:~7,2%_%TIME:~0,2%.%TIME:~3,2%.%TIME:~6,2%
echo %atlassian_timestamp%
...
set CATALINA_OPTS=-Xloggc:"%atlassian_logsdir%\gc-%atlassian_timestamp%.log" %CATALINA_OPTS%
set CATALINA_OPTS=-XX:G1ReservePercent=20 %CATALINA_OPTS%
Workaround
Edit setenv.bat and alter this line:
set CATALINA_OPTS=-Xloggc:"%atlassian_logsdir%\gc-%atlassian_timestamp%.log" %CATALINA_OPTS%
To:
set CATALINA_OPTS=-Xloggc:"%atlassian_logsdir%\gc.log" %CATALINA_OPTS%
Be aware that the log files will overwrite on startup with this configuration, because the filename will no longer contain a unique timestamp. If you need to look at the gc logs, be sure to copy them before restarting the application.
- mentioned in
-
Page Loading...