Can’t create new playlist for show without playlists
When I try to create a playlist for a show that doesn’t have any playlists yet, tank responds with a 500 internal server error.
I suspect this is a container permission problem with the user tank is running as in our staging docker environment. I was also able to reproduce this locally with my current docker-compose setup.
Repro on dashboard.aura.radio:
- Login to dashboard.aura.radio.
- Select Media in the nav bar.
- Select Playlists
- Confirm that the playlists for this show have been created (There are no playlists for this show yet).
- Select Create playlist
- Add an entry to the playlist (I’ve selected Line-in → Studio 1)
- Click Save
The dashboard shows an error message about a 500 internal server error.
The request to tank (POST /tank/api/v1/shows/a1/playlists
) contains the following payload:
{"description":"","entries":[{"uri":"line://0"}]}
The response from tank contains the following payload:
{"error":"unable to create directory for show 'a1': mkdir /srv/audio/a1: permission denied"}