Pivotal Knowledge Base

Follow

Uploading Stemcells throw error: "Zlib::DataError: invalid stored block lengths"

Environment 

Pivotal Elastic Runtime: 1.10.x, 1.11.x 

Symptom

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

Cause

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

Resolution

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.

 

Comments

Powered by Zendesk