"Unable to copy stemcell root image" error while uploading stemcell on Amazon Web Services in Ops Managers
search cancel

"Unable to copy stemcell root image" error while uploading stemcell on Amazon Web Services in Ops Managers

book

Article ID: 293713

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

When attempting to Apply Changes, it fails while Installing BOSH with the following error:
 CPI 'create_stemcell' method responded with error: CmdError{"type":"Bosh::Clouds::CloudError","message":"Unable to copy stemcell root image: command 'sudo -n /home/tempest-web/.bosh/installations
....
failed with exit code 1\nScript output:\nsudo: a password is required\n","ok_to_retry":false}


Environment

Product Version: 2.8

Resolution

For Amazon Web Services (AWS), there are two types of stemcells available for download:
  • "Light stemcell". This is the file on Tanzu Network "Ubuntu Xenial Stemcell for AWS <version>.
  • "Heavy stemcell". This is identical to the above, but is marked in parentheses as "Heavy".
The above error is caused by using the "Heavy" version of the stemcell. To download the "Light stemcell" follow these steps:

1. SSH into the Ops Manager VM.
 
2. Run this command: 

cd /var/tempest/stemcells

3. Verify in this directory that their is a file similar to bosh-stemcell-621.59-aws-xen-hvm-ubuntu-xenial-go_agent.tgz. Delete this file with this command:

sudo rm <stemcell_name>

5. Download the Ubuntu Xenial Stemcell for AWS 621.61 located at https://network.pivotal.io/products/stemcells-ubuntu-xenial/.

6. Upload this file through Ops Manager > Stemcell Library > Import Stemcell.

7. Click Apply Changes for the changes to take effect.