Open phromaj opened 8 months ago
I am having the same issue on Docker since version 2.95.
[08/11/23 08:09:20] scraping sources [torrentio] for query "poor.things.2023" ... done [08/11/23 08:09:20] error starting new thread (perhaps maximum number of threads reached), will retry in 5 seconds and exit if it fails again.
After the error, plex_debrid crashes.
https://github.com/itsToggle/plex_debrid/issues/573 helped me, you just need to enable tty in you container configuration
I tried to launch the service in Docker Swarm (which should also apply to Docker Compose) with the following configuration, but it did not work:
plex_debrid:
image: itstoggle/plex_debrid
volumes:
- /home/XXXX/.config/appdata/plex_debrid:/config
tty: true
stdin_open: true
environment:
- PUID=1000
- PGID=1000
- TZ=Europe/Paris
However, the command you provided does work. I hope the bug will be fixed soon. Thank you for your help.
573 helped me, you just need to enable tty in you container configuration
Thanks for the tip. I am running Docker in Unraid. I edited the container configuration and added -ti under Extra Parameters and that fixed the problem for me.
Description
The content scraping service fails when attempting to create a new thread, which leads to a
RuntimeError
indicating that a new thread can't be created at interpreter shutdown. This issue occurs during the scraping of sources for new content.Steps to Reproduce
Expected Behavior
The service should successfully create a new thread and perform the scrape task without any errors.
Actual Behavior
The thread creation fails, and after a retry mechanism, it completely halts the scraping process with a
RuntimeError
.Logs
Environment
Additional Context
This problem may indicate a limit on the number of concurrent threads that can be created or perhaps other resource limitations in the Docker environment. Further investigation is needed to pinpoint the exact cause and determine a solution.