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

Sometimes hangs and never finishes #60

Open
Tailslide opened this issue Mar 1, 2022 · 4 comments
Open

Sometimes hangs and never finishes #60

Tailslide opened this issue Mar 1, 2022 · 4 comments
Labels
bug Something isn't working

Comments

@Tailslide
Copy link
Contributor

Describe the bug
I have excludarr set to run daily and sometimes it never finishes, just hangs forever

image

To Reproduce
Steps to reproduce the behavior:

  • Sporadic doesn't happen every time I run
docker run  --rm --pull=always --label=com.centurylinklabs.watchtower.enable=false  --env-file excludarr.env haijeploeg/excludarr:latest --debug radarr exclude -a delete -y -e

env file:

GENERAL_FAST_SEARCH=true
GENERAL_LOCALE=en_CA
GENERAL_PROVIDERS=netflix, amazon prime video
RADARR_URL=http://MYURL:7878
RADARR_API_KEY=MYKEY
RADARR_VERIFY_SSL=false

Expected behavior
Program always finishes or exits with error if there is an error

Versions

  1. OS Version: docker
  2. Excludarr version: V1.0.6
  3. Python version: 3.10.2

Debug logging
lg.txt

If the output is too long, please paste the output to pastebin or github gist and link it in this issue.

Additional context
ps command from inside container:

image

@Tailslide Tailslide added the bug Something isn't working label Mar 1, 2022
@haijeploeg
Copy link
Owner

Hi, thanks for your issue! I noticed this also a few times, this seems to happen when JustWatch has problems replying. I am not sure why the timeout in the code is not being triggered. For now the solution is to just cancel the run and try it again when JustWatch is fully responding again.

I will try to figure out why it is not triggering a timeout.

@Tailslide
Copy link
Contributor Author

Here's my workaround maybe it will help someone else:

CONTAINER_NAME=$(uuidgen)
(sleep 28800 ; sudo docker stop $CONTAINER_NAME)& docker run  --rm --name $CONTAINER_NAME --pull=always --label=com.centurylinklabs.watchtower.enable=false  --env-file excludarr.env haijeploeg/excludarr:latest --debug radarr exclude -a delete -y -e

@Tailslide
Copy link
Contributor Author

Quick look at the code I don't see any timeout set maybe I'm just not seeing it?

"By default, requests do not time out unless a timeout value is set explicitly. Without a timeout, your code may hang for minutes or more."

https://stackoverflow.com/questions/45267003/python-requests-hanging-freezing

@haijeploeg
Copy link
Owner

Oh you are right! I thought request had by default a timeout value of 30 seconds. I will adjust this next week. Lately I don't have a lot of spare time to spend on this project, will pick it up as soon as possible!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants