Pivotal Knowledge Base


Uploading Stemcells Throws Error- "Zlib::DataError: invalid stored block lengths"


Pivotal Elastic Runtime 1.10.x and 1.11.x


When installing/upgrading Pivotal Cloud Foundry (PCF) tiles, you are often asked to upload required Stemcells. You upload the necessary Stemcell, and you proceed with the install/upgrade. The installation logs throw:

Verifying stemcell...
File exists and readable                                     OK
Verifying tarball...
Read tarball                                                 OK
bundler: failed to load command: bosh (/home/tempest-web/tempest/web/vendor/bosh/vendor/bundle/ruby/2.3.0/bin/bosh)
Zlib::DataError: invalid stored block lengths


This error is thrown when there is a problem reading the Stemcell's tarball.


Here are the steps to resolve this error:

1. Verify if the Stemcell's tarball on Ops Manager VM might be corrupted by trying to unarchive the tar ball manually. This step is optional.

  • SSH into the Ops Manager VM
  • cd /var/tempest/stemcells
  • tar -zvxvf <tarball> will be unsuccessful

2. Reupload the Stemcell using the Ops Manager UI

Note: bosh upload stemcell <stemcell file> --fix command will not help resolve this issue. The command simply re-uploads the broken tar ball.



Powered by Zendesk