Jenkins not starting after I close it

Lately after I start Jenkins and run a job, then if I quit Jenkins, it will not restart. I am not sure if the errors are always the same or not, but this is the one I am getting now. Any idea how to resolve this? The only way I know how is to erase the jenkins home folder and restore from a backup…

2022-11-01 15:55:27.034+0000 [id=57] INFO h.util.RobustReflectionConverter#doUnmarshal: There was a problem reporting unmarshalling field errors. Make sure this code is executed after InitMilestone.EXTENSIONS_AUGMENTED stage, for example in Plugin#postInitialize instead of Plugin#start
java.lang.IllegalStateException: Expected 1 instance of hudson.diagnosis.OldDataMonitor but got 0
at hudson.ExtensionList.lookupSingleton(ExtensionList.java:451)
at hudson.diagnosis.OldDataMonitor.get(OldDataMonitor.java:91)
at hudson.diagnosis.OldDataMonitor.report(OldDataMonitor.java:223)
at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:383)
at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:277)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
at com.thoughtworks.xstream.core.AbstractReferenceUnmarshaller.convert(AbstractReferenceUnmarshaller.java:65)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:66)
at com.thoughtworks.xstream.core.TreeUnmarshaller.convertAnother(TreeUnmarshaller.java:50)
at com.thoughtworks.xstream.core.TreeUnmarshaller.start(TreeUnmarshaller.java:134)
at com.thoughtworks.xstream.core.AbstractTreeMarshallingStrategy.unmarshal(AbstractTreeMarshallingStrategy.java:32)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1189)
at hudson.util.XStream2.unmarshal(XStream2.java:161)
at hudson.util.XStream2.unmarshal(XStream2.java:132)
at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1173)
at hudson.XmlFile.unmarshal(XmlFile.java:180)
at hudson.XmlFile.unmarshal(XmlFile.java:163)
at hudson.logging.LogRecorder.load(LogRecorder.java:373)
at hudson.logging.LogRecorderManager.load(LogRecorderManager.java:105)
at hudson.logging.LogRecorderManager.init(LogRecorderManager.java:206)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.base/java.lang.reflect.Method.invoke(Method.java:566)
at hudson.init.TaskMethodFinder.invoke(TaskMethodFinder.java:104)
at hudson.init.TaskMethodFinder$TaskImpl.run(TaskMethodFinder.java:175)
at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:296)
at jenkins.model.Jenkins$5.runTask(Jenkins.java:1131)
at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:214)
at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:117)
at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:59)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)

Hi @sabibo ,

What is your version of Jenkins?
What is your Java version?
Which Operating System are you using?
How do you start/restart Jenkins?
What plugins do you use?

Thanks.

Jenkins 2.361.2
Java openjdk 11.0.8
Windows 10
I start it using the war file from a batch, like this:
java -D"hudson.plugins.git.GitSCM.ALLOW_LOCAL_CHECKOUT=true" -jar jenkins.war

I use a lot of plugins but all pretty standard stuff I think … blue ocean, extended choice parameter…