confluence service will not start after install
Asked by Tushar M:

start_service.bat runs the below command and we get the below result. Can you help?

PS C:\\Program Files\\Atlassian\\Confluence\> net start Confluence200715163754 The service name is invalid.

More help is available by typing NET HELPMSG 2185.

Attempting to open <http://localhost:8090/> on the local machine results in

"This Page Cannot be displayed"

Thanks


Answers:
author: JD Sal
body: I had same exact issue and Marcus's solution helped. However mine problem was I had jdk and jre installed but pointed to the incorrect location.

In your environment variables, ensure JAVA_HOME and JRE_HOME are set correctly. My JAVA_HOME was set to "C:\\Program Files\\Java\\jre1.8.0_51" but it should really be "C:\\Program Files\\Java\\jdk1.8.0_51"

Once you get all the java variables fixed, simply run "C:\\Program Files\\Atlassian\\Confluence\>service.bat install" to install the windows service then start the service.


author: Marcus
body: Have you installed the JDK? I was having the same issue on Windows Server 2008 R2 and this solved it:

<https://confluence.atlassian.com/display/DOC/Installing+Java+for+Confluence>


author: Tushar M
body: Hi Guilherme,

**none of the above is correct.**

**We installed using atlassian-confluence-5.7.3-x64.exe**

**We took the defaults which included installing confluence as a service**

**At the end of the process we saw this:**

**When the browser launched we saw this**

**After that I checked the service. I ran the shortcut installed on the Start screen**

**I tried the localhost:8090 again and got the same result as above.**

**I checked the properties of the Start Confluence Service \[8090\] shortcut.**

**That shortcut referred me to**

**C:\\Program Files\\Atlassian\\Confluence\\** **start_service.bat**

**That batch file produced the output**

PS C:\\Program Files\\Atlassian\\Confluence\> .\\start_service.bat

The service name is invalid.

More help is available by typing NET HELPMSG 2185.

PS C:\\Program Files\\Atlassian\\Confluence\>

**I opened start_service.bat and found the command**

if "%OS%" == "Windows_NT" setlocal

rem ---------------------------------------------------------------------------

rem Start script for the Confluence Service

rem

net start Confluence200715163754

I ran the net start command and got

The service name is invalid.

More help is available by typing NET HELPMSG 2185.

**I uninstalled and reinstalled confluence and got exactly the same result the second time.**

**Is there something wrong with atlassian-confluence-5.7.3-x64.exe?**

**thanks**

**kent dannehl**


author: Guilherme V.
body: Hi Tushar,

It looks like you have installed the service with another name.  

I guess you have executed the following prompt command:

* service.bat install Confluence

If you have used this parameter, your service name is **Confluence** and not **Confluence200715163754** .  

Let me share our documentation about how to install Confluence as a service.

* [Install Confluence as a service](https://confluence.atlassian.com/display/DOC/Start+Confluence+Automatically+on+Windows+as+a+Service)  

Cheers,


Tags: confluence-administration