Dear all,
As a test I have installed on my Windows 10 PRO 64 bits confluence Datacenter and install it using the windows installer.
All is working fine when I start it manually using the default shortcut provide by the installation or by running manually the command start-confluence.bat
Next step I have install it as a service by using the command service.bat install confluence
The service gets installed correctly with default Logon set as Network Service account
If I start the service as it is , it does not start and get Access denied error
Ok then when I have done is as follow :
- I add Network Service account to to proper atlassian folders
- Then I start the service
Result :
The Atlassian Confluence confluence service terminated with the following service-specific error: Incorrect function.
When I check the deamon log I get the following entries
[2023-11-12 19:07:11] [info] [18188] Starting service...
[2023-11-12 19:07:11] [error] [18188] No JVM configured or found in registry. Unable to start service.
[2023-11-12 19:07:11] [error] [18188] The system could not find the environment option that was entered.
[2023-11-12 19:07:11] [error] [18188] Failed to load JVM DLL '(null)', home '(null)'.
[2023-11-12 19:07:11] [error] [18188] The system could not find the environment option that was entered.
[2023-11-12 19:07:11] [error] [18188] Failed creating Java '(null)'.
[2023-11-12 19:07:11] [error] [18188] The system could not find the environment option that was entered.
[2023-11-12 19:07:11] [error] [18188] ServiceStart returned 1.
[2023-11-12 19:07:11] [error] [18188] The system could not find the environment option that was entered.
[2023-11-12 19:07:11] [info] [ 2736] Run service finished.
[2023-11-12 19:07:11] [info] [ 2736] Apache Commons Daemon procrun finished.
I have the SYSTEM ENVIRONENT variable JRE_HOME set to:
"C:\Program Files\Atlassian\Confluence\jre"
What is going on and going wrong here ?
Regards