• Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • ec2-plugin
    • None
    • Nonprod

      Hi, 

       

      Post upgrading the jenkins to v2.414, I am unable to updated the dynamic agemt configuration of online agent. When i tried updating the labels or timeout, it gives the following error

       

      I could able to trace the errorlogs for this issue in jenkinslogs, and they are below. Can you please suggest how this can be fixed? Thanks

      2024-05-18 09:48:26.008+0000 [id=15]    WARNING o.e.j.s.h.ContextHandler$Context#log: Error while serving https://JENKINS_URL/computer/EC2%20%28ec2%2Dplatformnonprod%29%20%2D%20deploy%2Dmanagement%2Dvault%20%28i%2D0dd4d9b270c873b88%29/configSubmit
      org.kohsuke.stapler.NoStaplerConstructorException: There's no @DataBoundConstructor on any constructor of class java.lang.Boolean
              at org.kohsuke.stapler.ClassDescriptor.loadConstructorParamNames(ClassDescriptor.java:276)
              at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:862)
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:766)
      Caused: java.lang.IllegalArgumentException: Failed to instantiate class java.lang.Boolean from {"metadataEndpointEnabled":true,"metadataTokensRequired":false,"metadataHopsLimit":"1"}
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:769)
              at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:549)
              at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:875)
      Caused: java.lang.IllegalArgumentException: Failed to convert the metadataSupported parameter of the constructor public hudson.plugins.ec2.EC2OndemandSlave(java.lang.String,java.lang.String,java.lang.String,java.lang.String,int,java.lang.String,hudson.model.Node$Mode,java.lang.String,java.lang.String,java.util.List,java.lang.String,java.lang.String,java.lang.String,boolean,java.lang.String,java.lang.String,java.lang.String,java.util.List,java.lang.String,int,hudson.plugins.ec2.AMITypeData,hudson.plugins.ec2.ConnectionStrategy,int,hudson.plugins.ec2.Tenancy,java.lang.Boolean,java.lang.Boolean,java.lang.Integer,java.lang.Boolean) throws hudson.model.Descriptor$FormException,java.io.IOException
              at org.kohsuke.stapler.RequestImpl.instantiate(RequestImpl.java:877)
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:766)
      Caused: java.lang.IllegalArgumentException: Failed to instantiate class hudson.plugins.ec2.EC2OndemandSlave from {"name":"EC2 (ec2-platformnonprod) - deploy-management-vault (i-0dd4d9b270c873b88)","spotInstanceRequestId":"","cloudName":"ec2-platformnonprod","templateDescription":"deploy-management-vault","instanceId":"i-0dd4d9b270c873b88","ec2Type":"On Demand","":["1 hr 32 min","0"],"publicDNS":"","privateDNS":"IP","nodeDescription":"","numExecutors":"3","labelString":"deploy-management-vault","mode":"EXCLUSIVE","initScript":"","remoteFS":"/home/jenkins-slave","remoteAdmin":"jenkins-slave","stopOnTerminate":false,"idleTerminationMinutes":"200","tags":[{"name":"Costcentre_Projectcode","value":"9CH07"},{"name":"Name","value":"platform-jenkins-slave-deploy-management"},{"name":"HSN","value":"JENKINS NPE AWD"},{"name":"jenkins_server_url","value":"https://JENKINS_URL/"},{"name":"Team","value":"cloud-operations"},{"name":"jenkins_slave_type","value":"demand_deploy-management-vault"},{"name":"Owner","value":"abcd@xyz.com"}],"usePrivateDnsName":false,"tenancy":"Default","amiType":{"rootCommandPrefix":"","slaveCommandPrefix":"","slaveCommandSuffix":"","sshPort":"22","bootDelay":"","stapler-class<span class="code-quote">":"hudson.plugins.ec2.UnixData","$class<span class="code-quote">":"hudson.plugins.ec2.UnixData"},"maxTotalUses":"-1","nodeProperties":{"stapler-class-bag":"true"},"metadataSupported":{"metadataEndpointEnabled":true,"metadataTokensRequired":false,"metadataHopsLimit":"1"},"Submit":"","Jenkins-Crumb":"b7faf891b74a61ba0c82c8eb1682d65144b063adbbf1525e4fed893904c36a8f"}
              at org.kohsuke.stapler.RequestImpl$TypePair.convertJSON(RequestImpl.java:769)
              at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:549)
              at org.kohsuke.stapler.RequestImpl.bindJSON(RequestImpl.java:544)
              at hudson.model.Descriptor.bindJSON(Descriptor.java:622)
              at hudson.model.Descriptor.newInstance(Descriptor.java:592)
      Caused: java.lang.LinkageError: Failed to instantiate class hudson.plugins.ec2.EC2OndemandSlave from {"name":"EC2 (ec2-platformnonprod) - deploy-management-vault (i-0dd4d9b270c873b88)","spotInstanceRequestId":"","cloudName":"ec2-platformnonprod","templateDescription":"deploy-management-vault","instanceId":"i-0dd4d9b270c873b88","ec2Type":"On Demand","":["1 hr 32 min","0"],"publicDNS":"","privateDNS":"IP_ADDRESS","nodeDescription":"","numExecutors":"3","labelString":"deploy-management-vault","mode":"EXCLUSIVE","initScript":"","remoteFS":"/home/jenkins-slave","remoteAdmin":"jenkins-slave","stopOnTerminate":false,"idleTerminationMinutes":"200","tags":[{"name":"Costcentre_Projectcode","value":"9CH07"},{"name":"Name","value":"platform-jenkins-slave-deploy-management"},{"name":"HSN","value":"JENKINS NPE AWD"},{"name":"jenkins_server_url","value":"https://FABRIZIO MANFREDI/"},{"name":"Team","value":"cloud-operations"},{"name":"jenkins_slave_type","value":"demand_deploy-management-vault"},{"name":"Owner","value":"abc@xyz.com"}],"usePrivateDnsName":false,"tenancy":"Default","amiType":{"rootCommandPrefix":"","slaveCommandPrefix":"","slaveCommandSuffix":"","sshPort":"22","bootDelay":"","stapler-class<span class="code-quote">":"hudson.plugins.ec2.UnixData","$class<span class="code-quote">":"hudson.plugins.ec2.UnixData"},"maxTotalUses":"-1","nodeProperties":{"stapler-class-bag":"true"},"metadataSupported":{"metadataEndpointEnabled":true,"metadataTokensRequired":false,"metadataHopsLimit":"1"},"Submit":"","Jenkins-Crumb":"b7faf891b74a61ba0c82c8eb1682d65144b063adbbf1525e4fed893904c36a8f"}
              at hudson.model.Descriptor.newInstance(Descriptor.java:595)
      

       

       

          [JENKINS-73190] Unable to update the dynamic agent configs

          Mark Waite added a comment -

          The volunteers that investigate Jenkins issue reports and review Jenkins bug reports are much more likely to investigate an issue when the issue includes enough information so that they can duplicate the issue without unnecessary guessing. Please include the information requested in "How to report an issue" so that others will be more likely to investigate.

          Some additional questions that need to be answered include:

          • What plugins are being used and what versions of those plugins?
          • Does the same problem happen on the most recent Jenkins LTS release (2.452.1) with the most recent plugin versions?
          • Is a reverse proxy configured for this Jenkins controller and if so, does the same problem happen when the reverse proxy is not used?

          Mark Waite added a comment - The volunteers that investigate Jenkins issue reports and review Jenkins bug reports are much more likely to investigate an issue when the issue includes enough information so that they can duplicate the issue without unnecessary guessing. Please include the information requested in "How to report an issue" so that others will be more likely to investigate. Some additional questions that need to be answered include: What plugins are being used and what versions of those plugins? Does the same problem happen on the most recent Jenkins LTS release (2.452.1) with the most recent plugin versions? Is a reverse proxy configured for this Jenkins controller and if so, does the same problem happen when the reverse proxy is not used?

          Mark Waite added a comment -

          Closing after several months with no response from the submitter.

          Mark Waite added a comment - Closing after several months with no response from the submitter.

            mallayya_s Mallayya
            mallayya_s Mallayya
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: