Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-18019

CIFS configurations are being reset from Jenkins configuration after restart

      Hi..

      We had an issue with Jenkins configuration reset.
      We added CIFS configurations in ManageJenkins --> ConfigureSystem and saved.
      But When we restart jenkins, our CIFS configurations are reset. Any solution available for this.

      Jenkins Ver. 1.504
      CIFS Plugin Version Ver. 0.2

          [JENKINS-18019] CIFS configurations are being reset from Jenkins configuration after restart

          Fred G added a comment -

          Sorry, my bad. This is not really a duplicate, because it refers to CiFS configuration not SSH. It could still be a related issue though.

          Fred G added a comment - Sorry, my bad. This is not really a duplicate, because it refers to CiFS configuration not SSH. It could still be a related issue though.

          Fred G added a comment -

          Same problem here.
          Environment: Jenkins version 1.518, Publish Over CiFS version 0.2, Jenkins Server: Win 2003 Server

          Seems like the configuration is not read correctly from the XML file:

          15.07.2013 13:48:51 hudson.model.Descriptor load
          WARNUNG: Failed to load f:\Jenkins\jenkins.plugins.publish_over_cifs.CifsPublisherPlugin.xml
          hudson.util.IOException2: Unable to read f:\Jenkins\jenkins.plugins.publish_over_cifs.CifsPublisherPlugin.xml
          	at hudson.XmlFile.unmarshal(XmlFile.java:170)
          	at hudson.model.Descriptor.load(Descriptor.java:806)
          	at jenkins.plugins.publish_over.BPPluginDescriptor.<init>(BPPluginDescriptor.java:56)
          	at jenkins.plugins.publish_over_cifs.CifsPublisherPlugin$Descriptor.<init>(CifsPublisherPlugin.java:100)
          	at jenkins.plugins.publish_over_cifs.CifsPublisherPlugin$Descriptor$$FastClassByGuice$$9d63b4dd.newInstance(<generated>)
          	at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40)
          	at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61)
          	at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
          	at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87)
          	at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259)
          	at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018)
          	at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
          	at com.google.inject.Scopes$1$1.get(Scopes.java:59)
          	at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:429)
          	at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41)
          	at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965)
          	at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011)
          	at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961)
          	at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391)
          	at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382)
          	at hudson.ExtensionFinder._find(ExtensionFinder.java:151)
          	at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:318)
          	at hudson.ExtensionList.load(ExtensionList.java:295)
          	at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248)
          	at hudson.ExtensionList.iterator(ExtensionList.java:138)
          	at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1181)
          	at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:100)
          	at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35)
          	at hudson.PluginManager$2$1$2.run(PluginManager.java:353)
          	at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146)
          	at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259)
          	at jenkins.model.Jenkins$7.runTask(Jenkins.java:893)
          	at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187)
          	at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
          	at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
          	at java.lang.Thread.run(Unknown Source)
          Caused by: com.thoughtworks.xstream.converters.ConversionException: object is not an instance of declaring class : object is not an instance of declaring class
          ---- Debugging information ----
          message             : object is not an instance of declaring class
          cause-exception     : java.lang.IllegalArgumentException
          cause-message       : object is not an instance of declaring class
          class               : jenkins.plugins.publish_over_cifs.CifsHostConfiguration
          required-type       : jenkins.plugins.publish_over_cifs.CifsHostConfiguration
          converter-type      : hudson.util.RobustReflectionConverter
          path                : /jenkins.plugins.publish_over_cifs.CifsPublisherPlugin$Descriptor/hostConfigurations/jenkins.plugins.publish_over_cifs.CifsHostConfiguration
          line number         : 14
          class[1]            : hudson.util.CopyOnWriteList
          converter-type[1]   : hudson.util.XStream2$AssociatedConverterImpl
          class[2]            : jenkins.plugins.publish_over_cifs.CifsPublisherPlugin$Descriptor
          version             : null
          -------------------------------
          	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79)
          	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.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71)
          	at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:193)
          	at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:172)
          	at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:337)
          	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 hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333)
          	at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275)
          	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222)
          	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:1061)
          	at hudson.util.XStream2.unmarshal(XStream2.java:109)
          	at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045)
          	at hudson.XmlFile.unmarshal(XmlFile.java:166)
          	... 37 more
          Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class
          	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
          	at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
          	at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
          	at java.lang.reflect.Method.invoke(Unknown Source)
          	at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66)
          	at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:223)
          	at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72)
          	... 60 more
          
          

          Fred G added a comment - Same problem here. Environment: Jenkins version 1.518, Publish Over CiFS version 0.2, Jenkins Server: Win 2003 Server Seems like the configuration is not read correctly from the XML file: 15.07.2013 13:48:51 hudson.model.Descriptor load WARNUNG: Failed to load f:\Jenkins\jenkins.plugins.publish_over_cifs.CifsPublisherPlugin.xml hudson.util.IOException2: Unable to read f:\Jenkins\jenkins.plugins.publish_over_cifs.CifsPublisherPlugin.xml at hudson.XmlFile.unmarshal(XmlFile.java:170) at hudson.model.Descriptor.load(Descriptor.java:806) at jenkins.plugins.publish_over.BPPluginDescriptor.<init>(BPPluginDescriptor.java:56) at jenkins.plugins.publish_over_cifs.CifsPublisherPlugin$Descriptor.<init>(CifsPublisherPlugin.java:100) at jenkins.plugins.publish_over_cifs.CifsPublisherPlugin$Descriptor$$FastClassByGuice$$9d63b4dd.newInstance(<generated>) at com.google.inject.internal.cglib.reflect.$FastConstructor.newInstance(FastConstructor.java:40) at com.google.inject.internal.DefaultConstructionProxyFactory$1.newInstance(DefaultConstructionProxyFactory.java:61) at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108) at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:87) at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:259) at com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1018) at com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40) at com.google.inject.Scopes$1$1.get(Scopes.java:59) at hudson.ExtensionFinder$GuiceFinder$FaultTolerantScope$1.get(ExtensionFinder.java:429) at com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:41) at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:965) at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1011) at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:961) at hudson.ExtensionFinder$GuiceFinder._find(ExtensionFinder.java:391) at hudson.ExtensionFinder$GuiceFinder.find(ExtensionFinder.java:382) at hudson.ExtensionFinder._find(ExtensionFinder.java:151) at hudson.ClassicPluginStrategy.findComponents(ClassicPluginStrategy.java:318) at hudson.ExtensionList.load(ExtensionList.java:295) at hudson.ExtensionList.ensureLoaded(ExtensionList.java:248) at hudson.ExtensionList.iterator(ExtensionList.java:138) at jenkins.model.Jenkins.getDescriptorByType(Jenkins.java:1181) at hudson.plugins.copyartifact.BuildSelectorParameter.initAliases(BuildSelectorParameter.java:100) at hudson.plugins.copyartifact.CopyArtifactPlugin.postInitialize(CopyArtifactPlugin.java:35) at hudson.PluginManager$2$1$2.run(PluginManager.java:353) at org.jvnet.hudson.reactor.TaskGraphBuilder$TaskImpl.run(TaskGraphBuilder.java:146) at org.jvnet.hudson.reactor.Reactor.runTask(Reactor.java:259) at jenkins.model.Jenkins$7.runTask(Jenkins.java:893) at org.jvnet.hudson.reactor.Reactor$2.run(Reactor.java:187) at org.jvnet.hudson.reactor.Reactor$Node.run(Reactor.java:94) at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source) at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at java.lang. Thread .run(Unknown Source) Caused by: com.thoughtworks.xstream.converters.ConversionException: object is not an instance of declaring class : object is not an instance of declaring class ---- Debugging information ---- message : object is not an instance of declaring class cause-exception : java.lang.IllegalArgumentException cause-message : object is not an instance of declaring class class : jenkins.plugins.publish_over_cifs.CifsHostConfiguration required-type : jenkins.plugins.publish_over_cifs.CifsHostConfiguration converter-type : hudson.util.RobustReflectionConverter path : /jenkins.plugins.publish_over_cifs.CifsPublisherPlugin$Descriptor/hostConfigurations/jenkins.plugins.publish_over_cifs.CifsHostConfiguration line number : 14 class[ 1] : hudson.util.CopyOnWriteList converter-type[1] : hudson.util.XStream2$AssociatedConverterImpl class[ 2] : jenkins.plugins.publish_over_cifs.CifsPublisherPlugin$Descriptor version : null ------------------------------- at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:79) 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.converters.collections.AbstractCollectionConverter.readItem(AbstractCollectionConverter.java:71) at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:193) at hudson.util.CopyOnWriteList$ConverterImpl.unmarshal(CopyOnWriteList.java:172) at hudson.util.XStream2$AssociatedConverterImpl.unmarshal(XStream2.java:337) 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 hudson.util.RobustReflectionConverter.unmarshalField(RobustReflectionConverter.java:333) at hudson.util.RobustReflectionConverter.doUnmarshal(RobustReflectionConverter.java:275) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:222) 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:1061) at hudson.util.XStream2.unmarshal(XStream2.java:109) at com.thoughtworks.xstream.XStream.unmarshal(XStream.java:1045) at hudson.XmlFile.unmarshal(XmlFile.java:166) ... 37 more Caused by: java.lang.IllegalArgumentException: object is not an instance of declaring class at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at com.thoughtworks.xstream.converters.reflection.SerializationMethodInvoker.callReadResolve(SerializationMethodInvoker.java:66) at hudson.util.RobustReflectionConverter.unmarshal(RobustReflectionConverter.java:223) at com.thoughtworks.xstream.core.TreeUnmarshaller.convert(TreeUnmarshaller.java:72) ... 60 more

          Similar problem with publish over ssh

          Brett Delle Grazie added a comment - Similar problem with publish over ssh

          Tom Canova added a comment -

          Same issue for me. Every time I restart jenkins (running on centos), I have to reenter my cifs shares, and certain jobs will fail until these are entered. I wonder if the failure has to do with parsing/reconsituting the secretPassword. As this apparently depends on the secret.key and since our secret.key was created in 2011, I wonder if there is a secret.key backwards compatability issue. Anyway - hoping this can be resolved soon.

          Tom Canova added a comment - Same issue for me. Every time I restart jenkins (running on centos), I have to reenter my cifs shares, and certain jobs will fail until these are entered. I wonder if the failure has to do with parsing/reconsituting the secretPassword. As this apparently depends on the secret.key and since our secret.key was created in 2011, I wonder if there is a secret.key backwards compatability issue. Anyway - hoping this can be resolved soon.

          Fred G added a comment -

          I've compiled a local version of the publish-over-cifs plug-in with the applied patch from this pull request here:
          https://github.com/jenkinsci/publish-over-cifs-plugin/pull/1 .
          Works fine for me. I hope the original pull request gets reopened.

          Fred G added a comment - I've compiled a local version of the publish-over-cifs plug-in with the applied patch from this pull request here: https://github.com/jenkinsci/publish-over-cifs-plugin/pull/1 . Works fine for me. I hope the original pull request gets reopened.

          Tom Canova added a comment -

          Not sure if slide_o_mix or bap is the right person to handle the pull request from fredg. They appear to be the original developers on this plugin. If not, maybe kohsuke can help pull this in.

          Tom Canova added a comment - Not sure if slide_o_mix or bap is the right person to handle the pull request from fredg . They appear to be the original developers on this plugin. If not, maybe kohsuke can help pull this in.

          Fred G added a comment -

          It's actually not my pull request. A guy called "grantbacon" opened it.

          Fred G added a comment - It's actually not my pull request. A guy called "grantbacon" opened it.

          This issue has too may duplicates. Hard to keep track of progress..

          François Dumont added a comment - This issue has too may duplicates. Hard to keep track of progress..

          Ramakrishna Bejawar added a comment - - edited

          This issue got fixed when I upgraded Jenkins to 2.0.

          Ramakrishna Bejawar added a comment - - edited This issue got fixed when I upgraded Jenkins to 2.0.

          For your information, all publish-over-cifs component type JENKINS issues related to the Publish Over CIFS plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues

          Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues/45
          And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-cifs-plugin/issues?q=%22JENKINS-18019%22

          (Note: this is an automated bulk comment)

          Gavin McDonald added a comment - For your information, all publish-over-cifs component type JENKINS issues related to the Publish Over CIFS plugin have been transferred to Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues Here is the direct link to this issue in Github: https://github.com/jenkinsci/publish-over-cifs-plugin/issues/45 And here is the link to a search for related issues: https://github.com/jenkinsci/publish-over-cifs-plugin/issues?q=%22JENKINS-18019%22 (Note: this is an automated bulk comment)

            Unassigned Unassigned
            rkbejawar Ramakrishna Bejawar
            Votes:
            6 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved: