Closed AnonymousX86 closed 1 week ago
Describe the bug Bazarr can't save files if user is not owner of desired directory or directory is not protected (chmod o=rwx).
chmod o=rwx
To Reproduce
bazarr
radarr
/movies
radarr:radarr
o=rwx
0775
PUID
PGID
Expected behavior Bazarr should save subtitles, as it has sufficient permission to directory (g=rwx).
g=rwx
Screenshots Shell output and logs below.
Software
Additional context Example:
$ cd /movies $ ls -l | grep Dune drwxrwxr-x 2 radarr radarr 4096 Jun 1 01:29 Dune $ ls -l Dune total 2539684 -rwxrwxr-x 1 radarr radarr 2599600403 Jun 1 01:28 'Dune.mp4' -rwxrwxr-x 1 radarr radarr 175894 May 26 12:09 fanart.jpg -rwxrwxr-x 1 radarr radarr 8626 Jul 12 12:21 movie.nfo -rwxrwxr-x 1 radarr radarr 837275 May 26 12:09 poster.jpg $ groups bazarr bazarr : bazarr sonarr radarr
Docker logs:
15 23:34:16,679 - root (7fd7b968bb38) : ERROR (download:99) - BAZARR Error saving Subtitles file to disk for this file /movies/Dune/Dune.mp4: PermissionError(13, 'Permission denied')
Issue does not occur when applying o=rwx permissions. Subtitles are being saved with bazarr:bazarr ownership with 644 permissions.
bazarr:bazarr
644
$ ls -la drwxrwxrwx 1 sonarr sonarr 12288 Jul 15 21:55 . -rw-r--r-- 1 bazarr bazarr 22448 Jul 15 21:55 Dune.srt
I’m dealing with the same issue
Could you please enable debug log, reproduce the issue and provide the log file?
No news, good news!
Describe the bug Bazarr can't save files if user is not owner of desired directory or directory is not protected (
chmod o=rwx
).To Reproduce
bazarr
with group.radarr
with group.bazarr
to groupradarr
./movies
directory ownership toradarr:radarr
.o=rwx
, e.g.0775
.PUID
andPGID
ofbazarr
.Expected behavior Bazarr should save subtitles, as it has sufficient permission to directory (
g=rwx
).Screenshots Shell output and logs below.
Software
Additional context Example:
Docker logs:
Issue does not occur when applying
o=rwx
permissions. Subtitles are being saved withbazarr:bazarr
ownership with644
permissions.