Can't start cq5 service under windows 7 64bit | Community
Skip to main content
New Participant
October 16, 2015
Solved

Can't start cq5 service under windows 7 64bit

  • October 16, 2015
  • 17 replies
  • 3264 views

One year ago I installed successfully CQ5 as a windows service under Windows 7 32bit. After that I've switched to Windows 7 **64bit**. Currently I have a project using CQ5 so I install again it (under Window 64bit). CQ5 starts fine with `crx-quickstart/bin/start.bat` using command line. Also I don't see any problem when installing as service with the command `instsrv.bat cq5`:

    Installing service cq5
        runs in   E:\servers\cq5-server\author\crx-quickstart
        uses      E:\servers\cq5-server\author\crx-quickstart\opt\helpers\\..\..\app\cq-quickstart-5.5.0-standalone.jar
        starts    org.apache.sling.launchpad.app.Main
        redirects output to: E:\servers\cq5-server\author\crx-quickstart\logs\startup.log

But when I run `net start cq5`, I get an error as below:

    The cq5 service is starting.
    The cq5 service could not be started.

    A service specific error occurred: 0.

    More help is available by typing NET HELPMSG 3547.

And checking log file commons-daemon.2013-09-01.log, I see:

    [2013-09-01 23:26:36] [info]  Commons Daemon procrun (1.0.8.0 64-bit) started
    [2013-09-01 23:26:36] [info]  Running 'cq5' Service...
    [2013-09-01 23:26:36] [info]  Starting service...
    [2013-09-01 23:26:36] [error] Failed creating java 
    [2013-09-01 23:26:36] [error] The system cannot find the file specified.
    [2013-09-01 23:26:36] [error] ServiceStart returned 1
    [2013-09-01 23:26:36] [error] The system cannot find the file specified.
    [2013-09-01 23:26:36] [info]  Run service finished.
    [2013-09-01 23:26:36] [info]  Commons Daemon procrun finished

Could anyone let me know what I'm wrong?  
I'm following the instructions at [Installing and Starting Adobe Experience Manager as a Windows Service] http://dev.day.com/docs/en/cq/current/getting_started/download_and_startworking.html

p/s: for better format, you can see at http://stackoverflow.com/questions/18560472/cant-start-cq5-service-under-windows-7-64bit

Thank a lot!

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

Hi you guy! 

Today I fixed the problem. I post on StackOverFlow here http://stackoverflow.com/a/19011530/1521627 . I hope that it would work for you :D

Best regards,

Tuan Dang

17 replies

smacdonald2008
New Participant
October 16, 2015

You are following a similar procedure that is documented here:

http://dev.day.com/docs/v5_2/html-resources/cq5_guide_system_administrator/ch03s04.html#sect_windows_service

And this is not starting on Win7? 

I will check to see if we have a known issue. 



 

October 16, 2015

Did you remember to change the instances of 'prunsrv' in the instsrv.bat file before running it?

This is Step 2 as listed in the "Installing and starting Adobe Experience Manager as a Windows service" section of Download and Start Working.

[img]64-bit_Windows_AEM-service.png[/img]

If not, you'll need to run 'instsrv.bat -uninstall' to remove the service, edit the .bat, then re-run it.

tuan_dangAuthor
New Participant
October 16, 2015

I followed the document at http://dev.day.com/docs/en/cq/current/getting_started/download_and_startworking.html#Installing and Starting Adobe Experience Manager as a Windows Service

where there are some notes for Windows 64bit. And it is not starting.

Please help me check it. Thank you a lot!!!

smacdonald2008
New Participant
October 16, 2015

Have you read all the information located in this AEM topic: "INSTALLING AND STARTING ADOBE EXPERIENCE MANAGER AS A WINDOWS SERVICE" -- see: 

http://dev.day.com/docs/en/cq/current/deploying/installing_cq.html#Installing%2520and%2520Starting%2520CQ5%2520WCM%2520as%2520a%2520Windows%2520Service

 

Be sure to follow the heap size recommendation. 

  • To prevent the process from forking into more than one process, increase the maximum heap size and the PermGen JVM parameters. Locate the set jvm_options command and set the value as follows:

    set jvm_options=-XX:MaxPermSize=256M;-Xmx1792m

    smacdonald2008
    New Participant
    October 16, 2015

    If you followed all the instructions in the AEM docs and its not working -- according to this AEM topic:

    http://dev.day.com/docs/en/cq/current/deploying/checklists.html#Troubleshooting

    It recommends opening a ticket.  

    tuan_dangAuthor
    New Participant
    October 16, 2015

    I'm sorry for my bad English!

    Do you mean that I should create a ticket at http://dev.day.com/docs/en/cq/current/deploying/checklists.html#Troubleshooting ? If so, how to create? Could you please let me know?

    Thank a lot!

    smacdonald2008
    New Participant
    October 16, 2015

    See the instructions here:

    http://helpx.adobe.com/marketing-cloud/experience-manager.html

     

    [img]Ticket.png[/img]

    A ticket is a last resort. If you follow the docs (specified in this thread) and all the recommendations, and it still does not work, then there is a bug somewhere. 

    tuan_dangAuthor
    New Participant
    October 16, 2015

    Thank you very very much :D

    October 16, 2015

    Tuan Dang wrote...

    Thank you very very much :D

     

    I have the same problem. Followed the instructions exactly and the service installs but just won't start.

    Did you raise a ticket ?

    Fraser.

    tuan_dangAuthor
    New Participant
    October 16, 2015

    I tried again but couldn't login when clicking on the "Create a support ticket" link. I got same error as some days ago! :(