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

Improve Advisor message in case of a 404 or 410 connection error with the Advisor server

XMLWordPrintable

      We should review this error message as it's misleading to the end user that might think the issue is with a missing bundle (when it's a connection issue with the Advisor server):

       
      2023-01-23 09:45:48.782+0000 [id=2883727] SEVERE c.c.j.p.a.client.AdvisorClient#doUploadFile: Exception trying to upload support bundle. Message: https://insights.cloudbees.com/api/users/***/upload/**?cc=**, File: [/var/jenkins_home/support/advisor/cloudbees-support_cloudbees-**.zip], Metadata: [isDirectory: [false], isHidden: [false], isReadable: [true], isRegularFile: [true], isSymbolicLink: [false], isWritable: [true]]
      java.io.FileNotFoundException: https://insights.cloudbees.com/api/users/**/upload/**?cc=**
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream0(HttpURLConnection.java:1920)
      at java.base/sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1520)
      at java.base/java.net.HttpURLConnection.getResponseCode(HttpURLConnection.java:527)
      at java.base/sun.net.www.protocol.https.HttpsURLConnectionImpl.getResponseCode(HttpsURLConnectionImpl.java:334)
      at com.cloudbees.jenkins.plugins.advisor.client.MultipartConnection.finish(MultipartConnection.java:91)
      at com.cloudbees.jenkins.plugins.advisor.client.AdvisorClient.doUploadFile(AdvisorClient.java:88)
      at com.cloudbees.jenkins.plugins.advisor.client.AdvisorClient.uploadFile(AdvisorClient.java:66)
      at com.cloudbees.jenkins.plugins.advisor.BundleUpload.executeInternal(BundleUpload.java:122)
      at com.cloudbees.jenkins.plugins.advisor.BundleUpload.execute(BundleUpload.java:81)
      at hudson.model.AsyncPeriodicWork.lambda$doRun$1(AsyncPeriodicWork.java:102)
      at java.base/java.lang.Thread.run(Thread.java:829)

            Unassigned Unassigned
            pierrebtz Pierre Beitz
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: