Sonarr is lying: Folder is not writable by user root

Sonarr version (exact version): 3.0.9.1549
Mono version (if Sonarr is not running on Windows): 6.12.0.182
OS: Linux (Docker) → 3.0.9.1549-ls174 by linuxserver.io
Debug logs:
[Warn] SonarrErrorPipeline: Invalid request Validation failed:
– Path: Folder is not writable by user root
[Info] RssSyncService: Starting RSS Sync
[Warn] FetchAndParseRssService: No available indexers. check your configuration.
[Info] DownloadDecisionMaker: No results found
[Info] RssSyncService: RSS Sync Completed. Reports found: 0, Reports grabbed: 0
w32error-unix.c: unknown error (116) “Stale file handle”
[Warn] SonarrErrorPipeline: Invalid request Validation failed:
– Path: Folder is not writable by user root
w32error-unix.c: unknown error (116) “Stale file handle”
[Fatal] SonarrErrorPipeline: Request Failed. POST /api/v3/rootFolder
[v3.0.9.1549] System.UnauthorizedAccessException: Root folder path ‘/tv/8T1/Shows/’ is not writable by user ‘root’
at NzbDrone.Core.RootFolders.RootFolderService.Add (NzbDrone.Core.RootFolders.RootFolder rootFolder) [0x000e9] in M:\BuildAgent\work\63739567f01dbcc2\src\NzbDrone.Core\RootFolders\RootFolderService.cs:117
at Sonarr.Api.V3.RootFolders.RootFolderModule.CreateRootFolder (Sonarr.Api.V3.RootFolders.RootFolderResource rootFolderResource) [0x00007] in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Api.V3\RootFolders\RootFolderModule.cs:56
at Sonarr.Http.REST.RestModule1[TResource].<set_CreateResource>b__42_0 (System.Object options) [0x00000] in M:\BuildAgent\work\63739567f01dbcc2\src\Sonarr.Http\REST\RestModule.cs:168 at Nancy.NancyModule+<>c__DisplayClass38_01[T].b__0 (System.Object args) [0x00047] in :0
at Nancy.NancyModule+<>c__DisplayClass40_01[T].<Post>b__0 (System.Object args, System.Threading.CancellationToken ct) [0x00047] in <e31b230dbd29407fadcc55713e0bbd0f>:0 at Nancy.Routing.Route1[T].Invoke (Nancy.DynamicDictionary parameters, System.Threading.CancellationToken cancellationToken) [0x00017] in :0
at Nancy.Routing.DefaultRouteInvoker.Invoke (Nancy.Routing.Route route, System.Threading.CancellationToken cancellationToken, Nancy.DynamicDictionary parameters, Nancy.NancyContext context) [0x00086] in :0
at Nancy.Routing.DefaultRequestDispatcher.Dispatch (Nancy.NancyContext context, System.Threading.CancellationToken cancellationToken) [0x002b7] in :0
at Nancy.NancyEngine.InvokeRequestLifeCycle (Nancy.NancyContext context, System.Threading.CancellationToken cancellationToken, Nancy.Bootstrapper.IPipelines pipelines) [0x0011d] in :0

Description of issue: Brand new installation, as I try to add folders under “Media management” they never show up and I just find these weird errors in the log.
Weird because the container is running as root, and it has write privileges and if I go and check in the file system there’s “sonarr_write_test.txt” happily looking at me as proof it has write privileges :thinking:

the filesystem where it’s trying to write is an exFAT mounted via samba, and that share works fine:

share definition:

[store]
    path = /mnt/store/
    read only = no
    writeable = yes
    browseable = yes
    valid users = dockerfs
    admin users = dockerfs
    create mask = 0640
    directory mask = 0750

docker-compose.yaml:

version: '3.8'

services:
  sonarr:
    image: lscr.io/linuxserver/sonarr:latest
    environment:
      - PUID=0
      - PGID=0
      - TZ=Europe/Rome
    volumes:
      - sonarr:/config
      - store:/tv #optional
      - torrent:/downloads #optional
    ports:
      - 8989:8989
    networks:
      - swarm_net
    dns:
      - 10.6.9.2
    deploy:
      mode: replicated
      replicas: 1
      placement:
        constraints: 
          - node.role == worker

volumes:
  sonarr:
    driver_opts:
      type: "nfs"
      o: "addr=10.6.9.2,nolock,soft,rw,nfsvers=4"
      device: "://mnt/data/arr/Sonarr"

  torrent:
    driver_opts:
      type: cifs
      o: "username=dockerfs,password=*********"
      device: "//10.6.9.2/torrent"

  store:
    driver_opts:
      type: cifs
      o: "username=dockerfs,password=*********"
      device: "//10.6.9.2/store"

but mainly my point is: it complains about not been able to write when it is able to write :thinking:, why?

Testing whether Sonarr could write to the folder failed, this could be the write itself or being unable to remove the file, but it failed.

In this case it’s probably not permissions, but could be something with how the drive is mounted.

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.