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

InfluxDB Plugin broken since 3.1 update on docker: `java.nio.file.AccessDeniedException: etc/ssl/private`

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Blocker Blocker
    • influxdb-plugin
    • None
    • Jenkins Official Helm Chart 3.11.3, Jenkins 2.319.2, InfluxDB Plugin 3.1, OKD 4.9
    • 3.1.1

      We run Jenkins in Kubernetes installed from the official helm chart with the official jenkins docker image for version 2.319.2. After upgrading to the influxdb 3.1 plugin none of our jobs can report metrics to influxdb. This was tested with a simple pipeline job

      echo "foobar"
      

      Console output:

      [Pipeline] Start of Pipeline
      [Pipeline] echo (hide)
      Foobar
      [Pipeline] End of Pipeline
      [InfluxDB Plugin] Collecting data...
      Finished: SUCCESS
      

      Jenkins Log:

      2022-02-02 07:52:27.782+0000 [id=600]	WARNING	h.model.listeners.RunListener#report: RunListener failed
      java.nio.file.AccessDeniedException: etc/ssl/private
      	at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:90)
      	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
      	at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:116)
      	at java.base/sun.nio.fs.UnixFileSystemProvider.newDirectoryStream(UnixFileSystemProvider.java:432)
      	at java.base/java.nio.file.Files.newDirectoryStream(Files.java:472)
      	at java.base/java.nio.file.FileTreeWalker.visit(FileTreeWalker.java:300)
      	at java.base/java.nio.file.FileTreeWalker.next(FileTreeWalker.java:373)
      	at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:83)
      Caused: java.io.UncheckedIOException
      	at java.base/java.nio.file.FileTreeIterator.fetchNextIfNeeded(FileTreeIterator.java:87)
      	at java.base/java.nio.file.FileTreeIterator.hasNext(FileTreeIterator.java:103)
      	at java.base/java.util.Iterator.forEachRemaining(Iterator.java:132)
      	at java.base/java.util.Spliterators$IteratorSpliterator.forEachRemaining(Spliterators.java:1801)
      	at java.base/java.util.stream.AbstractPipeline.copyInto(AbstractPipeline.java:484)
      	at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(AbstractPipeline.java:474)
      	at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(ReduceOps.java:913)
      	at java.base/java.util.stream.AbstractPipeline.evaluate(AbstractPipeline.java:234)
      	at java.base/java.util.stream.ReferencePipeline.collect(ReferencePipeline.java:578)
      	at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.findReportByFileName(SonarQubePointGenerator.java:317)
      	at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.getSonarProjectFromBuildReport(SonarQubePointGenerator.java:258)
      	at jenkinsci.plugins.influxdb.generators.SonarQubePointGenerator.hasReport(SonarQubePointGenerator.java:109)
      	at jenkinsci.plugins.influxdb.InfluxDbPublicationService.perform(InfluxDbPublicationService.java:246)
      	at jenkinsci.plugins.influxdb.global.GlobalRunListener.onCompleted(GlobalRunListener.java:75)
      	at hudson.model.listeners.RunListener.fireCompleted(RunListener.java:208)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.finish(WorkflowRun.java:625)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun.access$800(WorkflowRun.java:138)
      	at org.jenkinsci.plugins.workflow.job.WorkflowRun$GraphL.onNewHead(WorkflowRun.java:1045)
      	at org.jenkinsci.plugins.workflow.cps.CpsFlowExecution.notifyListeners(CpsFlowExecution.java:1473)
      	at org.jenkinsci.plugins.workflow.cps.CpsThreadGroup$3.run(CpsThreadGroup.java:491)
      	at org.jenkinsci.plugins.workflow.cps.CpsVmExecutorService$1.run(CpsVmExecutorService.java:38)
      	at hudson.remoting.SingleLaneExecutorService$1.run(SingleLaneExecutorService.java:139)
      	at jenkins.util.ContextResettingExecutorService$1.run(ContextResettingExecutorService.java:28)
      	at jenkins.security.ImpersonatingExecutorService$1.run(ImpersonatingExecutorService.java:68)
      	at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
      	at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
      	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:829)
      

      It looks like the new SonarQube integration is at fault and there is no way to turn it off.

      A downgrade is not a possible solution for us, since we run InfluxDB 2.1.1 where authentication is broken with older plugin versions.

            aleksisimell Aleksi Simell
            pmr Philipp Moeller
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: