sassoftware / viya4-deployment

This project contains Ansible code that creates a baseline in an existing Kubernetes environment for use with the SAS Viya Platform, generates the manifest for an order, and then can also deploy that order into the Kubernetes environment specified.
Apache License 2.0
71 stars 64 forks source link

There was an issue creating /data/dev-sas-aks as requested: [Errno 13] Permission denied: b''/data/dev-sas-aks #344

Closed tclehman closed 1 year ago

tclehman commented 1 year ago

I'm getting a permission denied error on deployment. I get the same error when I run the uninstall as well.

Error message:

image

Deployment script:

sudo docker run --rm \ --group-add root \ --user $(id -u):$(id -g) \ --volume /deployments:/data \ --volume /home/jumpuser/viya4-deployment/ansible-vars.yaml:/config/config \ --volume /home/jumpuser/devsasviya/terraform.tfstate:/config/tfstate \ --volume $HOME/.ssh/kp-dev-sas.pem:/config/jump_svr_private_key \ viya4-deployment --tags "baseline,viya,install"

I'm not sure how to troubleshoot this. It can't create the folder but I have no access to the host its trying to create on. How do I fix this?

thpang commented 1 year ago

In your /deployments directory is there a dev-sas-ask directory? Seems like it's trying to create a file when the directory is present. This can happen when you run docker with the volume command and it has nothing the volume actually has to mount so it creates the directory.

tclehman commented 1 year ago

@thpang There is not, the directory is empty:

image

tclehman commented 1 year ago

The issue was that - for some unknown reason - the /deployments directory was not created with enough permissions. It was created with 755 permissions. When changing it to 777 permissions, the deployment proceeded past that task.