Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-310

java.io.FilePermission when using JNLP slave

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Component/s: core
    • Labels:
      None
    • Environment:
      Platform: All, OS: All
    • Similar Issues:

      Description

      I can start the client, it asks me whether I want to trust and run the
      webstart application, and the slave starts up and reports "connected".

      When I look in my master webpage, I see that the slave is marked available,
      but I can't see any information in the "System Information" page. Also the
      log entry is completely empty.

      When I try to start a build on the remote machine, the build ends very fast,
      and the buildlog contains a message like below:
      --------------
      started
      Building remotely on experimental
      FATAL: access denied (java.io.FilePermission d:\temp\hudson\workspace\Java
      Preferences Plugin read)
      java.security.AccessControlException: access denied (java.io.FilePermission
      d:\temp\hudson\workspace\Java Preferences Plugin read)
      at java.security.AccessControlContext.checkPermission(Unknown Source)
      at java.security.AccessController.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkPermission(Unknown Source)
      at java.lang.SecurityManager.checkRead(Unknown Source)
      at java.io.File.exists(Unknown Source)
      at java.io.File.mkdirs(Unknown Source)
      at hudson.FilePath$3.invoke(FilePath.java:227)
      at hudson.FilePath$3.invoke(FilePath.java:225)
      at hudson.FilePath$1.call(FilePath.java:176)
      at hudson.remoting.UserRequest.perform(UserRequest.java:57)
      at hudson.remoting.UserRequest.perform(UserRequest.java:22)
      at hudson.remoting.Request$2.run(Request.java:167)
      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)
      ---------------------------

      • The directory D:\temp\hudson is created, and afaik writable for all users.
      • The gui of the slave does not change, nor does it show info on the
        console.
      • The jobs also fail when they do not contain spaces
      • The jobs also fail on Linux.
      • I'm using the released version of 1.81, but also in my custom build of 2
        days ago it failed.

        Attachments

          Activity

          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          Maybe this is related:
          http://forum.java.sun.com/thread.jspa?threadID=706976&tstart=0

          I put a change in 1.83 so hopefully that fixes this problem.
          If you can try the snapshot build and verify the fix, that would be wonderful.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - Maybe this is related: http://forum.java.sun.com/thread.jspa?threadID=706976&tstart=0 I put a change in 1.83 so hopefully that fixes this problem. If you can try the snapshot build and verify the fix, that would be wonderful.
          Hide
          kohsuke Kohsuke Kawaguchi added a comment -

          I should note that I tried to reproduce the problem but it worked for me.

          Show
          kohsuke Kohsuke Kawaguchi added a comment - I should note that I tried to reproduce the problem but it worked for me.
          Hide
          sjoerdbakker sjoerdbakker added a comment -

          I just ran a build and an initial test on the fix: it works fine now.

          Show
          sjoerdbakker sjoerdbakker added a comment - I just ran a build and an initial test on the fix: it works fine now.

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            sjoerdbakker sjoerdbakker
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: