MANIFEST.MF files gets deleted automatically for all plugins

Jenkins 2.332.2
OS RHEL 8.8

For all plugins MANIFEST.MF files gets deleted automatically.

I do have backup in which I can see this files are present.

2023-05-15 10:18:07.930+0000 [id=45] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Inspecting plugin /home/jenkins/plugins/ace-editor.jpi
java.io.IOException: Plugin installation failed. No manifest at /home/jenkins/plugins/ace-editor/META-INF/MANIFEST.MF
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:174)
at hudson.PluginManager$1$3$1.run(PluginManager.java:434)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:175)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1156)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
2023-05-15 10:18:07.932+0000 [id=48] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Inspecting plugin /home/jenkins/plugins/antisamy-markup-formatter.jpi
java.io.IOException: Plugin installation failed. No manifest at /home/jenkins/plugins/antisamy-markup-formatter/META-INF/MANIFEST.MF
at hudson.ClassicPluginStrategy.createPluginWrapper(ClassicPluginStrategy.java:174)
at hudson.PluginManager$1$3$1.run(PluginManager.java:434)
at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:175)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:305)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1156)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:222)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:121)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:748)
2023-05-15 10:18:07.934+0000 [id=50] SEVERE jenkins.InitReactorRunner$1#onTaskFailed: Failed Inspecting plugin /home/jenkins/plugins/ant.jpi
java.io.IOException: Plugin installation failed. No manifest at /home/jenkins/plugins/ant/META-INF/MANIFEST.MF

Jenkins does not delete those manifest files. Check your local system for other processes that might have deleted them.

Be sure that your controller does not allow jobs to run on the controller. If you allow jobs to run on the controller, then it is possible for a buggy job to delete things that it should not.

1 Like

All the jobs are on Agent no jobs are running on controller. It’s a dedicated jenkins instance with no other process running.

My java binary is also deleted.
tree jdk1.8.0_131/bin/
jdk1.8.0_131/bin/

0 directories, 0 files

The earlier comment still applies.