Conflict with long file names on eCryptFS: file name length restriction of 143 characters

Get help with all aspects of 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.
Post Reply
Renewed2829
Newbie
Newbie
Posts: 2
Joined: December 24th, 2025, 10:18 am

Conflict with long file names on eCryptFS: file name length restriction of 143 characters

Post by Renewed2829 »

Hello everyone,

I use SABnzbd on a data pool encrypted by eCryptFS. eCryptFS has a file name length restriction of 143 characters. Important: This does not apply to the entire path, but only to the length restrictions for file and folder names themselves.

The problem occurs when I download files that have slightly longer names:

Image

To be honest, I don't know why the file name is so long, but I assume that I have no control over it.
Has anyone ever solved this problem, or is there a way to download the file with a different name?

Thanks in advance for your help.
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Conflict with long file names on eCryptFS: file name length restriction of 143 characters

Post by sander »

Maybe it works if you change this value:

sabnzbd/constants.py:33:DEF_FILE_MAX = 255 - 10 # max filename length on modern filesystems, minus some room for extra chars later on

But ... file name (lengths) inside the .NZB versus inside rar files ... so expect 'things'
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Conflict with long file names on eCryptFS: file name length restriction of 143 characters

Post by safihre »

You already reduced max_foldername_length in Config Specials?

But yes, sander is right that this only applies to things Sab creates. Not unrar or par2... Those don't have a switch to limit that.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: Conflict with long file names on eCryptFS: file name length restriction of 143 characters

Post by sander »

PS:

"Disk error on creating file /data/Incomplete/" ... a solution could be:

- Incomplete on plain filesystem.
- a post-processing script to shortends filenames, and then copies it to your eCryptFS
Renewed2829
Newbie
Newbie
Posts: 2
Joined: December 24th, 2025, 10:18 am

Re: Conflict with long file names on eCryptFS: file name length restriction of 143 characters

Post by Renewed2829 »

I think the tip about reducing the DEF_FILE_MAX value helped.

Thank you very much.
User avatar
safihre
Administrator
Administrator
Posts: 5678
Joined: April 30th, 2015, 7:35 am
Contact:

Re: Conflict with long file names on eCryptFS: file name length restriction of 143 characters

Post by safihre »

But again, it won't help for files inside rars.. Unrar and par2cmdline will still fail.
If you like our support, check our special newsserver deal or donate at: https://sabnzbd.org/donate
Post Reply