Hi Community,
We were updating jenkins 2.401.3-lts to 2.461.3-lts (deployed in k8s). Below are pod logs-
Running from: /usr/share/jenkins/jenkins.war
webroot: /var/jenkins_home/war
2024-10-22 03:13:14.536+0000 [id=1] INFO winstone.Logger#logInternal: Beginning extraction from war file
2024-10-22 03:13:19.688+0000 [id=1] WARNING winstone.Logger#logInternal: Failed to delete dirs /var/jenkins_home/war/WEB-INF/lib
java.nio.file.DirectoryNotEmptyException: /var/jenkins_home/war/WEB-INF/lib
at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(Unknown Source)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source)
at java.base/java.nio.file.Files.deleteIfExists(Unknown Source)
at Jenkins Main ClassLoader//winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:334)
at Jenkins Main ClassLoader//winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:330)
at Jenkins Main ClassLoader//winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:330)
at Jenkins Main ClassLoader//winstone.HostConfiguration.getWebRoot(HostConfiguration.java:257)
at Jenkins Main ClassLoader//winstone.HostConfiguration.<init>(HostConfiguration.java:86)
at Jenkins Main ClassLoader//winstone.HostGroup.initHost(HostGroup.java:58)
at Jenkins Main ClassLoader//winstone.HostGroup.<init>(HostGroup.java:40)
at Jenkins Main ClassLoader//winstone.Launcher.<init>(Launcher.java:188)
at Jenkins Main ClassLoader//winstone.Launcher.main(Launcher.java:495)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at executable.Main.main(Main.java:335)
2024-10-22 03:13:19.708+0000 [id=1] WARNING winstone.Logger#logInternal: Failed to delete dirs /var/jenkins_home/war/WEB-INF
java.nio.file.DirectoryNotEmptyException: /var/jenkins_home/war/WEB-INF
at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(Unknown Source)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source)
at java.base/java.nio.file.Files.deleteIfExists(Unknown Source)
at Jenkins Main ClassLoader//winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:334)
at Jenkins Main ClassLoader//winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:330)
at Jenkins Main ClassLoader//winstone.HostConfiguration.getWebRoot(HostConfiguration.java:257)
at Jenkins Main ClassLoader//winstone.HostConfiguration.<init>(HostConfiguration.java:86)
at Jenkins Main ClassLoader//winstone.HostGroup.initHost(HostGroup.java:58)
at Jenkins Main ClassLoader//winstone.HostGroup.<init>(HostGroup.java:40)
at Jenkins Main ClassLoader//winstone.Launcher.<init>(Launcher.java:188)
at Jenkins Main ClassLoader//winstone.Launcher.main(Launcher.java:495)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at executable.Main.main(Main.java:335)
2024-10-22 03:13:19.723+0000 [id=1] WARNING winstone.Logger#logInternal: Failed to delete dirs /var/jenkins_home/war
java.nio.file.DirectoryNotEmptyException: /var/jenkins_home/war
at java.base/sun.nio.fs.UnixFileSystemProvider.implDelete(Unknown Source)
at java.base/sun.nio.fs.AbstractFileSystemProvider.deleteIfExists(Unknown Source)
at java.base/java.nio.file.Files.deleteIfExists(Unknown Source)
at Jenkins Main ClassLoader//winstone.HostConfiguration.deleteRecursive(HostConfiguration.java:334)
at Jenkins Main ClassLoader//winstone.HostConfiguration.getWebRoot(HostConfiguration.java:257)
at Jenkins Main ClassLoader//winstone.HostConfiguration.<init>(HostConfiguration.java:86)
at Jenkins Main ClassLoader//winstone.HostGroup.initHost(HostGroup.java:58)
at Jenkins Main ClassLoader//winstone.HostGroup.<init>(HostGroup.java:40)
at Jenkins Main ClassLoader//winstone.Launcher.<init>(Launcher.java:188)
at Jenkins Main ClassLoader//winstone.Launcher.main(Launcher.java:495)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at executable.Main.main(Main.java:335)
2024-10-22 03:13:30.334+0000 [id=1] INFO winstone.Logger#logInternal: Jetty shutdown successfully
java.io.FileNotFoundException: /var/jenkins_home/war/WEB-INF/lib/annotation-indexer-1.17.jar (No such file or directory)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.<init>(Unknown Source)
at java.base/java.io.FileOutputStream.<init>(Unknown Source)
at Jenkins Main ClassLoader//winstone.HostConfiguration.getWebRoot(HostConfiguration.java:303)
at Jenkins Main ClassLoader//winstone.HostConfiguration.<init>(HostConfiguration.java:86)
at Jenkins Main ClassLoader//winstone.HostGroup.initHost(HostGroup.java:58)
at Jenkins Main ClassLoader//winstone.HostGroup.<init>(HostGroup.java:40)
at Jenkins Main ClassLoader//winstone.Launcher.<init>(Launcher.java:188)
at Jenkins Main ClassLoader//winstone.Launcher.main(Launcher.java:495)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at executable.Main.main(Main.java:335)
2024-10-22 03:13:30.335+0000 [id=1] SEVERE winstone.Logger#logInternal: Container startup failed
java.io.FileNotFoundException: /var/jenkins_home/war/WEB-INF/lib/annotation-indexer-1.17.jar (No such file or directory)
at java.base/java.io.FileOutputStream.open0(Native Method)
at java.base/java.io.FileOutputStream.open(Unknown Source)
at java.base/java.io.FileOutputStream.<init>(Unknown Source)
at java.base/java.io.FileOutputStream.<init>(Unknown Source)
at Jenkins Main ClassLoader//winstone.HostConfiguration.getWebRoot(HostConfiguration.java:303)
at Jenkins Main ClassLoader//winstone.HostConfiguration.<init>(HostConfiguration.java:86)
at Jenkins Main ClassLoader//winstone.HostGroup.initHost(HostGroup.java:58)
at Jenkins Main ClassLoader//winstone.HostGroup.<init>(HostGroup.java:40)
at Jenkins Main ClassLoader//winstone.Launcher.<init>(Launcher.java:188)
at Jenkins Main ClassLoader//winstone.Launcher.main(Launcher.java:495)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.base/java.lang.reflect.Method.invoke(Unknown Source)
at executable.Main.main(Main.java:335)
Please suggest. Thanks in advance.