No Permission to set Attributes in file: 7z and "ERROR: Cannot set file attribute : errno=1 : Operation not permitted "

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
APiratesKestrell
Newbie
Newbie
Posts: 1
Joined: May 6th, 2026, 3:26 am

No Permission to set Attributes in file: 7z and "ERROR: Cannot set file attribute : errno=1 : Operation not permitted "

Post by APiratesKestrell »

Hey everyone,

so I'm not sure if I found a Bug or if I'm just missing something but I checked everything.
My sabnzbd is not failing after unpacking downloaded files with a password. It wants to set attributes to the file and it just can't. I double checked and apps user has full ownership and the permissions to do everything it wants on the working directories. I'm running it on a TrueNAS.
I've also tried it with many different downloads but every one where it has a password it fails. I really hope you can help me, because I really want to watch a cute Bird Documentary :)

Versions:
sabnzbd v5.0.1
TrueNAS 25.10.3 - Goldeye

Code: Select all

2026-05-06 09:43:41,241::INFO::[newsunpack:316] 7za starting on /config/Downloads/incomplete/████████████████████
2026-05-06 09:43:41,242::INFO::[newsunpack:900] Starting extract on 7zip set/file: ▒▒▒▒▒▒▒▒▒▒.7z 
2026-05-06 09:43:41,243::INFO::[misc:991] Found a password that was set by the user: ▓▓▓▓▓▓
2026-05-06 09:43:41,244::INFO::[misc:1002] Read 1 passwords from meta data in NZB: ['▓▓▓▓▓▓']
2026-05-06 09:43:41,244::DEBUG::[newsunpack:940] Trying 7zip with password "▓▓▓▓▓▓"
2026-05-06 09:43:41,245::INFO::[misc:1318] [sabnzbd.newsunpack.seven_extract_core] Running external command: ['/usr/bin/7zz', 'x', '-y', '-aou', '-ssc', '-p▓▓▓▓▓▓', '-o/mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████', '/config/Downloads/incomplete/████████████████████/▒▒▒▒▒▒▒▒▒▒.7z.001']
2026-05-06 09:43:41,246::DEBUG::[misc:1319] Popen arguments: {'stdout': -1, 'stderr': -2, 'bufsize': 0, 'startupinfo': None, 'creationflags': 0, 'text': True, 'encoding': 'utf8', 'errors': 'replace'}
2026-05-06 09:45:42,727::DEBUG::[newsunpack:981] 7za output: 
7-Zip (z) 25.01 (x64) : Copyright (c) 1999-2025 Igor Pavlov : 2025-08-03
 64-bit locale=C.UTF-8 Threads:8 OPEN_MAX:1048576

Scanning the drive for archives:
1 file, 157286400 bytes (150 MiB)

Extracting archive: /config/Downloads/incomplete/████████████████████/▒▒▒▒▒▒▒▒▒▒.7z.001
--
Path = /config/Downloads/incomplete/████████████████████/▒▒▒▒▒▒▒▒▒▒.7z.001
Type = Split
Physical Size = 157286400
Volumes = 32
Total Physical Size = 4917913983
----
Path = ▒▒▒▒▒▒▒▒▒▒.7z
Size = 4917913983
--
Path = ▒▒▒▒▒▒▒▒▒▒.7z
Type = 7z
Physical Size = 4917913983
Headers Size = 246
Method = Copy
Solid = -
Blocks = 1

ERROR: Cannot set file attribute : errno=1 : Operation not permitted : /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████
ERROR: Cannot set file attribute : errno=1 : Operation not permitted : /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████/████████████████████.mkv

Sub items Errors: 2

Archives with Errors: 1

Sub items Errors: 2

