DISCOVERY SERVICE: Permission denied: '/edx/var/discovery/media'

Hi everyone :slight_smile:

Im getting a:

PermissionError: [Errno 13] Permission denied: ‘/edx/var/discovery/media’

Error when trying to create a Program in my discovery service, causing a 500 internal server error:

Can you help me please? Thanks a lot in advance :slight_smile:

The solution is create media folder and to give permissions like this:

mkdir /edx/var/discovery/media
chown -R discovery:www-data /edx/var/discovery/media
chmod -R 775 /edx/var/discovery/media

Related: Discovery Service: Cant Log in.

Is there a way this can be created through configuration repo?