Installing AEM 6.5 as a windows service. Service fails to start | Community
Skip to main content
October 19, 2021

Installing AEM 6.5 as a windows service. Service fails to start

  • October 19, 2021
  • 1 reply
  • 2622 views

Hello,

 

I've create a windows service using the instructions describe here:  https://experienceleague.adobe.com/docs/experience-manager-65/deploying/deploying/custom-standalone-install.html?lang=en

 

But when I go to start the service I immediately get a "service failed to start message".  Looking at the windows event logs I then see this message:  

 

The cq5 service terminated with the following service-specific error:
Incorrect function.

+ System

- Provider

[ Name] Service Control Manager
[ Guid] {555908d1-a6d7-4695-8e1e-26931d2012f4}
[ EventSourceName] Service Control Manager

- EventID 7024

[ Qualifiers] 49152

Version 0

Level 2

Task 0

Opcode 0

Keywords 0x8080000000000000

- TimeCreated

[ SystemTime] 2021-10-14T19:48:05.536393900Z

EventRecordID 103462

- Correlation

[ ActivityID] {a5f57ea4-c656-4d0a-9aae-ca072d988b14}

- Execution

[ ProcessID] 672
[ ThreadID] 2588

Channel System

Computer <XXXXXX.yyyyyyyyy.com

Security

- EventData

param1 cq5
param2 %%1
6300710035000000

 

I've tried modifying the instsrv.bat file,  have double checked my JAVA_HOME environment variable, etc. and all looks to be in line.  Any help on resolving this would be helpful.

 

Thanks,

 

Ray H.

 

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

1 reply

Siva_Sogalapalli
Community Advisor
Community Advisor
October 19, 2021

Hi,

can you check below and see if that works?

 

  1. The property values in the instsrv.bat file are used when creating the Windows service. If you edit the property values in instsrv.bat, you must uninstall and then re-install the service.

  2. To uninstall the service, either click Stop in the Services control panel or in the command line, navigate to the folder and type instsrv.bat -uninstall cq5. The service gets removed from the list in the Services control panel or from the list in the command line when you type net start.

Ref: https://aemtips.blogspot.com/search?q=aem+as+service 

 

Thanks

RayH1Author
October 19, 2021

Hello,

Thank you for your reply.

 

Yes, I have uninstalled then reinstalled the windows service many times.  After each reinstall I get the same "Incorrect function" when I start the service.

 

 

Siva_Sogalapalli
Community Advisor
Community Advisor
October 19, 2021

Hope it's not an issue with AEM, do you see any errors in AEM logs? 

did you try any troubleshooting steps?

https://social.technet.microsoft.com/wiki/contents/articles/13754.event-id-7024-service-terminated.aspx

 

Thanks