Windows Service failing to start

Hello Everyone,
I'm trying to run CQ 5.6.1 as a service on Windows Server 2008 R2 SP1 64-bit.
I've replaced prunsrv in instsrv.bat with prunsrv_amd64.
Installing the service seems fine, as does uninstalling.
This is the kind of entry I see in my c:\CQ\5.6.1\publish\crx-quickstart\logs\commons-daemon.2013-07-11.log file after I try start the service:
[2013-07-11 15:45:10] [info]  Commons Daemon procrun (1.0.8.0 64-bit) started
[2013-07-11 15:45:10] [info]  Running 'cq5' Service...
[2013-07-11 15:45:10] [info]  Starting service...
[2013-07-11 15:45:10] [error] Failed creating java
[2013-07-11 15:45:10] [error] Cannot create a file when that file already exists.
[2013-07-11 15:45:10] [error] ServiceStart returned 1
[2013-07-11 15:45:10] [error] Cannot create a file when that file already exists.
[2013-07-11 15:45:10] [info]  Run service finished.
[2013-07-11 15:45:10] [info]  Commons Daemon procrun finished
The corresponding entry in the Event Log shows the following:
<Event xmlns="http://schemas.microsoft.com/win/2004/08/events/event">
  <System>
    <Provider Name="Service Control Manager" Guid="{555908d1-a6d7-4695-8e1e-26931d2012f4}" EventSourceName="Service Control Manager" />
    <EventID Qualifiers="49152">7024</EventID>
    <Version>0</Version>
    <Level>2</Level>
    <Task>0</Task>
    <Opcode>0</Opcode>
    <Keywords>0x8080000000000000</Keywords>
    <TimeCreated SystemTime="2013-07-11T19:45:10.423634500Z" />
    <EventRecordID>7164</EventRecordID>
    <Correlation />
    <Execution ProcessID="516" ThreadID="1356" />
    <Channel>System</Channel>
    <Computer>cqpub-02</Computer>
    <Security />
  </System>
  <EventData>
    <Data Name="param1">cq5</Data>
    <Data Name="param2">%%0</Data>
  </EventData>
</Event>
This same behavior is exhibited across three separate servers each with their own installation of CQ (one as an author and two as publish).
Any ideas what could be going wrong or where I can find more detailed information about where and what is trying to create a "java" file?  Is the start-service.bat used at all?
Thanks!
Garth

Hi Marc,
Thanks for your reply!
JAVA_HOME is set.  It echoes out c:\Program Files\jdk1.7.0_25\jre.
I installed the service as described by the documentation for the process.
I've also applied the jvm_mx correction to jvm_options (as outlined by the documentation link above).
No errors are reported during the installation, but evidently it's being installed misconfigured.  Adjusting instsrv.bat to only echo out the commands it runs gives back the following:
C:\CQ\5.6.1\publish\crx-quickstart\opt\helpers>instsrv.bat cq5
Installing service cq5
    runs in   C:\CQ\5.6.1\publish\crx-quickstart
    uses      C:\CQ\5.6.1\publish\crx-quickstart\opt\helpers\\..\..\app\cq-quickstart-5.6.1-standalone. jar
    starts    org.apache.sling.launchpad.app.Main
    redirects output to: C:\CQ\5.6.1\publish\crx-quickstart\logs\startup.log
chdir /D C:\CQ\5.6.1\publish\crx-quickstart\opt\helpers\
prunsrv_amd64 //IS//cq5 --Description="Adobe CQ5" --DisplayName="cq5" --Startup=
""auto"" --StartPath=C:\CQ\5.6.1\publish\crx-quickstart --Classpath=C:\CQ\5.6.1\publish\crx-quickstart\opt\helpers\\..\..\app\cq-quickstart-5.6.1 -standalone.jar --JvmMx=1792m --JvmOptions=-XX:MaxPermSize=256M;-Xmx1792m#-Dsling.run.modes="publish" --StdOutput=C:\CQ\5.6.1\publish\crx-quickstart\logs\startup.log --StdError=C:\CQ\5.6.1\publish\crx-quickstart\logs\startup.log --LogPath=C:\CQ\5.6.1\publish\crx-quickstart\logs --PidFile=..\conf\cq.pid --StartMode jvm --StartClass=org.apache.sling.launchpad.app.Main --StartParams=start#-c#.#-i#launchpad#-p#4503#
-j#63000 --StopMode=jvm --StopClass=org.apache.sling.launchpad.app.Main --StopParams=stop --Jvm="auto"
Do you think anything still looks wrong in there?
Garth

Similar Messages

  • Created windows service fails to start

    Hi all. We have a piece of software that must always be running on a Windows Server 2008 box. 
    Currently due to poor development, this software is only run by a local user (not as SYSTEM nor initiated via a Windows Service) so when our user gets logged off, the software goes down with it.
    I have to find a way to get a particular command to run (as administrator) when the machine turns on (even if a user a user does not log in). I have been playing with the SC command to create a service but I cannot get the service to start. I keep receiving
    the error:
    FAILED 1053: The service did not respond to the start or control request in a timely fashion.
    Another option I was trying as a temporary fix was to use the PsTools to launch the software. When the processes are running they are running as SYSTEM, but they still shut down when the user is logged off. Is there an easier way to get services to work?
    Or another way entirely to get software to launch on System boot? Please note that I am very restricted in this environment so doing this without the use of 3rd party tools is preferable. Thank you!!

    If you're the dev, then these might help:
    http://msdn.microsoft.com/en-us/library/zt39148a%28v=vs.110%29.aspx and
    http://www.codeproject.com/Articles/106742/Creating-a-simple-Windows-Service
    This might help you also:
    http://www.timdavis.com.au/general/creating-a-user-defined-service-in-windows-7/

  • Trying to install the latest iTunes on my Gateway w/ Windows XP.  I keep getting the message "Service 'Bonjour Service' (Bonjour Service) failed to start.  Verify that you have sufficient privileges to start system services."

    Hi, I'm trying to re-install the latest iTunes on my Gateway w/ Windows XP.  I had to update it a while back to put songs on my brother's iPod, but my computer froze halfway through and nothing has worked right since. 
    I keep getting the message "Service 'Bonjour Service' (Bonjour Service) failed to start.  Verify that you have sufficient privileges to start system services."
    I looked through older discussions that told me to go to right click My Computer - Manage - Services and Applications - Services - Find Bonjour and restart it. 
    Well, the only option that I can click on is Start.  When I do, it says "Windows could not restart the Bonjour Service service on Local Computer.  Error 2: The system cannot find the file specified."
    Where do I go from here?  Help would be greatly appreciated, I've been trying to fix this for over a year now with no dice.  Also, I cannot do a factory reset (last effort) because it says the administor's account is disabled and I do not have the disc.

    Sorry if double posting is a no-no here, but I forgot to add that I've already tried disabling Spyware Doctor.

  • Apple Mobile Device Service failed to start which eventually leads to windows error 193 which never goes away no matter what I do  and the dreaded

    Mid way through download of I-Tunes after clearing every Apple program from my computer I get "Apple Mobile Device Service" failed to start message.  Eventually leading to Windows error 193 (error 7).  How do I get Apple Mobile Device Service to start so I do not get error messages and failure of I-Tunes to install?

    If you have a 64-bit machine, then try the "for older video cards" version...
    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • Help!!! iTunes install error "Apple Mobile Device Service Failed To Start". Error 7 (Windows Error 193)

    Help! Following a standard upgrade I got the error message "iTunes was not installed correctly. Please reinstall iTunes. Error 7 (Windows Error 193).
    I am running Windows 7 and installing again brings the message "Apple Mobile Device Service failed to start. Verify that you have sufficient privileges to start system services"
    I have uninstalled everything Apple, deleted all related folders and run as administrator numerous times with no luck.
    I had hoped that iTunes 12.1.2 would resolve the issue, unfortunately it failed to do so leaving me iTunes free which is driving me mad!
    Can anyone advise what else I can do to resolve the error and bring back iTunes?
    Thanks

    For general advice see Troubleshooting issues with iTunes for Windows updates.
    The steps in the second box are a guide to removing everything related to iTunes and then rebuilding it which is often a good starting point unless the symptoms indicate a more specific approach. Review the other boxes and the list of support documents further down the page in case one of them applies.
    The further information area has direct links to the current and recent builds in case you have problems downloading, need to revert to an older version, or want to try the iTunes for Windows (64-bit - for older video cards) release as a workaround for installation or performance issues, or compatibility with QuickTime or third party software.
    Your library should be unaffected by these steps but there are also links to backup and recovery advice should it be needed.
    tt2

  • Windows 8 Hyper-V - Virtual Machine Management Service failed to start the virtual machine

    I have Hyper-v running on Dell Precision T3600 with Windows 8 OS.  I am trying to start a VM (called Windows8VM) to install Windows 8 in the hyper-v virtual machine, but I keep getting the following message:
    "Windows8VM" failed to start.
    Failed to start the virtual machine "Windows8VM" because one of the Hyper-V components is not running.
    "Windows8VM" failed to start.  (Virtual machine ID D670D3BB-9AE2-0453D-9191-EA6EFC242A9C)
    The Virtual Machine Management Services failed to start the virtual machine "Windows8VM" because one of the Hyper-V components is not running.
    I have turned the hyper-v feature on in the "Turn Windows feature on or off.  The BIOS has virtualization enable.  Help!!! driving me nuts for a week now.
    Nick :(

    Okay,  I turned off hyper-v, went to bios and enabled Intel TXT(LT-SX) Configuration.  Made sure that both Virtualization and VT for Direct I/0 are on.  Next, I turned on Hyper-V and I create a brand new Virtual Machine call Windows8 and had
    the DVD point to Windows8 ISO file on hard drive.  When I clicked on start, it stayed in the Starting status mode for about 5 minutes.  Then of course it failed.  I looked at the Hyper-V-VMMS log and here is what it output:
    Log Name: Microsoft-Windows-Hyper-V-VMMS/Admin
    1) Error: The virtualization infrastructure driver (VID) is not running.
    2) Info:  Found a certificate for server authentication. Remote access to virtual machines is now possible.
    3) Info:  Successfully started the Virtual Machine migration connection manager.
    4) Info:  Virtual Machine Management service is started successfully.
    5) Info:  The WMI provider 'VmmsWmiInstanceAndMethodProvider' has started.
    6) Info:  The WMI provider 'VmmsWmiEventProvider' has started.
    7) Info:  The WMI provider 'VmmsWmiInstanceAndMethodProvider' has started.
    8) Info:  The WMI provider 'VmmsWmiEventProvider' has started.
    9) Info:  The Integration Services Setup Disk image was successfully updated.
    10) Error: The virtual machine bus is not running.
    11) Error: 'Virtual Machine Bus' driver required by the Virtual Machine Management service is not installed or is disabled. Check your settings or try reinstalling the Hyper-V role.
    12) Error: 'Storage Virtualization Service Provider' driver required by the Virtual Machine Management service is not installed or is disabled. Check your settings or try reinstalling the Hyper-V role.
    13) Error:  The Virtual Machine Management Service failed to start the virtual machine 'Window8' because one of the Hyper-V components is not running (Virtual machine ID 2B393AF4-7B7E-4243-805B-23C09D20F4FB).
    14) Error:  'Window8' failed to start. (Virtual machine ID 2B393AF4-7B7E-4243-805B-23C09D20F4FB)
    Nick

  • When i try to download itunes on my windows computer it says apple mobile services failed to start and then i cant open itunes

    I can not download itunes it says apple mobile services failed to start verify that you haves sufficient  privileges to start system services help please

    Hi mish11mish11,
    Lets see if we can get that working again. If you are having issues with the Apple Mobile Device Service you may need to just restart the service. Check out the first article to walk you through that process. If you are still having issues, take a look at the second article to continue your troubleshooting. 
    How to restart the Apple Mobile Device Service (AMDS) on Windows
    https://support.apple.com/en-us/HT203188
    If you can't install or update iTunes for Windows
    https://support.apple.com/en-us/HT201668
    Take it easy,
    -Norm G. 

  • Apple Mobile Device Service fails to start

    The last update failed on my window 7 pc,
    resulting in me having to try it manually download and install, this also
    failed eventually it told me to delete and reinstall, this fails due to the
    apple mobile device service failing to start, and asking me if I have
    sufficient privileges to start system service, help please

    Hi there Jbrashear,
    It sounds like you want to know how to restart the Apple Mobile Device Service because of an alert that was displayed when you were trying to update or reinstall iTunes.
    The article below will walk you through the process starting or stopping the Apple Mobile Device Service on your PC.
    How to restart the Apple Mobile Device Service (AMDS) on Windows - Apple Support
    Also, if you haven't already, take a look at this article which walk you through the process of completely removing iTunes and then reinstalling it.
    Remove and reinstall iTunes and related software components for Windows Vista, Windows 7, or Windows 8 - Apple Support
    Take care,
    -Jason

  • When I download itunes, it says that Ipod Service failed to start. I checked the services under task manager and when I try to start it, it says access denied. How to I get access and for the ipod service to start and run?

    Please help. My ipod classic could not be recognised by itunes when I connect my ipod to PC. Previously it has been recognised before I updated. This was a while ago now and so I removed all apple files and re installed the latest itunes but am having the same problem.
    When I download itunes, it says that Ipod Service failed to start. I checked the services under task manager and when I try to start it, it says access denied. How to I get access and for the ipod service to start and run?

    Some anti-virus programs (e.g., McAfee) have this rule that can be invoked under the "maximum protection" settings: PREVENT PROGRAMS REGISTERING AS A SERVICE. If that rule is set to BLOCK, then any attempt to install or upgrade iTunes will fail with an "iPod service failed to start" message.
    If you are getting this problem with iTunes, check to see if your anti-virus has this setting and unset it, at least for as long as the iTunes install requires. Exactly how to find the rule and turn it on and off will vary, depending upon your anti-malware software. However, if your anti-virus or anti-malware software produces a log of its activities, examining the log may help you find the problem.
    For example, here's the log entry for McAfee:
    9/23/2009 3:18:45 PM Blocked by Access Protection rule NT AUTHORITY\SYSTEM C:\WINDOWS\system32\services.exe \REGISTRY\MACHINE\SYSTEM\ControlSet001\Services\iPod Service Common Maximum Protection:Prevent programs registering as a service Action blocked : Create
    Note that the log says "Common Maximum Protection: Prevent programs registering as a service". The "Common Maximum Protection" is the location of the rule, "Prevent programs registering as a service" is the rule. I used that information to track down the location in the McAfee VirusScan Console where I could turn the rule off.
    After I made the change, iTunes installed without complaint.

  • Dell 64 bit pc . Tried updating to latest version.  Error message says Apple mobile device service failed to start. Verify you have sufficient privileges to start system services.  What does that mean?

    I have a dell 64 bit pc and had an older version of ITunes installed.  When I tried to install the 12--- version, the install stopped with the message, "Apple Mobile Device Services failed to start, verify that you have sufficient privileges to start systems services".   I have no clue what that means.  can anyone help.  ????

    Hi doywks,
    The Apple Mobile Device is a component of iTunes that communicates between your computer and your iPhone or iOS device.  The error message you are seeing "verify that you have sufficient privileges to start system services" has to do with the Windows operating system.  It's possible that you are not logged in as the administrator for your Windows PC.  Or, you may have antivirus software stopping the Apple Mobile Device from running.  
    If you are having issues updating iTunes on your PC, follow the steps in the article below.
    If you can't install or update iTunes for Windows - Apple Support
    https://support.apple.com/en-us/HT201668
    How to restart the Apple Mobile Device Service (AMDS) on Windows - Apple Support
    https://support.apple.com/en-us/HT203188
    I hope this information helps ....
    - Judy

  • Service 'Apple Mobile Device Service' (Apple Mobile Device Service) failed to start. Verify that you have sufficient privileges to start system services????

    I recently got an iPhone 5s and had to download the new itunes which I had been putting off for ages, otherwise it wouldn't sync. It wouldn't let me download and instead said 'service mobile device service' failed to start. I then tried to uninstall (as recommended by apple) and re install but the same error came up. If i click ignore, it finishes downloading but refuses to open, instead coming up with 'error 7 windows error 193'. Ive tried everything and this is really frustrating, help would be much appreciated

    OK Dave, i just found one solution that worked for me.  However, I find that solutions appearing on discussion threads often are very OS and machine specific, so I normally try a variety of suggestions.  After awhile one suggestion normally works.  So try this one, remembering I have a Dell PC with Win 7 x 64 which may not fit your situation. 
    Go to https://discussions.apple.com/message/24606166#24606166 where you will find a solution from touringtest2.  The soulition requires an easy uninstall of Apple software items.  I followed the steps outlined exactly and have successfully installed the most recent iTunes software.  Hope this works for you and a few others too.  Apple support sure doesn't make it easy for interested users which is why I appreciate support communities like this.  Thank you touringtest2 wherever you are.  Best - RonS42

  • HT1926 Installation fails because Apple Mobile Device Service failed to start?

    When  I attempted to update ITunes, it failed at the starting services point because "Apple Mobile Device Service failed to start".  The ignore button would not work.  Retry did not fix it.  I have deleted all ITunes from my computer, restarted, and attempted a new install.  Same problem.  Help.

    The frequently suggested repair steps listed in comments at http://support.apple.com/kb/HT1923 and http://support.apple.com/kb/HT1926 did not work for me yesterday when I attempted for an entire day to fix this commonly reported problem with the newest iTunes update. I now realize that I overlooked one step listed in http://support.apple.com/kb/HT1923.
    My computer has a Windows 64 bit operating system. I should have  paid attention to this instruction:
    "If you have a 64-bit version of Windows, you'll need to confirm that the following folders have been removed:
    C:\Program Files (x86)\Bonjour
    C:\Program Files (x86)\Common Files\Apple\
    C:\Program Files (x86)\iTunes\
    C:\Program Files (x86)\iPod\  "
    Tonight, I removed those previous version files from the Program Files (x86) directory and executed the rest of the steps listed. Success resulted. If you are struggling like I did to install the iTunes newest update on a Windows 64 bit operating system, you might benefit to recheck that you followed the instruction listed above.

  • Installing itunes to my laptop I get an error message  Apple mobile device service fail to start verify that you have sufficient privilegesto start system services

    Installing itunes to my laptop I get an error message  (Apple mobile device service fail to start verify that you have sufficient privileges to tart system services)

    You seem to have installED iTunes and are trying to connect your iDevice, is that right?
    iPhone, iPad, or iPod not recognized in iTunes for Windows - Apple Support
    Your statement - "installING" - also might indicate that you have insufficient privileges in Windows to properly install & use iTunes.
    If you can't install or update iTunes for Windows - Apple Support
    ÇÇÇ

  • Unable to install itunes 7 due to error "Bonjour service failed to start, verify you have sufficient privileges" mcafee is not blocking it, please help anyone?

    I am unable to instal itunes (greater than version 7) as it gives me the error,"Bonjour service failed to start, verify you have sufficient privileges" , i have checked on apple support and the only help for this error says that mcafee antivirus is blocking the services however i have never had mcafee installed on my pc. Anyone any other ideas as to what could be wrong?

    Hi doywks,
    The Apple Mobile Device is a component of iTunes that communicates between your computer and your iPhone or iOS device.  The error message you are seeing "verify that you have sufficient privileges to start system services" has to do with the Windows operating system.  It's possible that you are not logged in as the administrator for your Windows PC.  Or, you may have antivirus software stopping the Apple Mobile Device from running.  
    If you are having issues updating iTunes on your PC, follow the steps in the article below.
    If you can't install or update iTunes for Windows - Apple Support
    https://support.apple.com/en-us/HT201668
    How to restart the Apple Mobile Device Service (AMDS) on Windows - Apple Support
    https://support.apple.com/en-us/HT203188
    I hope this information helps ....
    - Judy

  • Sync problem on iPhone4 IOS5 and iTunes 10.5: Sync service failed to start

    After painful upgrade to IOS 5.0 on my iPone 4 which suffer from er 3014 unt I do full restore in other computer. Now two new problems cropped up again:
    A.
    When I sync IPhone with iTunes, the sync process started and freeze at "waing f sync service to start" and for 5 minutes or so, it end up with a dialog stated that the iPhone could not be synced because sync service failed to start
    To remedy, I have to click t start Sync again, and thios time, it will be completed.
    To solve tjhis, I have done the following, and the probelm still persist:
    a. Reinstal,l to repair iTunes
    b. Delete the Lockup folder
    c. Reset sync history
    d. reboot iPhone
    All cannot solve the problem. Help please, how to solve this problem?
    Also, when I backup my iPhone, it freeze at "Backing up iPhone" fr about 10-15 minutes, then start backup, until nearly finished, then it restart backup process again by itself, and again, freezing at "Backing up iPhone" for another 5 minutes, then it start backup and complete. I check the backup time in Preferences, it's correct.
    To solve this, I delete the backup, and start new backup, the process went OK. But when I start backup again, the above symptom (backing up, and restart backup again to complete) persist
    I have quite a rough experiences with iTunes-iPhone-iPad sync and backup all the times. Can the sync and backup process mad better and real trouble free Apple?
    Help and suggestion please. I sync iPhone and iPad2 with WIndow XP PC. iPad2 do not have problem. The problem is with iPhone4 IOS 5 32 GB (less than 2 GB free space on iPhone remains)

    I have very similar problems with my brand new iPhone and iTunes.  iTunes is virtually unusable even after multiple installs, uniinstalls, and reinstalls. Sync fails silently. Drop-down menus won't stay visible long enough to click any options.   Phone-support blames it on the fact that I use Windows XP however the iTunes page says right there: "iTunes 10.5 for Windows XP, Vista or Windows 7".  The only program I have problems with is iTunes.
    He said I have to revert to iOS 4 but he also said he thought that was impossible.  What does the OS on my phone have to do with the behavior of iTunes running on my computer?  iTunes crashed and had failures both before and after I updated to iOS 5.  Typical bad tech support just like every other company.  I thought Apple was different. Apple really stepped in it this time and it stinks.  I've seen a huge number of new problem reports here and elsewhere.

Maybe you are looking for

  • I hate to use this forum for simple lessons but

    I have a JFrame with lots and lots of JLabels on it...I want to paint the JFrame background and make the JLabels' background transparent...I use the following in my JFrame's paint method: public static class statWindow extends JFrame { statWindow(Str

  • Printing Webhelp Topics from online help

    I tried to print off an individual topic from my online help system. However, the table of contents printed out instead. I tried to print out other help topics but the same thing happened. My printouts were of the table of contents and not the topic.

  • Vehicle total consumption and cost report - Fleet Management

    Dear All, I have created a Fleet object having multiple fuels i.e. Gasoline and CNG and entered transactional data using IFCU transaction. My client need to know how much Gasoline and CNG was consumed for the Fleet Object and cost incurred for the fu

  • Is there a programs that can scan my Mac and fix errors

    I need a program that can scan my Mac and fix errors

  • Creative Suite 3...Can I Upgrade?

    I bought Creative Suite 3 for Mac quite a few years back now and am realising that to be able to receive later version documents from Photoshop or Indesign that the file won't come through because my version is so old. What I would like to know is, c