Could not find file "" - Sonarr not importing some files

Sonarr version (exact version): 2.0.0.4146
Mono version (if Sonarr is not running on Windows): 4.2.3
OS: Ubuntu
((Debug logs)) (posted to hastebin or similar): http://hastebin.com/cobivotoji.tex
Description of issue:

Hi All

When attempting to import episodes with long titles Sonarr seems to fail with the errors above. When doing content with small episode names it is fine.

The curious thing is when i manually move the files from the Sonarr box to the NAS and then ask sonarr to rename the files it works fine.

Is there any known reason for this? Is there something i can do? :frowning:

Cheers!

I see that both series are daily type series, is there anything different about where the files are stored on the NAS from series that do import? Some file of the file names don’t look very long (~150 characters) which shouldn’t cause an issue.

((Debug logs)) will also provide more information about the error, just the error isn’t enough here.

Hi Markus

Thanks for your response. I have put the logs here http://hastebin.com/asiqigisec.tex

I notice that there is long file names forming here and I wonder if that is the problem? Although like I said if I put the files into the folder manually sonarr can rename them.

As for the show, yes, it is Daily and work 9/10 times.

Interestingly when i run the command

mv "/mnt/tv-category/Stephen.Colbert.2016.03.03.Christopher.Meloni.720p.HDTV.X264-UAV/Stephen.Colbert.2016.03.03.Christopher.Meloni.720p.HDTV.X264-UAV.mkv" "/mnt/tv/Late Show with Stephen Colbert/Season 01/The Late Show with Stephen Colbert - 2016-03-03 - Christopher Meloni, Mary Elizabeth Winstead, Edward Byers, Ray LaMontagne HDTV-720p.mkv"

The file moves without incident.

What filesystem is /mnt/tv-category/ on?
/mnt/tv/ is on a NAS you mentioned, how is it mounted, CIFS?

EXT4, it is just a local folder within /mnt/

[quote=“markus101, post:5, topic:10774”]
/mnt/tv/
[/quote]/mnt/tv/

Mounted using CIFS. Yes.

Could you grab ((trace logs)) from the import process and post them (so we have all the information we can)? I’m not sure whats going on here, hoping @Taloth has an idea.

And a copy of cat /proc/mounts, please.

Atm, no idea.

//192.168.0.40/tv /mnt/tv cifs rw,relatime,vers=1.0,cache=strict,username=media,domain=NAS,uid=1000,forceuid,gid=1000,forcegid,addr=192.168.0.40,unix,posixpaths,serverino,acl,rsize=1048576,wsize=1048576,actimeo=1 0 0

Of course. Here you go. http://hastebin.com/gavasumeka.tex

Thanks for taking the time to look into this

Can you do the following, it mimics the actual actions Sonarr takes in this scenario:

ln "/mnt/tv-category/Stephen.Colbert.2015.11.09.Ethan.Hawke.720p.HDTV.x264-CROOKS/stephen.colbert.2015.11.09.ethan.hawke.720p.hdtv.x264-crooks.mkv" "/mnt/tv-category/Stephen.Colbert.2015.11.09.Ethan.Hawke.720p.HDTV.x264-CROOKS/stephen.colbert.2015.11.09.ethan.hawke.720p.hdtv.x264-crooks.mkv.backup~"
mv "/mnt/tv-category/Stephen.Colbert.2015.11.09.Ethan.Hawke.720p.HDTV.x264-CROOKS/stephen.colbert.2015.11.09.ethan.hawke.720p.hdtv.x264-crooks.mkv.backup~" "/mnt/tv/Late Show with Stephen Colbert/Season 01/The Late Show with Stephen Colbert - 2015-11-09 - Ethan Hawke, Claire McCaskill, Amy Klobuchar, Nathaniel Rateliff & The Night Sweats HDTV-720p.mkv.partial~"
mv "/mnt/tv/Late Show with Stephen Colbert/Season 01/The Late Show with Stephen Colbert - 2015-11-09 - Ethan Hawke, Claire McCaskill, Amy Klobuchar, Nathaniel Rateliff & The Night Sweats HDTV-720p.mkv.partial~" "/mnt/tv/Late Show with Stephen Colbert/Season 01/The Late Show with Stephen Colbert - 2015-11-09 - Ethan Hawke, Claire McCaskill, Amy Klobuchar, Nathaniel Rateliff & The Night Sweats HDTV-720p.mkv"

(please note the .backup~ and .partial~ suffixes in there)

Alternatively you can just try to create the .partial~ file. Coz that’s the likely culprit. The filename that ends up on windows is possibly too long.
Sadly the error mono gives is basically a ‘yelp’ without much useful info.

If that doesn’t give a definitive cause: What are the existing files in those two directories? have you checked if the capitalization of the paths are correct?

When running line two i am presented with

root@ubuntu1:/mnt/tv-category/Stephen.Colbert.2015.11.09.Ethan.Hawke.720p.HDTV.x264-CROOKS# mv "/mnt/tv-category/Stephen.Colbert.2015.11.09.Ethan.Hawke.720p.HDTV.x264-CROOKS/stephen.colbert.2015.11.09.ethan.hawke.720p.hdtv.x264-crooks.mkv.backup~" "/mnt/tv/Late Show with Stephen Colbert/Season 01/The Late Show with Stephen Colbert - 2015-11-09 - Ethan Hawke, Claire McCaskill, Amy Klobuchar, Nathaniel Rateliff & The Night Sweats HDTV-720p.mkv.partial~" mv: cannot create regular file ‘/mnt/tv/Late Show with Stephen Colbert/Season 01/The Late Show with Stephen Colbert - 2015-11-09 - Ethan Hawke, Claire McCaskill, Amy Klobuchar, Nathaniel Rateliff & The Night Sweats HDTV-720p.mkv.partial~’: No such file or directory

Am i Right to assume this is a file length problem?

I can also confirm that the file does not already exist in that directory and that most episodes go in without drama.

If mv also fails then yes, very likely the file length.
What you could do is reduce the length of the series folder. Rename the folder in the filesystem and then change it in the series settings.

Thanks for the confirming what i thought.
I have changed the Programmes folder name to Late show and updated it in Sonarr as suggested,
Can you clarify what you mean by redcice the length of the series folder? Did you mean for me just to change the name as i did?

Exactly that. :slight_smile: that way it has a dozen extra characters to play with.

Alright - thanks all for your help. Lets hope i get less errors.

Thank again!

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