|
Hi folks,
From the 1.487 changelog: * JNLP Slave agent on OS X can install itself as a launchd service. I believe this is the cause of the exceptions I'm now seeing when my master node attempts to connect to an OS X slave: java.io.IOException: Remote call on osx-x86 failed at hudson.remoting.Channel.call( at org.jenkinsci.modules.launchd_ at hudson.slaves.SlaveComputer. at hudson.slaves.SlaveComputer. at hudson.plugins.sshslaves. at hudson.plugins.sshslaves. at hudson.slaves.SlaveComputer$1. at java.util.concurrent. at java.util.concurrent. at java.util.concurrent. at java.util.concurrent. at java.lang.Thread.run(Thread. Caused by: java.lang.InternalError: Can't connect to window server - not enough permissions. at java.lang.ClassLoader$ at java.lang.ClassLoader. at java.lang.ClassLoader. at java.lang.Runtime. at java.lang.System.loadLibrary( at sun.security.action. at java.security. at sun.awt.NativeLibLoader. at sun.awt.DebugHelper.<clinit>( at java.awt.Component.<clinit>( at org.jenkinsci.modules.launchd_ at org.jenkinsci.modules.launchd_ at hudson.remoting.UserRequest. at hudson.remoting.UserRequest. at hudson.remoting.Request$2.run( at hudson.remoting. at java.util.concurrent. at java.util.concurrent. at java.util.concurrent. at java.util.concurrent. at java.lang.Thread.run(Thread. [10/27/12 20:47:14] [SSH] Connection closed. ERROR: Connection terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting. Caused by: java.io.EOFException at java.io.ObjectInputStream$ at java.io.ObjectInputStream. at java.io.ObjectInputStream. at hudson.remoting.Command. at hudson.remoting. at hudson.remoting. ERROR: [10/27/12 20:47:14] slave agent was terminated java.io.IOException: Unexpected termination of the channel at hudson.remoting. Caused by: java.io.EOFException at java.io.ObjectInputStream$ at java.io.ObjectInputStream. at java.io.ObjectInputStream. at hudson.remoting.Command. at hudson.remoting. at hudson.remoting. Can I somehow disable this? I don't want it to be installed as a launchd service and, as seen in the exception stack trace, it can't actually start the installer. The machine is not a regular OS X machine but an Xserve, so this GUI business is a bad idea. Thanks in advance, Alex |
|
I have the exact same problem on a standard OS X Mac Mini.
Tried installing an X11 Server, but it didn't help. If you find a way to fix this, please let us know. I'm sure others are having the same problem. :)
On Saturday, October 27, 2012 10:30:55 PM UTC-2, Alex Rønne Petersen wrote: Hi folks, |
|
In reply to this post by Alex Rønne Petersen
Hi. Java is attempting to connect to X or whatever and is puking because it doesn't have sufficient permissions. Here's a fix:
Jenkins > Manage Jenkins > Manage Nodes > (select the node with the error) > Configure > Launch Method: "Launch slave agents on Unix machines via SSH" > click "Advanced" then under "JVM Options" include the java directive to run headless: -Djava.awt.headless=true
On Saturday, October 27, 2012 5:30:55 PM UTC-7, Alex Rønne Petersen wrote: Hi folks, |
|
That worked, thanks!
I've filed an issue because 1) The new behavior breaks a previously perfectly working setup; 2) The new behavior is counter-intuitive (I wouldn't expect an SSH slave to try to set up JNLP); 3) There's no obvious option in the UI to disable this behavior. On Wednesday, October 31, 2012 4:50:22 AM UTC+1, Kenny Ayers wrote: Hi. Java is attempting to connect to X or whatever and is puking because it doesn't have sufficient permissions. Here's a fix: |
| Powered by Nabble | Edit this page |
