Unable to Start Windows Service with Tomcat 7
Platform notice: Server and Data Center only. This article only applies to Atlassian products on the Server and Data Center platforms.
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.
*Except Fisheye and Crucible
Problem
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
Cause
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
.
Resolution
- 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