Page 1 of 1

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

Posted: December 24th, 2025, 10:51 am
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.

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

Posted: December 24th, 2025, 11:04 am
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'

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

Posted: December 24th, 2025, 12:06 pm
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.

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

Posted: December 24th, 2025, 1:41 pm
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

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

Posted: December 25th, 2025, 6:50 pm
by Renewed2829
I think the tip about reducing the DEF_FILE_MAX value helped.

Thank you very much.

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

Posted: December 26th, 2025, 4:28 pm
by safihre
But again, it won't help for files inside rars.. Unrar and par2cmdline will still fail.