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

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

book

Article ID: 297653

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Symptoms:

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

 

Environment


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.