2026-05-06 09:45:42,804::INFO::[newsunpack:1004] 7za return code: 2
2026-05-06 09:45:42,804::INFO::[misc:1318] [sabnzbd.newsunpack.seven_extract_core] Running external command: ['/usr/bin/7zz', 'x', '-y', '-aou', '-ssc', '-p', '-o/mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████', '/config/Downloads/incomplete/████████████████████/▒▒▒▒▒▒▒▒▒▒.7z.001']
2026-05-06 09:45:42,805::DEBUG::[misc:1319] Popen arguments: {'stdout': -1, 'stderr': -2, 'bufsize': 0, 'startupinfo': None, 'creationflags': 0, 'text': True, 'encoding': 'utf8', 'errors': 'replace'}
2026-05-06 09:47:02,843::INFO::[nzbparser:95] Attempting to add ████████████████████.nzb
2026-05-06 09:47:02,869::INFO::[filesystem:736] Creating directories: /config/Downloads/incomplete/████████████████████
2026-05-06 09:47:02,922::INFO::[filesystem:736] Creating directories: /config/Downloads/incomplete/████████████████████/__ADMIN__
2026-05-06 09:47:02,929::INFO::[filesystem:1190] Saving /config/Downloads/incomplete/████████████████████/__ADMIN__/████████████████████.nzb.gz
2026-05-06 09:47:03,135::DEBUG::[nzbparser:412] NZB file meta-data = {'title': ['████████████████████']}
2026-05-06 09:47:03,142::INFO::[object:558] File lef7pF5a2DOQE0vcSxSdPi.par2 added to queue
2026-05-06 09:47:03,149::DEBUG::[filesystem:1071] [sabnzbd.nzb.file.__init__] Saving data for SABnzbd_nzf_g0p8o411 in /config/Downloads/incomplete/████████████████████/__ADMIN__
2026-05-06 09:47:03,157::INFO::[object:558] File lef7pF5a2DOQE0vcSxSdPi.vol00+01.par2 added to queue
2026-05-06 09:47:03,163::DEBUG::[filesystem:1071] [sabnzbd.nzb.file.__init__] Saving data for SABnzbd_nzf_2mm3wx35 in /config/Downloads/incomplete/████████████████████/__ADMIN__
2026-05-06 09:47:03,171::INFO::[object:558] File lef7pF5a2DOQE0vcSxSdPi.vol01+02.par2 added to queue
2026-05-06 09:47:03,178::DEBUG::[filesystem:1071] [sabnzbd.nzb.file.__init__] Saving data for SABnzbd_nzf_2802als9 in /config/Downloads/incomplete/████████████████████/__ADMIN__
2026-05-06 09:47:03,186::INFO::[object:558] File lef7pF5a2DOQE0vcSxSdPi.vol03+04.par2 added to queue
2026-05-06 09:47:03,192::DEBUG::[filesystem:1071] [sabnzbd.nzb.file.__init__] Saving data for SABnzbd_nzf_gz221zzq in /config/Downloads/incomplete/████████████████████/__ADMIN__
2026-05-06 09:47:03,200::INFO::[object:558] File lef7pF5a2DOQE0vcSxSdPi.vol07+08.par2 added to queue
2026-05-06 09:47:03,206::DEBUG::[filesystem:1071] [sabnzbd.nzb.file.__init__] Saving data for SABnzbd_nzf_b63v10l1 in /config/Downloads/incomplete/████████████████████/__ADMIN__
2026-05-06 09:47:03,214::INFO::[object:558] File lef7pF5a2DOQE0vcSxSdPi.vol31+17.par2 added to queue
2026-05-06 09:47:03,241::DEBUG::[filesystem:1071] [sabnzbd.nzb.file.__init__] Saving data for SABnzbd_nzf_bmdrdj8y in /config/Downloads/incomplete/████████████████████/__ADMIN__
2026-05-06 09:47:03,253::INFO::[object:558] File lef7pF5a2DOQE0vcSxSdPi added to queue
2026-05-06 09:47:03,262::DEBUG::[filesystem:1071] [sabnzbd.nzb.file.__init__] Saving data for SABnzbd_nzf__pusximw in /config/Downloads/incomplete/████████████████████/__ADMIN__
2026-05-06 09:47:03,273::INFO::[object:558] File lef7pF5a2DOQE0vcSxSdPi.vol15+16.par2 added to queue
2026-05-06 09:47:03,321::DEBUG::[filesystem:1174] Saving copy of ████████████████████.nzb.gz in /config/treasuremaps backup
2026-05-06 09:47:50,431::DEBUG::[newsunpack:981] 7za output: 
7-Zip (z) 25.01 (x64) : Copyright (c) 1999-2025 Igor Pavlov : 2025-08-03
 64-bit locale=C.UTF-8 Threads:8 OPEN_MAX:1048576

