Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Avoiding 0-byte files being created when encountering "No space left on device" #342

Open
tordenflesk opened this issue Jan 20, 2024 · 4 comments

Comments

@tordenflesk
Copy link

tordenflesk commented Jan 20, 2024

Any way of avoiding 0-byte files being created when encountering:

ERROR! [Errno 28] No space left on device

Originally posted by @tordenflesk in #191 (comment)

@tfeldmann
Copy link
Owner

Which actions result in empty files? Moving / copying?

@tordenflesk
Copy link
Author

Moving

rules:
  - locations: \\Srv-omv01\data01\tdarr\output
    name: Tdarr
    subfolders: true
    filters:
      - extension: mkv
      - lastmodified:
          minutes : 10
    actions:
      - move:
          dest: G:\
          on_conflict: rename_new
          rename_template: "{name}-{counter}{extension}"

@tfeldmann
Copy link
Owner

Thanks for the config!

I'm not sure what organize can so differently in this case. It's using the python stdlib file methods. Maybe it's a bug in upstream?

Can you expand on the environment?
Is the mounted share a samba share? Which host are you running organize on?

@tordenflesk
Copy link
Author

That's a UNC path, not mounted. \output contains thousands of files, and if i run this config i'm left with thousands of 0-byte files. This is also true if i move files with a similar config "the other way" and the remove hosts drive is full.

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

No branches or pull requests

2 participants