Permissions Error when Running BOSH Commands on the Director
search cancel

Permissions Error when Running BOSH Commands on the Director

book

Article ID: 297541

calendar_today

Updated On:

Products

VMware Tanzu Application Service for VMs

Issue/Introduction

Symptoms:

Running BOSH commands on the BOSH Director results in the following permissions error:

$ bosh deploy /var/tempest/workspaces/default/deployments/cf-012a3b45cdea67b8c901.yml
Cannot load YAML file at '/var/tempest/workspaces/default/deployments/cf-012a3b45cdea67b8c901.yml':
Permission denied @ rb_sysopen - /var/tempest/workspaces/default/deployments/cf-012a3b45cdea67b8c901.yml

 

 

Environment


Cause

Due to improved security on the Operations Manager VM, you cannot access the deployment manifest using the BOSH CLI. BOSH commands that reference the manifest generate the error above.

 

Resolution

Run BOSH commands using the bosh2 version of the CLI. Both versions of the CLI are installed on the Operations Manager virtual machine (VM).

For example, instead of running bosh vms, use the following command:

$ bosh2 -d DEPLOYMENT-NAME vms

See Advanced Troubleshooting with the BOSH CLI for more information about running BOSH commands on the Ops Manager VM.

If you need to access the deployment manifest itself, authenticate to the Ops Manager API to download the manifest file. See Using the Ops Manager API for more information.