Skip to content

decluttarr crashes on slow server when read times out #317

@teherani

Description

@teherani

I'm running decluttarr in docker on an older 2020 Synology NAS.

A couple of times a day, the decluttarr read times out when the server gets bogged down. Unfortunately, this causes the decluttarr container to crash rather than exit the current function and wait for the next timer event.

Suggestions to solve crashes:

  • add yaml variable to allow for increasing the read timeout value (currently set at 15s and unable to change)
  • allow a read timeout error to abort gracefully so that current function is skipped but whole container does not crash
    • ideally, "read timed out" error would cause script to exit to the timer wait function so that read could be tried again after waiting the set timer period.

Log details:

08:00:07	stderr	INFO    | Job 'search_missing' triggered a search for 3 episodes

08:00:07	stderr	DEBUG   | search_handler.py/_log_items: Getting series information for better display in output

08:00:07	stderr	DEBUG   | common.py/make_request: Making GET request to http://192.168.1.10:9999/api/v3/series with kwargs={'headers': {'X-Api-Key': '[**redacted**]'}}

08:00:18	stderr	ERROR   | Other error occurred: HTTPConnectionPool(host='192.168.1.10', port=9999): Read timed out. (read timeout=15)

(When decluttarr works, it's really great! Thanks for your efforts on this project!)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions