Unable to Start Windows Service with Tomcat 7
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
問題
The Confluence Windows Service installation is successful:
But the startup fails with this:
There are no commons-daemon log generated in ConfluenceInstallation/logs
(this is normally the logs used to identify the service-related error.
Diagnosis.
- If there are commons-daemon.<date>.log generated in
ConfluenceInstallation/logs
, then this KB may not be applicable to you. Please refer to the error in the logs, and if it's a Win32-related error, then proceed with this instead: Problems installing Confluence as a service on Windows 64bit
原因
The windows service is not installed with the correct user permissions (need to install it with the Administrator privilege). This is due to the fact that tomcat7w.exe is still run as a regular user during service.bat install Confluence
.
ソリューション
- Right click on tomcat7w.exe, (located in
ConfluenceInstallation/bin
), and hit Properties. Navigate to the Compatibility tab, and select Run this program as an administrator - Apply the changes
- Run Command Prompt as an Administrator. To do this, look for "cmd" in your computer, right click on it, and hit Run as Administrator.
cd to
ConfluenceInstallation/bin
, and run:service.bat install confluence