Skip to content

SMB/CIFS library transfer fails on chmod despite preserve_metadata=False #129

Description

@thepaulguy

Component

Downloads / Acquisition

Description

Traceback shows:

safe_move(src, dst)
? copy_with_retries(src, dst, preserve_metadata=False)
? shutil.copy(...)
? copymode(...)
? chmod(...)

So even though preserve_metadata=False, shutil.copy() still attempts to copy mode bits to the CIFS destination.

Expected behavior:
When preserve_metadata=False, use a copy method that does not call copymode/chmod on the destination, e.g. shutil.copyfile(), or catch/ignore unsupported chmod on SMB/CIFS.

The file data itself appears to copy successfully before the chmod failure.

Also, when I leave and return to the Post-Processing page I get this strange behavior in the screen shots. I didn't click retry by it appears on the Queue page again with a funky status and just stays there.

Steps to Reproduce

Search for Comic.
Pullbox downloads the comic
When post-processing happens, the file is copied (not moved even though I have it set to Move) and it fails with this error
[Errno 1] Operation not permitted: '/comics/Doctor Doom (2019)/Doctor Doom (2019) #1 (1).cbz'

Expected Behavior

Post processing should move the file from the downloads directory to the comics dirrectory.

Actual Behavior

Traceback shows:

safe_move(src, dst)
? copy_with_retries(src, dst, preserve_metadata=False)
? shutil.copy(...)
? copymode(...)
? chmod(...)

So even though preserve_metadata=False, shutil.copy() still attempts to copy mode bits to the CIFS destination.

Expected behavior:
When preserve_metadata=False, use a copy method that does not call copymode/chmod on the destination, e.g. shutil.copyfile(), or catch/ignore unsupported chmod on SMB/CIFS.

The file data itself appears to copy successfully before the chmod failure.

Also, when I leave and retrun to the Post-Processing page I get this strange behavior in the screen shots. I didn't click retry by it appears on the Queue page again with a funky status and just stays there.

Pullbox Version

1.2.1

Deployment Method

Docker

Operating System

Windows 11

Diagnostic Package

pullbox-diagnostic-20260829-052334.zip

Screenshots

Image

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions