[ 
https://issues.jenkins-ci.org/browse/JENKINS-4859?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=162687#comment-162687
 ] 

chanti vlad commented on JENKINS-4859:
--------------------------------------

@Alexis Morelle: this worked for me to get rid off the 
winreg_CreateKey(JIWinRegStub.java:297) problem.
I am using a local Administrator account on the machine.
However, Jenkins then fails to find java:


<pre>
Connecting to thehost.i.want
Checking if Java exists
'java' is not recognized as an internal or external command,
operable program or batch file.
No Java found. Downloading JDK
Installing JDK jdk-6u16-oth-JPR@CDS-CDS_Developer
Downloading JDK from 
http://download.oracle.com/otn/java/jdk/6u16-b01/jdk-6u16-windows-i586.exe
ERROR: Failed to prepare Java
java.net.ConnectException: Connection timed out
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:351)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:213)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:200)
        at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:366)
        at java.net.Socket.connect(Socket.java:529)
        at java.net.Socket.connect(Socket.java:478)
        at java.net.Socket.<init>(Socket.java:375)
        at java.net.Socket.<init>(Socket.java:249)
        at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:80)
        at 
org.apache.commons.httpclient.protocol.DefaultProtocolSocketFactory.createSocket(DefaultProtocolSocketFactory.java:122)
        at 
org.apache.commons.httpclient.HttpConnection.open(HttpConnection.java:707)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeWithRetry(HttpMethodDirector.java:387)
        at 
org.apache.commons.httpclient.HttpMethodDirector.executeMethod(HttpMethodDirector.java:171)
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:397)
        at 
org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:323)
        at hudson.tools.JDKInstaller.locate(JDKInstaller.java:379)
        at 
hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:241)
        at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:200)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at 
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Copying jenkins-slave.xml
Copying slave.jar
Starting the service
---
</pre>

JAVA_HOME is set for the local Administrator i am using, and also java is in 
the PATH environment variable for that user, but java.exe is somehow not found 
by Jenkins. Then downloading fails (proxy issue, oracle login policy ?) and 
then the service never starts.
This might be another issue altogether since i upgraded to 1.463 recently too.
                
> Slaves cannot be started using Windows Service on Windows Server 2008 x64
> -------------------------------------------------------------------------
>
>                 Key: JENKINS-4859
>                 URL: https://issues.jenkins-ci.org/browse/JENKINS-4859
>             Project: Jenkins
>          Issue Type: Bug
>          Components: master-slave
>    Affects Versions: current
>         Environment: Platform: All, OS: Windows XP
>            Reporter: perostman
>            Assignee: nuncanada
>
> Slave OS: Windows Server 2008 x64
> (This seems to be valid also for Vista64)
> Repro steps:
> 1. On the Hudson master, create a slave pointing to a machine running Windows
> Server 2008 x64 (This seem to be valid also for Vista64)
> 2. Choose to let Hudson control the slave as a Windows Service
> 3. Click the "Launch slave" button on the slave page on the Hudson Master
> Result: Hudson cannot control the slave. Stack trace below.
> Expected: That Hudson can control the slave properly.
> N.B. the slave adheres to the info on the following URL
> (http://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM)
> Stack Trace:
> ============
> {noformat}
> Connecting to qa-w2k8x64-01
> Access is denied. See
> http://wiki.jenkins-ci.org/display/JENKINS/Windows+slaves+fail+to+start+via+DCOM
> for more information about how to resolve this.
> org.jinterop.dcom.common.JIException: Access is denied, please check whether 
> the
> [domain-username-password] are correct. Also, if not already done please check
> the GETTING STARTED and FAQ sections in readme.htm. They provide information 
> on
> how to correctly configure the Windows machine for DCOM access, so as to avoid
> such exceptions.  [0x00000005]
>       at 
> org.jinterop.winreg.smb.JIWinRegStub.winreg_CreateKey(JIWinRegStub.java:297)
>       at org.jinterop.dcom.core.JIComServer.initialise(JIComServer.java:480)
>       at org.jinterop.dcom.core.JIComServer.<init>(JIComServer.java:427)
>       at org.jvnet.hudson.wmi.WMI.connect(WMI.java:41)
>       at 
> hudson.os.windows.ManagedWindowsServiceLauncher.launch(ManagedWindowsServiceLauncher.java:107)
>       at hudson.slaves.SlaveComputer$1.call(SlaveComputer.java:178)
>       at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
>       at java.util.concurrent.FutureTask.run(Unknown Source)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown 
> Source)
>       at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
>       at java.lang.Thread.run(Unknown Source)
> Caused by: org.jinterop.dcom.common.JIRuntimeException: Access is denied, 
> please
> check whether the [domain-username-password] are correct. Also, if not already
> done please check the GETTING STARTED and FAQ sections in readme.htm. They
> provide information on how to correctly configure the Windows machine for DCOM
> access, so as to avoid such exceptions.  [0x00000005]
>       at org.jinterop.winreg.IJIWinReg$createKey.read(IJIWinReg.java:459)
>       at ndr.NdrObject.decode(NdrObject.java:19)
>       at 
> rpc.ConnectionOrientedEndpoint.call(ConnectionOrientedEndpoint.java:138)
>       at rpc.Stub.call(Stub.java:112)
>       at 
> org.jinterop.winreg.smb.JIWinRegStub.winreg_CreateKey(JIWinRegStub.java:291)
>       ... 10 more
> {noformat}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.jenkins-ci.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to