Issue
You will get permission denied error while installing a package or creating an environment. New projects may also fail to create a default environment.
Cause
You might have created a project using AEN_SRVC_ACCT
, aen_admin
or wakari
.
In general when you create a project, AEN sets the ACLs on the package cache. Since the service account has write access to /opt/wakari/anaconda/pkgs
, setting the ACLs may revoke access for all other users to this package cache.
Solution
The service account should only be used for administrative tasks, and should not be used for operating AEN the way an ordinary user would. If the service account creates or starts projects, the permissions on the AEN package cache will be reset to match the service account, which will interfere with the normal operation of AEN for all other users.
Run the following command on /opt/wakari/anconda
to fix the permission issues:
chmod -R o+rX
Now, you can create a new environment or new project without issues.
Please see this article if you want to rebuild a default environment in any existing broken projects.