I got this err when download Git plugins use jenkins lts 2.414.3
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/gitPublisher_ja.html: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/extraRepo.html: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/icons/git-logo.svg: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/icons/git-icon.svg: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/icons: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/.timestamp2: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/META-INF/MANIFEST.MF: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/META-INF/maven/org.jenkins-ci.plugins/git/pom.xml: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/META-INF/maven/org.jenkins-ci.plugins/git/pom.properties: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
Also: java.nio.file.FileSystemException: /var/jenkins_home/plugins/git/META-INF/maven/org.jenkins-ci.plugins/git: Operation not permitted
at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:100)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setMode(UnixFileAttributeViews.java:277)
at java.base/sun.nio.fs.UnixFileAttributeViews$Posix.setPermissions(UnixFileAttributeViews.java:299)
at java.base/java.nio.file.Files.setPosixFilePermissions(Files.java:2167)
at jenkins.util.io.PathRemover.makeWritable(PathRemover.java:283)
at jenkins.util.io.PathRemover.makeRemovable(PathRemover.java:256)
at jenkins.util.io.PathRemover.removeOrMakeRemovableThenRemove(PathRemover.java:236)
at jenkins.util.io.PathRemover.tryRemoveFile(PathRemover.java:202)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:213)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.tryRemoveDirectoryContents(PathRemover.java:223)
at jenkins.util.io.PathRemover.tryRemoveRecursive(PathRemover.java:212)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:93)
jenkins.util.io.CompositeIOException: Unable to delete ‘/var/jenkins_home/plugins/git’. Tried 3 times (of a maximum of 3) waiting 0.1 sec between attempts. (Discarded 10 additional exceptions)
at jenkins.util.io.PathRemover.forceRemoveRecursive(PathRemover.java:96)
at hudson.Util.deleteRecursive(Util.java:329)
at hudson.Util.deleteRecursive(Util.java:318)
at hudson.ClassicPluginStrategy.explode(ClassicPluginStrategy.java:467)
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:168)
at hudson.PluginManager.dynamicLoad(PluginManager.java:926)
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2247)
Caused: java.io.IOException: Failed to dynamically deploy this plugin
at hudson.model.UpdateCenter$InstallationJob._run(UpdateCenter.java:2251)
at hudson.model.UpdateCenter$DownloadJob.run(UpdateCenter.java:1897)
at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:539)
at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
at hudson.remoting.AtmostOneThreadExecutor$Worker.run(AtmostOneThreadExecutor.java:121)
at java.base/java.lang.Thread.run(Thread.java:833)
At Jenkins startup jenkins will extract all the .jpi files in the plugins folder, i.e. git.jpi is extracted to folder git.
As some of your folders are owned by root and only root has write permissions, jenkins is not able to modify those folders as jenkins is not running as root in your container
You can delete all the folders in the plugins directory outside of your container when jenkins is stopped. Then start again and it will most likely work.
You should check all files in /var/jenkins_home that they have the correct ownership (not root)
But can i still not deleted the folder or file, but change the permission of file or folder then what permission i should use to change that permission folder or file?