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

[Bug] Issue with 30k movie library and countless "no such file or directory" #32

Closed
Glynax opened this issue Aug 28, 2024 · 2 comments · Fixed by #30
Closed

[Bug] Issue with 30k movie library and countless "no such file or directory" #32

Glynax opened this issue Aug 28, 2024 · 2 comments · Fixed by #30
Labels
bug Something isn't working duplicate This issue or pull request already exists

Comments

@Glynax
Copy link

Glynax commented Aug 28, 2024

Describe the bug
A clear and concise description of what the bug is.
So I have about 16k downloaded movies in radarr, but 30k in the list. My first issue was I didn't have empty folders made for all of them so I ticked those boxes on in sonarr and radarr and now I'm playing whack a mole trying to figure out why it still can't find failing.
Really what this needs is separate tasks for sonarr and radarr so one could be working minimally, and to queue things up, one fails? Try the next. Don't just die immediately when anything fails.

Steps To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error
    Every time the download missing trailers task runs it fails in 2 seconds

Actual behavior
A clear and concise description of what is happening.

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

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

App Information (please complete the following information):

  • Base OS: [e.g. Ubuntu]
  • Architecture: (run dpkg --print-architecture to find out). [e.g. arm64, amd64]
  • Version [e.g. 22.04]
  • Browser (if related to webpage) [e.g. chrome 127.0.6533.89 (Official Build) (64-bit)]

Additional context
Add any other context about the problem here.
INFO: 127.0.0.1:35230 - "GET /status HTTP/1.1" 200 OK
INFO: 192.168.1.232:5796 - "GET /logs HTTP/1.1" 200 OK
INFO: ('192.168.1.232', 5799) - "WebSocket /ws/804591" [accepted]
2024-08-28T00:56:52-0400 [INFO|main|L092]: Main: Client #804591 connected!
INFO: connection open
INFO: 192.168.1.232:5796 - "GET /api/v1/logs/ HTTP/1.1" 200 OK
INFO: 192.168.1.232:5796 - "GET /api/v1/tasks/schedules HTTP/1.1" 200 OK
INFO: 192.168.1.232:5797 - "GET /api/v1/tasks/queue HTTP/1.1" 200 OK
INFO: 192.168.1.232:5797 - "GET /api/v1/tasks/run/download_missing_trailers_job HTTP/1.1" 200 OK
2024-08-28T00:57:00-0400 [INFO|base|L123]: Running job "Download Missing Trailers (trigger: interval[1:00:00], next run at: 2024-08-28 01:57:00 EDT)" (scheduled at 2024-08-28 00:57:00.910605-04:00)
2024-08-28T00:57:01-0400 [INFO|download_trailers|L088]: TrailerDownloadTasks: Downloading missing trailers
INFO: 192.168.1.232:5797 - "GET /api/v1/tasks/schedules HTTP/1.1" 200 OK
INFO: 192.168.1.232:5807 - "GET /api/v1/tasks/queue HTTP/1.1" 200 OK
2024-08-28T00:57:03-0400 [ERROR|base|L131]: Job "Download Missing Trailers (trigger: interval[1:00:00], next run at: 2024-08-28 01:57:00 EDT)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/apscheduler/executors/base.py", line 125, in run_job
ERROR: Job "Download Missing Trailers (trigger: interval[1:00:00], next run at: 2024-08-28 01:57:00 EDT)" raised an exception
Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/apscheduler/executors/base.py", line 125, in run_job
retval = job.func(*job.args, **job.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/core/tasks/download_trailers.py", line 89, in download_missing_trailers
_download_missing_media_trailers(is_movie=True)
File "/app/backend/core/tasks/download_trailers.py", line 43, in _download_missing_media_trailers
if not FilesHandler.check_media_exists(db_media.folder_path):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/core/files_handler.py", line 151, in check_media_exists
for entry in os.scandir(path):
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: "/mnt/mergerfs/data/media/movies/The Making of 'Dune Part One ()"
retval = job.func(*job.args, **job.kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/core/tasks/download_trailers.py", line 89, in download_missing_trailers
_download_missing_media_trailers(is_movie=True)
File "/app/backend/core/tasks/download_trailers.py", line 43, in _download_missing_media_trailers
if not FilesHandler.check_media_exists(db_media.folder_path):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/app/backend/core/files_handler.py", line 151, in check_media_exists
for entry in os.scandir(path):
^^^^^^^^^^^^^^^^
FileNotFoundError: [Errno 2] No such file or directory: "/mnt/mergerfs/data/media/movies/The Making of 'Dune Part One ()"
INFO: 192.168.1.232:5807 - "GET /api/v1/tasks/schedules HTTP/1.1" 200 OK
INFO: 192.168.1.232:5797 - "GET /api/v1/tasks/queue HTTP/1.1" 200 OK
INFO: 192.168.1.232:5797 - "GET /api/v1/logs/ HTTP/1.1" 200 OK
INFO: 127.0.0.1:38908 - "GET /status HTTP/1.1" 200 OK
INFO: 127.0.0.1:51444 - "GET /status HTTP/1.1" 200 OK

@Glynax Glynax added the bug Something isn't working label Aug 28, 2024
@nandyalu
Copy link
Owner

Duplicate of #26. PR #30 will fix the issue

@nandyalu nandyalu added the duplicate This issue or pull request already exists label Aug 28, 2024
@nandyalu nandyalu linked a pull request Aug 28, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working duplicate This issue or pull request already exists
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
@Glynax @nandyalu and others