Couldn't Import File - File doesn't exist - FreeNAS with Sonarr

Hello all. I am using FreeNAS that is hosting my files another machine. Recently I noticed that I am getting an error when I am trying to import files and then rename them. Here are the details.

Message:

Couldn’t import file. /var/db/sabnzbd/Downloads/complete/tv/Modern.Family.S04E01.HDTV.x264-2HD: File doesn’t exist: /var/db/sabnzbd/Downloads/complete/tv/Modern.Family.S04E01.HDTV.x264-2HD

Exception:

System.IO.FileNotFoundException: File doesn’t exist: /var/db/sabnzbd/Downloads/complete/tv/Modern.Family.S04E01.HDTV.x264-2HD
at NzbDrone.Common.Disk.DiskProviderBase.GetFileSize (System.String path) [0x00000] in :0
at NzbDrone.Core.MediaFiles.EpisodeImport.ImportDecisionMaker+d__0.MoveNext () [0x00000] in :0

I double checked the file paths on SABnzbd and the on Sonarr and here are the destinations and source from the FreeNAS GUI:

SABnzbd Source: /mnt/volume1/media/Downloads
SABnzbd Destination: /var/db/sabnzbd/Downloads

Sonarr Source: /mnt/volume1/jails/sabnzbd_1/var/db/sabnzbd/Downloads/complete
Sonarr Destination: /media/Downloads/complete

And here is the configuration settings from the SABnzbd interface:

Default Base Folder: /var/db/sabnzbd

Temporary Download folder: Downloads/incomplete
Completed Download folder: Downloads/complete

File permissions for completed downloads: 777

Finally, here are the Drone Factory options in Sonarr:

Drone Factory: /media/Downloads/complete/
Drone Factory Interval: 1

Any help would be greatly appreciated.

Thanks!

Don’t use Drone Factory.

If the path that SAB reports is different than the path that Sonarr will use to import files from, setup a Remote Path Mapping.

Your path descriptions are pretty confusing, especially since you’ve pointed Sonarr’s Drone Factory at the destination path for Sonarr, which I assume would be for completed shows, that were set when the series was added.

Okay here is what I did because it was confusing to me, too. But for a while it worked. So I made some changes.

SABnzbd and Sonarr are both on the FreeNAS box and should be pointing to the same destination path - so I didn’t enter anything in Remote Path Mapping.

I deleted the file path from Drone Factory and the Drone Factory Interval is 0.

I also changed the Destination path for Sonarr in the FreeNAS UI to just /media.

/media is the “root” folder which inside has the Downloads folder and inside that has “complete/tv”.

The SABnzbd Source is still: /mnt/volume1/media and the Destination is: /media

So now, I am getting the following error:

Import failed, path does not exist or is not accessible by Sonarr: /var/db/sabnzbd/Downloads/complete/tv/Modern.Family.S04E01.HDTV.x264-2HD

You need to make the SAB Destination path and the Sonarr Source path the same thing, either through FreeNAS or through a Remote Path Mapping.

SAB will put files in its destination folder and Sonarr will pick them up from there.

Strange, I confirmed that both the SAB Destination path and the Sonarr Source path are the same thing through FreeNAS and yet, I am still getting this:

Modern.Family.S04E01.HDTV.x264-2HD
No files found are eligible for import in /var/db/sabnzbd/Downloads/complete/tv/Modern.Family.S04E01.HDTV.x264-2HD

As well as the error:

Import failed, path does not exist or is not accessible by Sonarr: /var/db/sabnzbd/Downloads/complete/tv/Modern.Family.S04E01.HDTV.x264-2HD

Looks like a permissions issue, does Sonarr have full access to that path?

I thought it did. I went to Settings and at the bottom set Permissions to Yes:

File chmod mask: 644
Folder chmod mask: 777

Should I add anything to chown User and chown Group sections? I installed this via a plugin so I don’t know if or what user and group I should use.

That doesn’t give Sonarr permissions to the files, it only sets permissions when it imports files, the OS handles the existing permissions…

Thank you so much! After so much trial and error, I finally got it to work!

By the way, I didn’t bother messing with the permissions.

I used the Remote Path Mapping option and after figuring out exactly what I needed to enter in each section, it imported the episodes correctly.

Here’s what I did:

Host: [IP of SABnzbd] - e.x. 192.168.0.3
Remote Path: exact file location (copied from the Folders tab in the SABnzbd options) - e.x., Downloads/complete
Local Path: the file location I mounted to point to the Remote Path above - e.x., /media/Downloads/

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