• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • None
    • Windows Server 2012
      Jenkins version: 2.138.3
      Java version: 1.8.0_144

      MultiJob runs one job (named 'PythonRun') in parallel steps.

      I see a lot of warnings ( in *.log files at directory with Jenkins.exe ):

      ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
      WARNING: Unable to move atomically, falling back to non-atomic move.
      java.nio.file.AccessDeniedException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp -> C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
      	at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
      	at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      	at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
      	at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
      	at java.nio.file.Files.move(Unknown Source)
      	at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:191)
      	at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200)
      	at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150)
      	at jenkins.model.PeepholePermalink$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
      	at hudson.model.Run.execute(Run.java:1864)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
      INFO: The target file C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild was already existing
      ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
      WARNING: Unable to move C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp to C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild. Attempting to delete C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp and abandoning.
      ноя 25, 2018 6:34:38 PM jenkins.model.PeepholePermalink updateCache
      WARNING: Failed to update hudson.model.FreeStyleProject@883e96[_service/PythonRun] lastSuccessfulBuild permalink for _service/PythonRun #114345
      java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
      	at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
      	at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
      	at java.nio.file.Files.move(Unknown Source)
      	at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:206)
      	at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200)
      	at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150)
      	at jenkins.model.PeepholePermalink$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
      	at hudson.model.Run.execute(Run.java:1864)
      	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
      	at hudson.model.ResourceController.execute(ResourceController.java:97)
      	at hudson.model.Executor.run(Executor.java:429)
      	Suppressed: java.nio.file.AccessDeniedException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp -> C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
      		at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
      		at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
      		at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
      		at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
      		at java.nio.file.Files.move(Unknown Source)
      		at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:191)
      		... 8 more

       

      How i can solve it correctly? 

       

       

      Job 'PythonRun' config:

      • custom workspace (for using files from SCM which has loaded by another job)
      • Log Rotation (14 days)
      • Parallel run
      • Timeout (absolute, by parameter)
      • Timestamps
      • Set Build Name
      • Run cmd

      This job don't change any files in this workspace.

       

      In my case I load code by push trigger via one job and run it via other jobs.
      Parallel runs are necessary.

       

          [JENKINS-54863] Parallel builds in same workspace

          Yuriy Inetov created issue -
          Yuriy Inetov made changes -
          Description Original: MultiJob runs one job (named 'PythonRun') in parallel steps.

          I see a lot of warnings ( in *.log files at directory with Jenkins.exe ):
          {noformat}
          ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
          WARNING: Unable to move atomically, falling back to non-atomic move.
          java.nio.file.AccessDeniedException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp -> C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
          at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
          at java.nio.file.Files.move(Unknown Source)
          at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:191)
          at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200)
          at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150)
          at jenkins.model.PeepholePermalink$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
          at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
          at hudson.model.Run.execute(Run.java:1864)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
          INFO: The target file C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild was already existing
          ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
          WARNING: Unable to move C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp to C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild. Attempting to delete C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp and abandoning.
          ноя 25, 2018 6:34:38 PM jenkins.model.PeepholePermalink updateCache
          WARNING: Failed to update hudson.model.FreeStyleProject@883e96[_service/PythonRun] lastSuccessfulBuild permalink for _service/PythonRun #114345
          java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
          at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
          at java.nio.file.Files.move(Unknown Source)
          at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:206)
          at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200)
          at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150)
          at jenkins.model.PeepholePermalink$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
          at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
          at hudson.model.Run.execute(Run.java:1864)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Suppressed: java.nio.file.AccessDeniedException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp -> C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
          at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
          at java.nio.file.Files.move(Unknown Source)
          at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:191)
          ... 8 more{noformat}
           

          Job 'PythonRun' config:
           * custom workspace (for using files from SCM which has loaded by another job)
           * Log Rotation (14 days)
           * Parallel run
           * Timeout (absolute, by parameter)
           * Timestamps
           * Set Build Name
           * Run cmd

          This job don't change any files in this workspace.

           

          In my case I load code by push trigger via one job and run it via other jobs.
          Parallel runs are necessary.

           
          New: MultiJob runs one job (named 'PythonRun') in parallel steps.

          I see a lot of warnings ( in *.log files at directory with Jenkins.exe ):
          {noformat}
          ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
          WARNING: Unable to move atomically, falling back to non-atomic move.
          java.nio.file.AccessDeniedException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp -> C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
          at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
          at java.nio.file.Files.move(Unknown Source)
          at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:191)
          at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200)
          at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150)
          at jenkins.model.PeepholePermalink$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
          at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
          at hudson.model.Run.execute(Run.java:1864)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
          INFO: The target file C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild was already existing
          ноя 25, 2018 6:34:38 PM hudson.util.AtomicFileWriter commit
          WARNING: Unable to move C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp to C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild. Attempting to delete C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp and abandoning.
          ноя 25, 2018 6:34:38 PM jenkins.model.PeepholePermalink updateCache
          WARNING: Failed to update hudson.model.FreeStyleProject@883e96[_service/PythonRun] lastSuccessfulBuild permalink for _service/PythonRun #114345
          java.nio.file.DirectoryNotEmptyException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
          at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
          at java.nio.file.Files.move(Unknown Source)
          at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:206)
          at jenkins.model.PeepholePermalink.writeSymlink(PeepholePermalink.java:200)
          at jenkins.model.PeepholePermalink.updateCache(PeepholePermalink.java:150)
          at jenkins.model.PeepholePermalink$RunListenerImpl.onCompleted(PeepholePermalink.java:237)
          at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:211)
          at hudson.model.Run.execute(Run.java:1864)
          at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          at hudson.model.ResourceController.execute(ResourceController.java:97)
          at hudson.model.Executor.run(Executor.java:429)
          Suppressed: java.nio.file.AccessDeniedException: C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\atomic8663031477169153550tmp -> C:\Program Files (x86)\Jenkins\jobs\_service\jobs\PythonRun\builds\lastSuccessfulBuild
          at sun.nio.fs.WindowsException.translateToIOException(Unknown Source)
          at sun.nio.fs.WindowsException.rethrowAsIOException(Unknown Source)
          at sun.nio.fs.WindowsFileCopy.move(Unknown Source)
          at sun.nio.fs.WindowsFileSystemProvider.move(Unknown Source)
          at java.nio.file.Files.move(Unknown Source)
          at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:191)
          ... 8 more{noformat}
           

          *How i can solve it correctly?* 

           

           

          Job 'PythonRun' config:
           * custom workspace (for using files from SCM which has loaded by another job)
           * Log Rotation (14 days)
           * Parallel run
           * Timeout (absolute, by parameter)
           * Timestamps
           * Set Build Name
           * Run cmd

          This job don't change any files in this workspace.

           

          In my case I load code by push trigger via one job and run it via other jobs.
           Parallel runs are necessary.

           
          Yuriy Inetov made changes -
          Link New: This issue is related to JENKINS-19741 [ JENKINS-19741 ]

            Unassigned Unassigned
            inetov Yuriy Inetov
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: