Can't set permission for Morpheus codes/files

Hi Team,

We have 3 Node HA cluster along with NFS configured.
when we try to run any IAC code such terraform files we are getting a actioned denied. we suspect this as we might be lacking permission as the owner of the files are for morpheus-app and not for morpheus-local

WARN c.m.MorpheusUtils - error setting file owner on /var/opt/morpheus/morpheus-ui/workspace/terraform/**/terraform.tfstate to morpheus-app morpheus-local: {}
'java.nio.file.FileSystemException: /var/opt/morpheus/morpheus-ui/workspace/terraform/
/terraform.tfstate: Operation not permitted

The GID and uid or morpheus-app and morpheus-local should match on all nodes. Once they do, you can run a reconfigure from one of the nodes to confirm that the proper ownership is applied to all directories and try again.

1 Like