Scanning the drive for archives:
1 file, 157286400 bytes (150 MiB)

Extracting archive: /config/Downloads/incomplete/████████████████████/▒▒▒▒▒▒▒▒▒▒.7z.001
--
Path = /config/Downloads/incomplete/████████████████████/▒▒▒▒▒▒▒▒▒▒.7z.001
Type = Split
Physical Size = 157286400
Volumes = 32
Total Physical Size = 4917913983
----
Path = ▒▒▒▒▒▒▒▒▒▒.7z
Size = 4917913983
--
Path = ▒▒▒▒▒▒▒▒▒▒.7z
Type = 7z
Physical Size = 4917913983
Headers Size = 246
Method = Copy
Solid = -
Blocks = 1

ERROR: Cannot set file attribute : errno=1 : Operation not permitted : /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████
ERROR: Cannot set file attribute : errno=1 : Operation not permitted : /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████/████████████████████_1.mkv

Sub items Errors: 2

Archives with Errors: 1

Sub items Errors: 2

2026-05-06 09:47:50,433::INFO::[newsunpack:1004] 7za return code: 2
2026-05-06 09:47:50,436::INFO::[newsunpack:320] 7za finished on /config/Downloads/incomplete/████████████████████
2026-05-06 09:47:50,439::INFO::[postproc:481] Unpacked files ['/mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████/████████████████████_1.mkv']
2026-05-06 09:47:50,442::INFO::[filesystem:326] Checking if any resulting filenames need to be sanitized
2026-05-06 09:47:50,445::INFO::[postproc:485] Finished unpack_magic on ████████████████████
2026-05-06 09:47:50,448::DEBUG::[filesystem:636] Applying permissions 0o100660 (octal) to /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████/████████████████████.mkv
2026-05-06 09:47:50,451::DEBUG::[filesystem:643] Could not change permissions of /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████/████████████████████.mkv
2026-05-06 09:47:50,454::DEBUG::[filesystem:636] Applying permissions 0o100660 (octal) to /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████/████████████████████_1.mkv
2026-05-06 09:47:50,457::DEBUG::[filesystem:643] Could not change permissions of /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████/████████████████████_1.mkv
2026-05-06 09:47:50,460::INFO::[postproc:1270] Collapsing /mnt/TreasureChest/The Revenge/docked/movies/_FAILED_████████████████████/████████████████████
2026-05-06 09:47:50,462::DEBUG::[filesystem:902] Renaming "/mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████/████████████████████" to "/mnt/TreasureChest/The Revenge/docked/movies/_FAILED_████████████████████"
2026-05-06 09:47:50,468::DEBUG::[filesystem:944] [sabnzbd.postproc.rename_and_collapse_folder] Removing dir /mnt/TreasureChest/The Revenge/docked/movies/_UNPACK_████████████████████
2026-05-06 09:47:50,477::INFO::[object:1415] [sabnzbd.postproc.process_job] Purging data for job ████████████████████ (delete_all_data=False)
2026-05-06 09:47:50,480::DEBUG::[articlecache:213] Purging 0 articles from the cache/disk
2026-05-06 09:47:50,508::INFO::[notifier:169] Sending notification: Download Failed - ████████████████████ (type=failed, job_cat=movies) 
Warm wishes
A Pirates Kestrell
(she/her)
User avatar
sander
Release Testers
Release Testers
Posts: 9429
Joined: January 22nd, 2008, 2:22 pm

Re: No Permission to set Attributes in file

Post by sander »

Ah. Permissions. Always fun. With NAS (thus ... docker?) extra fun

"ERROR: Cannot set file attribute : errno=1 : Operation not permitted : " ... is from 7za (not from SABnzbd itself)

If you Google / Gemini that ... first text is

"The "Cannot set file attribute" error in 7za (7-Zip) typically occurs when extracting files onto a network share (SMB/CIFS) or a restricted filesystem, as 7-Zip fails to apply Unix permissions or extended attributes to the extracted file, even if it has written the data.
...
<Solutions and Workarounds:>
...
This issue is often seen in Docker containers or Linux environments accessing Windows shares.
"

... so can you follow that Google / Gemini info?
Post Reply