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

InfluxDB error failed to collect data after updates

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Major Major
    • influxdb-plugin
    • None
    • OS: Windows 2012 R2
      Jenkins Version: 2.121.3
      InfluxDB Plugin Version: 1.18

      Updated to Jenkins 2.121.3, as well as updated all other plugins with updates and suddenly all of my projects are getting an error shown below.  Prior to updating, this issue did not pesist; I attempted on 2 prior versions of the Jenkins WAR and the issues continues, so I assume it's something to do with a different plugin.

      [InfluxDB Plugin] Publishing data to: [url=http://10.10.101.142:8086, description=jenkins_data, username=admin, password=*****, database=jenkins_data]
      [InfluxDB Plugin] Failed to collect data. Ignoring Exception:java.lang.NullPointerException
      ERROR: Build step failed with exception
      java.lang.NullPointerException
      {{ at jenkinsci.plugins.influxdb.generators.CustomDataPointGenerator.<init>(CustomDataPointGenerator.java:27)}}
      {{ at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:341)}}
      {{ at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)}}
      {{ at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)}}
      {{ at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)}}
      {{ at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)}}
      {{ at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)}}
      {{ at hudson.model.Run.execute(Run.java:1845)}}
      {{ at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)}}
      {{ at hudson.model.ResourceController.execute(ResourceController.java:97)}}
      {{ at hudson.model.Executor.run(Executor.java:429)}}
      Build step 'Publish build data to InfluxDb target' marked build as failure

          [JENKINS-53194] InfluxDB error failed to collect data after updates

          After downgrading Jenkins told me that i have some incompatible settings in the InfluxDB part, but i forgot to write it down. And can't reproduce it.

          It looked for me like there should be an empty array but there was null.

          Grzegorz Dziegielewski added a comment - After downgrading Jenkins told me that i have some incompatible settings in the InfluxDB part, but i forgot to write it down. And can't reproduce it. It looked for me like there should be an empty array but there was null.

          Aleksi Simell added a comment -

          jabbas Did your configuration also complain about 

          java.lang.NullPointerException
          {{ at jenkinsci.plugins.influxdb.generators.CustomDataPointGenerator.<init>(CustomDataPointGenerator.java:27)}}?

          I just tried with a job (not pipeline), that only publishes to InfluxDB, but was not able to reproduce this with version 1.18. I couldn't reproduce with a pipeline job either with customData or null customData.

          Aleksi Simell added a comment - jabbas Did your configuration also complain about  java.lang.NullPointerException {{ at jenkinsci.plugins.influxdb.generators.CustomDataPointGenerator.<init>(CustomDataPointGenerator.java:27)}}? I just tried with a job (not pipeline), that only publishes to InfluxDB, but was not able to reproduce this with version 1.18. I couldn't reproduce with a pipeline job either with customData or null customData.

          Yes, exactly same error.

          [InfluxDB Plugin] Failed to collect data. Ignoring Exception:java.lang.NullPointerException
          ERROR: Build step failed with exception
          java.lang.NullPointerException
          	at jenkinsci.plugins.influxdb.generators.CustomDataPointGenerator.<init>(CustomDataPointGenerator.java:27)
          	at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:341)
          	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81)
          	at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744)
          	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
          	at hudson.model.Build$BuildExecution.cleanUp(Build.java:196)
          	at hudson.model.Run.execute(Run.java:1845)
          	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
          	at hudson.model.ResourceController.execute(ResourceController.java:97)
          	at hudson.model.Executor.run(Executor.java:429)
          

          Grzegorz Dziegielewski added a comment - Yes, exactly same error. [InfluxDB Plugin] Failed to collect data. Ignoring Exception:java.lang.NullPointerException ERROR: Build step failed with exception java.lang.NullPointerException at jenkinsci.plugins.influxdb.generators.CustomDataPointGenerator.<init>(CustomDataPointGenerator.java:27) at jenkinsci.plugins.influxdb.InfluxDbPublisher.perform(InfluxDbPublisher.java:341) at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:81) at hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20) at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:744) at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690) at hudson.model.Build$BuildExecution.cleanUp(Build.java:196) at hudson.model.Run.execute(Run.java:1845) at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43) at hudson.model.ResourceController.execute(ResourceController.java:97) at hudson.model.Executor.run(Executor.java:429)

          Marco Jacob added a comment -

          We also get this on Windows Jenkins 2.107.2 with InfluxDb Plugin 1.1.8, but not on Solaris with Jenkins 2.107.3 and InfluxDB 1.1.8. Strange.

          I just stored global Jenkins config and Job config on Windows again to see if this might fix it.

           

          Marco Jacob added a comment - We also get this on Windows Jenkins 2.107.2 with InfluxDb Plugin 1.1.8, but not on Solaris with Jenkins 2.107.3 and InfluxDB 1.1.8. Strange. I just stored global Jenkins config and Job config on Windows again to see if this might fix it.  

          marco_jacob Do you have same set of plugins installed on both Solaris and Windows?

          Grzegorz Dziegielewski added a comment - marco_jacob Do you have same set of plugins installed on both Solaris and Windows?

          Marco Jacob added a comment -

          No, there are differences. Some version differ, some plugins installed on one but not the other.

          Marco Jacob added a comment - No, there are differences. Some version differ, some plugins installed on one but not the other.

          Marco Jacob added a comment -

          And one system 2.107.2, the other 2.107.3

          Marco Jacob added a comment - And one system 2.107.2, the other 2.107.3

          Aleksi Simell added a comment -

          jabbas marco_jacob shadow00caster Does this error occur only on a Windows slave?

          Aleksi Simell added a comment - jabbas marco_jacob shadow00caster Does this error occur only on a Windows slave?

          Nope, mine is running on RHEL 6.

          Grzegorz Dziegielewski added a comment - Nope, mine is running on RHEL 6.

          Aleksi Simell added a comment -

          Fixed with PR 47.

          Aleksi Simell added a comment - Fixed with PR 47 .

            aleksisimell Aleksi Simell
            shadow00caster Joe Bob
            Votes:
            1 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: