Master slave connection problem (Ubuntu slave)

475 views
Skip to first unread message

Ozcan Ovunc

unread,
Jul 21, 2015, 8:47:21 AM7/21/15
to jenkins...@googlegroups.com
Hi,

I have a Windows master and Ubuntu 14.04 slave (VirtualBox). I successfully connected them by running 

/home/jenkins$ java -jar slave.jar -jnlpUrl http://192.168.56.1:8080/computer/Kole/slave-agent.jnlp

command and the output was:

Jul 21, 2015 3:22:08 PM hudson.remoting.jnlp.Main createEngine
INFO: Setting up slave: Kole
Jul 21, 2015 3:22:08 PM hudson.remoting.jnlp.Main$CuiListener <init>
INFO: Jenkins agent is running in headless mode.
Jul 21, 2015 3:22:08 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Locating server among [http://192.168.56.1:8080/]
Jul 21, 2015 3:22:08 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Handshaking
Jul 21, 2015 3:22:08 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connecting to 192.168.56.1:51149
Jul 21, 2015 3:22:08 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Trying protocol: JNLP2-connect
Jul 21, 2015 3:22:08 PM hudson.remoting.jnlp.Main$CuiListener status
INFO: Connected
When I go master and check out for slave log, it confirms that everything is ok:

JNLP agent connected from /192.168.56.1
<===[JENKINS REMOTING CAPACITY]===>Slave.jar version: 2.51
This is a Unix slave
Slave successfully connected and online
 
But when I try to build one of my projects, I get this error from console:

Started by user anonymous
Building remotely on Kole (python27 natty) in workspace /home/jenkins/workspace/jenkins-test
java.io.IOException: Failed to mkdirs: /home/jenkins/workspace/jenkins-test
	at hudson.FilePath.mkdirs(FilePath.java:1164)
	at hudson.model.AbstractProject.checkout(AbstractProject.java:1275)
	at hudson.model.AbstractBuild$AbstractBuildExecution.defaultCheckout(AbstractBuild.java:610)
	at jenkins.scm.SCMCheckoutStrategy.checkout(SCMCheckoutStrategy.java:86)
	at hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:532)
	at hudson.model.Run.execute(Run.java:1744)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:98)
	at hudson.model.Executor.run(Executor.java:374)
Finished: FAILURE

Any help would be really appreciated!

Regards.

Mark Waite

unread,
Jul 21, 2015, 8:54:57 AM7/21/15
to jenkins...@googlegroups.com
The user executing that JNLP file on your Ubuntu machine probably does not have permission to write to the /home/jenkins directory.  From the "node executors" menu you should be able to review the properties of that node, including the name of the user it is using.  I suspect it is not the jenkins user on that Ubuntu machine, or if it is the jenkins user, then the jenkins user does not have permission to write to /home/jenkins/workspace.

--
You received this message because you are subscribed to the Google Groups "Jenkins Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-use...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/07579680-7550-4ce8-bf52-3134ffcf0dce%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite

Ozcan Ovunc

unread,
Jul 21, 2015, 9:00:07 AM7/21/15
to jenkins...@googlegroups.com
Where is the "node executors" menu btw?

Mark Waite

unread,
Jul 21, 2015, 9:05:52 AM7/21/15
to jenkins...@googlegroups.com
Sorry for using the wrong phrase to describe it.  On my installation, it is the "Build Executor Status" and is immediately above the list of slaves on the left side of the root page.


For more options, visit https://groups.google.com/d/optout.



--
Thanks!
Mark Waite

Ozcan Ovunc

unread,
Jul 21, 2015, 9:59:39 AM7/21/15
to jenkins...@googlegroups.com
Oh. I know Build Executor Status bar but that shows only the jobs that nodes are currently building :/
Reply all
Reply to author
Forward
0 new messages