Error: path too long! Is there a workaround?

Report & discuss bugs found in SABnzbd
Forum rules
Help us help you:
  • Are you using the latest stable version of SABnzbd? Downloads page.
  • Tell us what system you run SABnzbd on.
  • Adhere to the forum rules.
  • Do you experience problems during downloading?
    Check your connection in Status and Interface settings window.
    Use Test Server in Config > Servers.
    We will probably ask you to do a test using only basic settings.
  • Do you experience problems during repair or unpacking?
    Enable +Debug logging in the Status and Interface settings window and share the relevant parts of the log here using [ code ] sections.
Locked
User avatar
Widofnir
Newbie
Newbie
Posts: 21
Joined: February 3rd, 2012, 3:20 am

Error: path too long! Is there a workaround?

Post by Widofnir »

Hello sabnzbd-Team 8) ,

Bug(?) short-info:
sadly I discover regulary a "path too long"-error while using sabnzbd with movie-sorting enabled.

My system:
OS: Windows 7 Ultimate (x64), german
sabnzbd: 0.7.13

Bug(?) report:
I enabled Movie Sorting with this string:

Code: Select all

     Sort String: %title (%y)/%dn/%fn

       Test data: Ich.-.Einfach.unverbesserlich.2010.German.DL.DTS.1080p.BluRay.x264-iNCEPTiON
Processed Result: Ich - Einfach unverbesserlich (2010)\Ich.-.Einfach.unverbesserlich.2010.German.DL.DTS.1080p.BluRay.x264-iNCEPTiON\Original Filename.avi
My default download-path is not really long, sadly I discover very often the "path too long"-error, while "movie sorting" is active.

For example, my latest error-log look like this:

Code: Select all

ERROR:: path too long ( E:\Downloads\Movies\Ich - Einfach unverbesserlich (2010)\Ich.-.Einfach.unverbesserlich.2010.German.DL.DTS.1080p.BluRay.x264-iNCEPTiON\_UNPACK_Ich.-.Einfach.unverbesserlich.2010.German.DL.DTS.1080p.BluRay.x264-iNCEPTiON/Ich.-.Einfach.unverbesserlich.2010.German.DL.DTS.1080p.BluRay.x264-iNCEPTiON.mkv)
The curious thing is: the path (imho) gets only too long, because sabnzbd creates additionally a "_UNPACK_%TITLE%"-folder. Shouldn't it be better, when sabnzbd extracts the files in a temp-folder and after that it moves the files to the complete-folder? Or just use as folder-name "tmp" instead of "_UNPACK_%TITLE%"?
Many thanks for any help :).

Kind regards,
Widofnir

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error: path too long! Is there a workaround?

Post by shypike »

You can disable folder renaming in Config->Switches.
You can trim paths in Config->Special->folder_max_length
Set it to something like 50, so that no individual path element can be above 50.
The next major release will solve this issue for the most part.

User avatar
Widofnir
Newbie
Newbie
Posts: 21
Joined: February 3rd, 2012, 3:20 am

Re: Error: path too long! Is there a workaround?

Post by Widofnir »

shypike wrote:The next major release will solve this issue for the most part.
Ah ok, thanks! :)

Hurda
Newbie
Newbie
Posts: 37
Joined: November 7th, 2011, 4:30 am

Re: Error: path too long! Is there a workaround?

Post by Hurda »

I ran into this problem today.
I haven't seen the warning regarding the overlong path until after the NZB was already downloading, and I got the "Disk error on creating file"-error.
I know that I can work around this before adding or starting a NZB, but what is the way to fix this when I already started the NZB?

Is deleting and readding the nzb-file after changing folder_max_length the only solution?

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error: path too long! Is there a workaround?

Post by shypike »

Hurda wrote: Is deleting and readding the nzb-file after changing folder_max_length the only solution?
Sorry: yes, because SABnzbd hasn't been able to save the files.

darksupernova
Newbie
Newbie
Posts: 35
Joined: October 19th, 2012, 9:22 am

Re: Error: path too long! Is there a workaround?

Post by darksupernova »

shypike wrote:You can trim paths in Config->Special->folder_max_length
Set it to something like 50, so that no individual path element can be above 50.
Hi, I have followed your advice and changed it to 50 but I'm still getting the error on multiple downloads. The downloads go to 'E:\unsorted movies', so the base filename is quite short - is there anything else I can try?

Code: Select all

ERROR:: path too long ( E:\unsorted movies\The.Movie.2013\_UNPACK_The.Movie.2013.EXTENDED.1080p.BluRay.x264.cp(t\The.Movie.2013.EXTENDED.1080p.BluRay.x264.SPARKS\The.Movie.2013.EXTENDED.1080p.BluRay.x264.SPARKS/Subs\the.movie.2013.extended.1080p.bluray.x264-sparks.subs.r00)

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error: path too long! Is there a workaround?

Post by shypike »

Go below 50, like 32.
The limit is just for individual path elements.

darksupernova
Newbie
Newbie
Posts: 35
Joined: October 19th, 2012, 9:22 am

Re: Error: path too long! Is there a workaround?

Post by darksupernova »

Thanks for the quick reply! I'll give it a shot :)

oaz1
Newbie
Newbie
Posts: 2
Joined: February 23rd, 2014, 8:33 am

Re: Error: path too long! Is there a workaround?

Post by oaz1 »

Hi,

i have the same problem like you all. If i short the download name i have multiple problems in pre / after processing.
- The password will be cuted away (very important)
- The CP-Identifier will be cuted away (not that important)

A fix what will work for both is, if a download is finished it'll be stored in a temp folder and unrar will extract not in the temp folder, it will be extract to a new child folder which have also a very long name.

Hope we find a solution!

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error: path too long! Is there a workaround?

Post by shypike »

oaz1 wrote:Hi,
- The password will be cuted away (very important)
Solved in the next release.

oaz1
Newbie
Newbie
Posts: 2
Joined: February 23rd, 2014, 8:33 am

Re: Error: path too long! Is there a workaround?

Post by oaz1 »

shypike wrote:
oaz1 wrote:Hi,
- The password will be cuted away (very important)
Solved in the next release.
Release date yet?

ahillebrandt
Newbie
Newbie
Posts: 3
Joined: March 5th, 2014, 8:52 am

Re: Error: path too long! Is there a workaround?

Post by ahillebrandt »

Waiting for it every day :-)!
Tried 17RC1, but didn't help.
RC2 is not available for windows atm...
It's nearly unsuable this way :-/!

Pleeeeaaase release! :-)

User avatar
shypike
Administrator
Administrator
Posts: 21039
Joined: January 18th, 2008, 12:49 pm

Re: Error: path too long! Is there a workaround?

Post by shypike »

This weekend.

ahillebrandt
Newbie
Newbie
Posts: 3
Joined: March 5th, 2014, 8:52 am

Re: Error: path too long! Is there a workaround?

Post by ahillebrandt »

yeahhhh... herooo! :-D

User avatar
sander
Release Testers
Release Testers
Posts: 7048
Joined: January 22nd, 2008, 2:22 pm

Re: Error: path too long! Is there a workaround?

Post by sander »

I'm locking this old topic (2014); it keeps attracting spammers, and AFAIK it's not relevant anymore.

Locked