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

Can someone please assist if "resource busy" is source or destination path? #11729

Open
jaxjexjox opened this issue Jun 4, 2024 · 1 comment

Comments

@jaxjexjox
Copy link

This is not a bug, apologies, very sorry.

I'm curious if the cause of this is the source or destination? I see it infrequently.

2024-06-02 19:03:37 ERROR Thread_0 :: [34a67cf] Unable to move file /downloads/SOURCEFILE.MKV to /tv/DESTINATION-FILE-NICE-NAMING-CONVENTION/Season 07: OSError(16, 'Resource busy')
Traceback (most recent call last):
File "/app/medusa/medusa/post_processor.py", line 1281, in process
self.post_process_action(self.file_path, dest_path, new_base_name, bool(app.MOVE_ASSOCIATED_FILES),
File "/app/medusa/medusa/post_processor.py", line 542, in post_process_action
self._combined_file_operation(file_path, new_path, new_basename, associated_files=associated_files,
File "/app/medusa/medusa/post_processor.py", line 443, in _combined_file_operation
other_files += self.list_associated_files(file_path, refine=True)
File "/app/medusa/medusa/post_processor.py", line 218, in list_associated_files
processed_names += tuple((_f for _f in (self._rar_basename(file_path, files),) if _f))
File "/app/medusa/medusa/post_processor.py", line 328, in _rar_basename
for rar in rars:
File "/app/medusa/medusa/post_processor.py", line 326, in
rars = (x for x in files if os.path.isfile(x) and rarfile.is_rarfile(x))
File "/app/medusa/ext/rarfile.py", line 419, in is_rarfile
return _get_rar_version(xfile) > 0
File "/app/medusa/ext/rarfile.py", line 404, in _get_rar_version
with XFile(xfile) as fd:
File "/app/medusa/ext/rarfile.py", line 2434, in init
self._fd = open(xfile, 'rb', bufsize)

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Medusa (please complete the following information):

  • OS: [e.g. ubuntu 14.04 x64]
  • Branch: [e.g. master, develop]
  • Commit: [e.g. c65ca2]
  • Python version: [e.g. 3.6.8]
  • Database version: [e.g. 44.12]

Debug logs (at least 50 lines):
General > Advanced Settings > Enable debug

<-- Please replace this whole line with your debug logs -->

Additional context
Add any other context about the problem here.

@p0psicles
Copy link
Contributor

your running medusa in docker container?

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

No branches or pull requests

2 participants