Stemcell upload fails with "Permission denied" error in Ops Manager
search cancel

Stemcell upload fails with "Permission denied" error in Ops Manager

book

Article ID: 293836

calendar_today

Updated On:

Products

Operations Manager

Issue/Introduction

When attempting to upload a stemcell that is already present on the foundation, it fails with the following error message:
{"errors":{"base":["Permission denied @ rb_sysopen - /var/tempest/stemcells/light-bosh-stemcell-621.85-aws-xen-hvm-ubuntu-xenial-go_agent.tgz"]}} 

This issue is present in Ops Manager 2.7.25, 2.9.12/2.9.13, and 2.10.3. This error usually occurs when attempting to upload the same stemcell multiple times as part of a pipeline.

Environment

Product Version: 2.10

Resolution

This issue is caused by an upgrade to the Ops Manager nginx. This results in the Stemcell files only having read permissions, as seen below:
-r-------- 1 tempest-web tempest-web 536833880 Nov 26 07:51 bosh-stemcell-621.92-azure-hyperv-ubuntu-xenial-go_agent.tgz

To resolve this, perform the following steps from the Ops Manager VM:
 
  1. cd /var/tempest/stemcells
  2. sudo chmod 644 *.*
This gives all Stemcells on the foundation the correct permissions. This issue will be fixed in the future releases of Ops Manager for the affected versions.