Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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

Avatar

Level 1

Hello,

 

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

 

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.

 

4 Replies

Avatar

Community Advisor

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

Avatar

Level 1

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.

 

 

Avatar

Level 2

Hello,

 

No, I don't see anything in an AEM log that the service or AEM was even started.  The service  is supposed to write to a crx-quickstart/logs/startup.log file but that file isn't even being created.