Pivotal Knowledge Base

Follow

Permissions error when running BOSH commands on the Director

Environment

Pivotal Cloud Foundry 1.12

Symptom

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

Cause

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

Workaround

Run BOSH commands using the bosh2 version of the CLI. Both versions of the CLI are installed on the Ops Manager 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.

Comments

Powered by Zendesk