Sonarr not importing, Access to Path is Denied

Sonarr version (2.0.0.4146):
Mono version (3.2.8 (Debian 3.2.8+dfsg-4ubuntu1.1)):
Ubuntu Server 14.04 LTS:

Hello, I’m running Sonarr on my dedicated server & I mounted one of my hard drive’s & added the folder to Plex then tried to have Sonarr download a ep to the drive, when it finished it was just sitting in que saying manual import, when i clicked import it did nothing.

This is what it said in the logs when i looked,

“Couldn’t import episode /home/cheridon/Downloads/incomplete/sonarr/Graceland.S01E01.1080p.WEB-DL.DD5.1.H.264-NTb/Graceland.S01E01.Pilot.1080p.WEB-DL.DD5.1.H.264-NTb.mkv: Access to the path “/media/disk1/TV Shows/Season 01” is denied.”

“System.UnauthorizedAccessException: Access to the path “/media/disk1/TV Shows/Season 01” is denied.
at System.IO.Directory.CreateDirectoriesInternal (System.String path) [0x00000] in :0
at System.IO.Directory.CreateDirectory (System.String path) [0x00000] in :0
at NzbDrone.Common.Disk.DiskProviderBase.CreateFolder (System.String path) [0x00000] in :0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.CreateFolder (System.String directoryName) [0x00000] in :0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.EnsureEpisodeFolder (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Tv.Series series, Int32 seasonNumber, System.String filePath) [0x00000] in :0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.EnsureEpisodeFolder (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, System.String filePath) [0x00000] in :0
at NzbDrone.Core.MediaFiles.EpisodeFileMovingService.MoveEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode) [0x00000] in :0
at NzbDrone.Core.MediaFiles.UpgradeMediaFileService.UpgradeEpisodeFile (NzbDrone.Core.MediaFiles.EpisodeFile episodeFile, NzbDrone.Core.Parser.Model.LocalEpisode localEpisode, Boolean copyOnly) [0x00000] in :0
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportApprovedEpisodes.Import (System.Collections.Generic.List`1 decisions, Boolean newDownload, NzbDrone.Core.Download.DownloadClientItem downloadClientItem) [0x00000] in :0”

The main dir that everything goes to is “/home/user/Plex/TV Shows” I was trying to have the ep downloaded to “/media/disk1/TV Shows”.

Why the separation? If you want Sonarr to move the files so they are visible to Plex they would need to be in /home/user/Plex/TV Shows.

Based on the error Sonarr doesn’t have access to create the season folder in /media/disk1/TV Shows/ though the series is incorrectly assigned the path /media/disk1/TV Shows/ (it also needs to have the series title).

how do i give sonarr access to the folder? that folder is on a different disk.

The user running Sonarr needs access to the folder, which user its running on depends on how you set it up.

You also need mono 3.10 or later, 3.2.8 won’t work properly.

how do i find out which use is running sonarr??

Thats much more of a general linux question, which google should be able to help you find.

ps aux | grep mono should find it.

“cheridon@media:~$ ps aux | grep mono
cheridon 9838 0.0 0.0 11748 2060 pts/1 S+ 20:18 0:00 grep --color=auto mono
cheridon 29993 2.1 2.7 1577180 221516 ? Ssl 14:50 7:09 mono /opt/NzbDrone/NzbDrone.exe
cheridon@media:~$”

It looks like its running as the user you are logged in as, assuming you can access the files Sonarr should be able to as well. Are you able to create the folder Sonarr failed to create (/media/disk1/TV Shows/Season 01)? (You should still fix that folder because its pointing at the root folder, not a proper series folder).

“/media/disk1/TV” is to a different hard drive,

cheridon@media:/media/disk1/TV Shows$ mkdir test
mkdir: cannot create directory ‘test’: Permission denied
cheridon@media:/media/disk1/TV Shows$

What path is that? You’re just mentioning it for the first time.

Where do you want the files to go on disk? (Keep in mind each series needs to have its own folder, named after the series).

/media/disk1/TV Shows or /home/user/Plex/TV Shows?

That explains it, its permissions.

PS Edit your posts instead of multiple posts in a row.

“/home/user/Plex/TV Shows” is the main folder or main drive where all my movies & tv shows are downloaded to, but that drive started running out of space so i mounted a new drive & its mounted at /media/disk1/TV Shows. when i used to run sonarr on windows it had no problems importing to the other drive, yes im trying to get files to go to /media/disk1/TV Shows

i think i fixed the problem, i am not sure, i did “sudo chown -R cheridon /media/disk1/”

Okay, make sure that the series (edit series) is pointed at its own folder, the logs indicated thats not the cases.

That will do it, assuming you wanted your user to own them all.

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