Confluence Service will not Install - Failed Installing 'Confluence' Service
Platform Notice: Data Center - This article applies to Atlassian products on the Data Center platform.
Note that this knowledge base article was created for the Data Center version of the product. Data Center knowledge base articles for non-Data Center-specific features may also work for Server versions of the product, however they have not been tested. 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
Symptoms
When attempting to install Confluence as a Windows Service through the Windows command prompt...
service.bat install Confluence
The command prompt shows an error and the service is not installed:
Failed installing 'Confluence' service
Cause
- Windows Administrator privileges are required in order to install a service.
- There is an existing service with the same name.
Resolution 1
Run the command prompt as an Administrator to have the elevated privileges required to install the Confluence service.
Resolution 2
Remove the existing service with the same name using our script:
service.bat remove Confluence
Or remove with builtin service tools from the command prompt:
sc delete Confluence