Renaming error - No files found are eligible for import

Sonarr version (exact version): Version2.0.0.3154
Mono version (if Sonarr is not running on Windows):
OS: Raspberry PI Xbian
((Debug logs)) (posted to hastebin or similar): Import failed, path does not exist or is not accessible by Sonarr: /media/usb0/TV/xxx.S02E03.720p.WEB-DL.DD5.1.H264-RARBGz
Description of issue:

Hi,

Sonarr is failing to import any files it send to Nzbget to download. Sonarr passes the download to Nzbget and it downloads succesfully, then the file is renamed. I think the renaming is the problem. In my queue in Sonarr I have all of my shows that say “downloaded” but “No files found are eligible for import” if I click manual import on the right, it says no video files were found in the selected folder.

The error log says Import failed, path does not exist or is not accessible by Sonarr: /media/usb0/TV/xxx.S02E03.720p.WEB-DL.DD5.1.H264-RARBGz.

Now if i navigate to the directory, it is correct, there is no file with that name there because it has been renamed to S02E03.mkv.

I assume I have set something up incorrectly in media management? But I’m not sure what?

Thanks for your help!

I don’t think the renaming is the issue, as sonarr does both renaming and moving the file, it seems normal that it would not go wrong with that one.

You say nzbget downloads your stuff, are you certain sonarr has access to the download location? Are the permissions correct so that Sonarr write in those maps? It sounds to me like nzbget doesn’t chmod the files the right way or the owner is not sonarr user

Thanks @Toxic_Waste. That makes sense, how best would I be able to check if sonarr has access? does it have its own user or something?

well honestly I don’t know your operating system that well, but I take it it’s linux based? Sonarr has his own user named nzbdrone on the system, and he needs to be able to do certain actions on those files, so check the filemask those files have, either the nzbdrone user must be in the group that owns the folder, or you have to mod the files that everyone can access them (less secure, with chmod 777)

Yeah it’s linux based, I’ve checked etc/passwd and can’t see a nzbdrone user? I’ve chmod’d my entire TV directory to 777 and tried again, but sadly no luck. I’ve also changed the set permissions in media management to 0777 for files and folders, but still no luck. Thanks for your help so far @Toxic_Waste!

Just checked the logs again and they say: “downloadedEpisodesImportServiceImport failed, path does not exist or is not accessible by Sonarr”

I’ve also checked and both Sonarr and Nzbget are running as the same user (Xbian).

We need to see the full ((debug log)) file.

Sorry @markus101, I’ve uploaded to pastebin here: http://pastebin.com/XBsYM3ff

Hope that helps! Thanks in advance.

Which file system is used for that drive?
What do you get if you ls -l /media/usb0/TV/?

It’s formatted to NTFS, here is the cmd output:

xbian@xbian /media/usb0/TV $ ls -l /media/usb0/TV/
total 32
drwxrwxrwx 1 xbian xbian 4096 Mar 26 19:33 2 Broke Girls
drwxrwxrwx 1 xbian xbian 0 May 3 01:55 American Dad
drwxrwxrwx 1 xbian xbian 4096 May 2 11:10 Banshee
drwxrwxrwx 1 xbian xbian 0 Jan 17 11:01 Cougar Town
drwxrwxrwx 1 xbian xbian 0 May 2 05:49 Fear the Walking Dead
drwxrwxrwx 1 xbian xbian 4096 Mar 23 13:41 Geordie Shore
drwxrwxrwx 1 xbian xbian 0 Feb 14 2015 Glee
drwxrwxrwx 1 xbian xbian 4096 Mar 27 18:29 How to Get Away with Murder
drwxrwxrwx 1 xbian xbian 0 May 2 15:47 Huangs World
drwxrwxrwx 1 xbian xbian 0 May 2 12:05 Jane the Virgin
drwxrwxrwx 1 xbian xbian 0 May 2 12:05 Jane.the.Virgin.S02E09.HDTV.x264-FLEET
drwxrwxrwx 1 xbian xbian 0 May 2 16:21 Mike and Molly
drwxrwxrwx 1 xbian xbian 0 Apr 30 21:42 New Girl
drwxrwxrwx 1 xbian xbian 4096 May 2 19:06 Silicon Valley
drwxrwxrwx 1 xbian xbian 0 Mar 27 18:29 South Park
drwxrwxrwx 1 xbian xbian 4096 May 3 01:55 Temp
drwxrwxrwx 1 xbian xbian 0 May 2 10:35 The 100
drwxrwxrwx 1 xbian xbian 0 Feb 4 22:13 The Man in the High Castle
drwxrwxrwx 1 xbian xbian 0 May 2 11:21 The Simpsons
drwxrwxrwx 1 xbian xbian 0 May 1 08:16 The Ultimate Fighter
drwxrwxrwx 1 xbian xbian 0 Apr 4 21:08 The Walking Dead
drwxrwxrwx 1 xbian xbian 4096 Aug 10 2015 True Detective
drwxrwxrwx 1 xbian xbian 4096 Apr 22 10:48 Vikings

Does/did /media/usb0/TV/xxx.S02E03.720p.WEB-DL.DD5.1.H264-RARBGz exist when that error was logged? If not because it was previously imported its because Sonarr doesn’t know that it was already imported, either imported before using Sonarr or by something else.

I’d also advise against having sorted and unsorted files in the same folder, instead unsorted files should go in a completely separate folder /media/usb0/Unsorted TV (or something like that).

Thank you @markus101. I’ve been checking my setup and realised I had a post processing script in nzbget that was doing my sorting and renaming. So like you said sonarr didn’t know what to do once they were renamed (outside of sonarr). I’ve turned this off and sonarr is able to rename and import the files. Hurray! Can I ask though, once a file has been successfully downloaded and imported I was expecting the ‘monitored’ status of the episode to be toggeled off, should that not be the case?

No, Quality Profiles control whether something else would be downloaded, unmonitoring would mean files would never be upgraded or propers grabbed.

Oh right. Thank you for clarifying and all your help!

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