autobrr / omegabrr

Omegabrr transforms monitored shows, movies, books and music from arrs into autobrr filters. It also supports adding titles from custom lists to autobrr filters.
https://autobrr.com
MIT License
127 stars 11 forks source link

Lidarr deadline exceeded #88

Open nathang21 opened 1 month ago

nathang21 commented 1 month ago

I've recently started getting these errors with Lidar (which has recently increased in size significantly, not in media files but in synced artists from Shopify integration), and I haven't been able to update my filters in a while (as far as I can tell from the logs). All the other *arrs are not having this issue (which

I don't feel like my library is particularly large, but assuming there isn't some other bug, perhaps the query could be optimized or the deadline timeout increased? Let me know if you need other information.

Logs:

2024-07-12T18:00:02-04:00 DBG gathering titles... client=lidarr type=lidarr
2024-07-12T18:01:02-04:00 ERR error while processing Lidarr, continuing with other clients error="api.Get(album): ioutil.ReadAll: context deadline exceeded (Client.Timeout or context cancellation while reading body)" client=lidarr type=lidarr
2024-07-12T18:01:02-04:00 ERR Errors encountered during processing Arrs: job=process-filters
2024-07-12T18:01:02-04:00 ERR Lidarr - lidarr: api.Get(album): ioutil.ReadAll: context deadline exceeded (Client.Timeout or context cancellation while reading body) job=process-filters

Environment Details:

nathang21 commented 1 month ago

Seems like this issue has gone away. Perhaps my lidarr instance was just overloaded scanning all the new media that was added.

nathang21 commented 1 month ago

Reopening, looks like this is an intermittent issue.

zze0s commented 1 month ago

Hi! It's got a 60 second timeout which is pretty reasonable. Seem like you have intermittent issues so it's likely something in your setup rather than on an application level.

How many artists and albums do you have synced in there? Above 1000? 10000?

Are you running lidarr or other arrs on the NAS? If you do, is any of the config/data dirs for the arrs on any storage that is NFS mounted? The arrs with the default SQLite database does not work will with that type of setup and can lead to issues like this.

nathang21 commented 1 month ago

Thanks for the reply, I think I must just be barely reaching that 60 second timeout, depending on the available CPU/SSD usage on my system and how fast lidarr is able to respond (slower especially of other scheduled tasks in Lidarr are running). All my *arrs are setup the same way, only lidarr has this issue, but it only intermittently succeeds so on average it's taking longer than 60 seconds I suspect.

Here is some metadata from my library, I have a lot of monitored artists >1000 (due to shopify sync) but don't currently have a large media library on disk.

Artists: 1639
Inactive: 91
Continuing: 1548
Monitored: 25
Unmonitored: 1614
Tracks: 2503
Files: 2491
Total File Size: 20.5 GiB

Regarding the config/data dirs, I am not using any NFS mounted drive. I have local HDD's for all the media, and docker and all the configuration lives on the SSD. For media/downloads hardlinks are working.

Any other ideas besides increasing the timeout?