Downloaded file /var/lib/jenkins/plugins/scm-api.jpi.tmp does not match expected SHA-1, expected 'GSoCVeUDmMHHd4hvIx6GHlvzA1g=', actual 'NUD1ONAUpGfIc3Hk0DiYO5HhS48='

Jenkins JIRA | Xifeng Zou | 8 months ago
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    Maybe this issue is related to [JDK-4620571 : urlconnection following redirect uses protocol of original request|] [] I installed Jenkins 2.7.4 LTS from ubuntu apt repository following the offical installation guide. Then I navigated to the jenkins webapp url. After filled in initial admin password, loading indicator was shown for some time, and I got a message "This Jenkins instance appears to be offline." I am sure the network connection is fine and not behind any proxy. I skipped proxy configuration. Jenkins runs fine, but when I opened plugins manager, no plugins found. Since I have been worked with Hudson (before Jenkins split from Hudson) for quite long time I knew some problem occured. When I checked log file, I got following log entry: {quote} WARNING: Upgrading Jenkins. Failed to update the default Update Site 'default'. Plugin upgrades may fail. Could not find JSON in at hudson.model.DownloadService.loadJSON( at hudson.model.UpdateSite.updateDirectlyNow( at hudson.model.UpdateCenter.updateDefaultSite( at jenkins.install.SetupWizard.init( at jenkins.install.InstallState$3.initializeState( at jenkins.model.Jenkins.setInstallState( at jenkins.install.InstallUtil.proceedToNextStateFrom( at jenkins.model.Jenkins.<init>( at hudson.model.Hudson.<init>( at hudson.model.Hudson.<init>( at hudson.WebAppMain$ {quote} I tried to check the update site url with shell {quote}curl\?id=default\&version=2.7.4{quote}. The response is a 301 redirect. After another two 302 redirects, I got the final update site url: {quote}{quote} The entire network flow of update site: {quote} 301 302 302 {quote} Then I changed the default update site url to this mirror url, I could get plugins list now. But when I tried to install some plugins, failed. I checked the log file and found following message: {quote} SEVERE: Failed to install SCM API Plugin Downloaded file /var/lib/jenkins/plugins/scm-api.jpi.tmp does not match expected SHA-1, expected 'GSoCVeUDmMHHd4hvIx6GHlvzA1g=', actual 'NUD1ONAUpGfIc3Hk0DiYO5HhS48=' at hudson.model.UpdateCenter.verifyChecksums( at hudson.model.UpdateCenter.access$1100( at hudson.model.UpdateCenter$InstallationJob.replace( at hudson.model.UpdateCenter$UpdateCenterConfiguration.install( at hudson.model.UpdateCenter$DownloadJob._run( at hudson.model.UpdateCenter$InstallationJob._run( at hudson.model.UpdateCenter$ at java.util.concurrent.Executors$ at at hudson.remoting.AtmostOneThreadExecutor$ at {quote} I opened scm-api.jpi.tmp, it was a html file: {quote} <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>302 Found</title> </head><body> <h1>Found</h1> <p>The document has moved <a href="">here</a>.</p> </body></html> {quote} I can't figure out what happened. So I uninstalled 2.7.4, and installed 2.22 from apt reposity, the problem is still there. And I tried to install jenkins web app into tomcat 8.55, the problem is not resolved. I also tried openjdk8, before that oracle jdk 1.7.0_25 was used. Today, I cloned the source code from github, tried to add some log with bq. hudson.model.DownloadService.loadJSON(URL src) around line 170. I found that when using default update site url URLConnection stopped to follow the last 302 redirect to bq. After that I checked the update site json content. The "scm-api" plugin's url is bq. There will be two 302 redirects, the final url is bq. The entire network flow of a plugin: {quote} 302 302 {quote} After searching, I found the JDK issue record mentioned at the beginning. I'm not sure whether it is the reason. Maybe, Jenkins update site should enforce https. I want to change update-center.json with all the url directly pointed to the mirror site, and deployed to an internal server, but jenkins refused to accept it since the checksum digest is changed. So there is no work around for me.

    Jenkins JIRA | 8 months ago | Xifeng Zou Downloaded file /var/lib/jenkins/plugins/scm-api.jpi.tmp does not match expected SHA-1, expected 'GSoCVeUDmMHHd4hvIx6GHlvzA1g=', actual 'NUD1ONAUpGfIc3Hk0DiYO5HhS48='
  2. 0

    [JIRA] (JENKINS-38341) Can't get plugins list and can't install plugins from update center

    Google Groups | 8 months ago | (JIRA) Downloaded file /var/lib/jenkins/plugins/scm-api.jpi.tmp does not match expected SHA-1, expected 'GSoCVeUDmMHHd4hvIx6GHlvzA1g=', actual 'NUD1ONAUpGfIc3Hk0DiYO5HhS48='
  3. 0

    Can't download plugins - HTTP 302 redirect

    Google Groups | 8 months ago | Corey Wei Downloaded file /home/deploy/.jenkins2/plugins/git-server.jpi.tmp does not match expected SHA-1, expected 'LoG8X55ycVzgPjwTtCA/iKb7lvw=', actual 'Lbk3pB/mu/UlYJO4o2ttQkZ+mvs='
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Tomcat Configuration for Jenkins Plugin - 403 error

    Stack Overflow | 3 years ago | pcb Failed to download from

  1. davidvanlaatum 14 times, last 9 months ago
24 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis


    Downloaded file /var/lib/jenkins/plugins/scm-api.jpi.tmp does not match expected SHA-1, expected 'GSoCVeUDmMHHd4hvIx6GHlvzA1g=', actual 'NUD1ONAUpGfIc3Hk0DiYO5HhS48='

    at hudson.model.UpdateCenter.verifyChecksums()
  2. Hudson
    1. hudson.model.UpdateCenter.verifyChecksums(
    2. hudson.model.UpdateCenter.access$1100(
    3. hudson.model.UpdateCenter$InstallationJob.replace(
    4. hudson.model.UpdateCenter$UpdateCenterConfiguration.install(
    5. hudson.model.UpdateCenter$DownloadJob._run(
    6. hudson.model.UpdateCenter$InstallationJob._run(
    7. hudson.model.UpdateCenter$
    7 frames
  3. Java RT
    1. java.util.concurrent.Executors$
    2 frames
  4. Hudson :: Remoting Layer
    1. hudson.remoting.AtmostOneThreadExecutor$
    1 frame
  5. Java RT
    1 frame