Inconsistent file length: expected 634023 but only got 1833


I trying to download some plugins and version update for Jenkins I getting this error: Inconsistent file length: expected 634023 but only got 1833
at hudson.model.UpdateCenter$
Caused: Failed to download from (redirected to:
at hudson.model.UpdateCenter$
at hudson.model.UpdateCenter$DownloadJob._run(
at hudson.model.UpdateCenter$InstallationJob._run(
at hudson.model.UpdateCenter$
at java.base/java.util.concurrent.Executors$
at java.base/
at hudson.remoting.AtmostOneThreadExecutor$
at java.base/

try this, I have found that in stackoverflow

The error Inconsistent file length when downloading Jenkins plugins can be resolved by manually downloading the plugin file. Here are the steps to follow:

  1. Manually Download the Plugin File:
  • Go to the URL provided in the error message to download the plugin file. In your case, the URL is:
    Download credentials.hpi
  1. Save the File:
  • Save the downloaded file into the $JENKINS_HOME/plugins directory on your Jenkins server.
  1. Rename the Previous Plugin File (if necessary):
  • If there is an existing plugin file with the same name, you may need to rename it to avoid conflicts.
  1. Restart Jenkins:
  • After placing the new plugin file in the plugins directory, restart Jenkins to apply the changes.

For more detailed information, you can refer to the Stack Overflow discussion on this issue:
FaviconJenkins Plugin failure error