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.
On Tue, Jul 21, 2015 at 6:47 AM, Ozcan Ovunc <[email protected]> wrote: > 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 <http://localhost:8080/user/null> > Building remotely on Kole <http://localhost:8080/computer/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. > > -- > 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 [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/jenkinsci-users/07579680-7550-4ce8-bf52-3134ffcf0dce%40googlegroups.com > <https://groups.google.com/d/msgid/jenkinsci-users/07579680-7550-4ce8-bf52-3134ffcf0dce%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- Thanks! Mark Waite -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/jenkinsci-users/CAO49JtH3Wi4fo8B0uXNwzMDjqy6kx6qFz5RV_c8wf0j4Kk5%3DzA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.
