Cant figure write permissions out

Sonarr version (exact version): 4.0.6.1805
OS: Ubuntu Docker compose
Debug logs: System.UnauthorizedAccessException: Access to the path
Description of issue:
I use Sabnzbd to download with and UnauthorizedAccessException when I add a new TV show and it tries to move from the download folder to the destination, the error comes at the destination

In SABNZBD I have set this in options

Permissions for completed downloads: 777

And in my compose file I have:

sabnzbd:
    image: lscr.io/linuxserver/sabnzbd:latest
    container_name: sabnzbd
    environment:
      - PUID=1000
      - PGID=1000
sonarr:
    container_name: sonarr
    restart: unless-stopped
    ports:
      - 8989:8989
    volumes:
         xxx
    environment:
      - PUID=501
      - PGID=1000
      - TZ=Europe/Athens
      - UMASK_SET=022

Is the UMASK_SET=022 wrong? or is the 777 in Sabnzbd wrong, I cant figure out how they work together nomatter what I try to read :s

https://trash-guides.info/Hardlinks/How-to-setup-for/Docker/