pymedusa / Medusa

Automatic Video Library Manager for TV Shows. It watches for new episodes of your favorite shows, and when they are posted it does its magic.
https://pymedusa.com
GNU General Public License v3.0
1.74k stars 271 forks source link

[APP SUBMITTED]: FileNotFoundError: [Errno 2] No such file or directory: '/downloads/psycho-pass - s00e17.mkv.mkv' #11716

Closed fexofenadine closed 1 month ago

fexofenadine commented 1 month ago

INFO

Python Version: 3.11.9 (main, Apr 14 2024, 13:40:00) [GCC 13.2.1 20231014] Operating System: Linux-4.4.302+-x86_64-with Locale: UTF-8 Branch: master Database: 44.19 Commit: pymedusa/Medusa@baad1e5af59d7f29606c1fed1c110af1424bb117 Link to Log: No Log available

ERROR

2024-05-12 21:32:56 ERROR    POSTPROCESSOR :: [baad1e5] Unable to move file /downloads/psycho-pass - s00e17.mkv.mkv to /volume1/tv_shows/Psycho-Pass/Season 00/S00E17 - Psycho-Pass 3 First Inspector.mkv: FileNotFoundError(2, 'No such file or directory')
Traceback (most recent call last):
  File "/usr/lib/python3.11/shutil.py", line 853, in move
    os.rename(src, real_dst)
OSError: [Errno 18] Cross-device link: '/downloads/psycho-pass - s00e17.mkv.mkv' -> '/volume1/tv_shows/Psycho-Pass/Season 00/S00E17 - Psycho-Pass 3 First Inspector.mkv'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/medusa/medusa/helpers/__init__.py", line 320, in move_file
    shutil.move(src_file, dest_file)
  File "/usr/lib/python3.11/shutil.py", line 873, in move
    copy_function(src, real_dst)
  File "/usr/lib/python3.11/shutil.py", line 449, in copy2
    copystat(src, dst, follow_symlinks=follow_symlinks)
  File "/usr/lib/python3.11/shutil.py", line 378, in copystat
    st = lookup("stat")(src, follow_symlinks=follow)
         ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: '/downloads/psycho-pass - s00e17.mkv.mkv'

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/app/medusa/medusa/post_processor.py", line 480, in move
    helpers.move_file(cur_file_path, new_file_path)
  File "/app/medusa/medusa/helpers/__init__.py", line 324, in move_file
    os.unlink(src_file)
FileNotFoundError: [Errno 2] No such file or directory: '/downloads/psycho-pass - s00e17.mkv.mkv'

STAFF NOTIFIED: @pymedusa/support @pymedusa/moderators