adoptium / infrastructure

This repo contains all information about machine maintenance.
Apache License 2.0
85 stars 101 forks source link

Failure to delete temp dir on build-ibmcloud-win2022-x64-1 #3518

Closed sxa closed 5 months ago

sxa commented 5 months ago

Ref: https://ci.adoptium.net/job/build-scripts/job/jobs/job/release/job/jobs/job/jdk8u/job/jdk8u-release-windows-x64-temurin/16/console

18:20:46  ERROR: Failed to clean the workspace
18:20:46  jenkins.util.io.CompositeIOException: Unable to delete 'E:\Jenkins\workspace\temp'. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts.
18:20:46    at jenkins.util.io.PathRemover.forceRemoveDirectoryContents(PathRemover.java:87)
steelhead31 commented 5 months ago

Having done some investigation, the e:\workspace\temp directory was being created with an unusual set of permissions, I've removed it manually, and recreated it... Im now running a build to try and determine if the build is corrupting the directory somehow, or if some other process is involved.

steelhead31 commented 5 months ago

Test build running here: https://ci.adoptium.net/job/build-scripts/job/jobs/job/jdk8u/job/jdk8u-windows-x64-temurin/497/console

steelhead31 commented 5 months ago

Having run 2 consecutive builds on the ibmcloud machine, without issues of it cleaning the workspace, Im inclined to switch the machine back online,  I assume a crash or other process, caused the permissions on that temp directory to be wrong(owned by administrator rather than jenkins), and removing the wrong one, and recreating with the correct permissions has resolved the issues in the build

steelhead31 commented 5 months ago

Machine has been returned to service, following 2 x back to back builds without this problem recurring.