RandomNinjaAtk / arr-scripts

Extended Container Scripts - Automation scripts to make life easier!
GNU General Public License v3.0
700 stars 72 forks source link

[FEATURE] - Readarr Extended Scripts #22

Closed Glynax closed 1 year ago

Glynax commented 1 year ago

I used your readarr extended before, the queue cleaner was a godsend.

Just hoping that you will bring it back at some point.

RandomNinjaAtk commented 1 year ago

It’s on the todo list

RandomNinjaAtk commented 1 year ago

The scripts should be ready for testing: https://github.com/RandomNinjaAtk/arr-scripts/blob/main/readarr/readme.md

Give it a try, you may want to setup a test configuration to make sure beforehand... Honestly have not tested it myself, but it should work...

Glynax commented 1 year ago

Alright I installed it, watched it download everything but it's not working for my particular case. I have two readarrs running, one for audiobooks and one for ebooks pretty common but I suspect that's why it's not working. Queue cleaner and autoconfig are just full of this 2023-07-17 02:45:23 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:24 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:25 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:26 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:27 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:28 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:29 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:30 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:31 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:32 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:33 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:34 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:35 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:36 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:37 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:38 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:39 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:40 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:41 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:42 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:43 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:44 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:46 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:47 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:48 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:49 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:50 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:51 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:52 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:53 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:54 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:55 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:56 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:57 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:58 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:45:59 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:46:00 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:46:01 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:46:02 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:46:03 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:46:04 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response... 2023-07-17 02:46:05 :: AutoConfig :: 1.0 :: Readarr is not ready, sleeping until valid response...

RandomNinjaAtk commented 1 year ago

I’ll see if I can replicate the issue when I have the chance

RandomNinjaAtk commented 1 year ago

I had to make one small tweak to the setup script, but I'm unable to replicate the issue you are experiencing.

Make sure your using this container: https://hub.docker.com/r/linuxserver/readarr

My testing was using a fresh install...

RandomNinjaAtk commented 1 year ago

Based on my testing, the scripts are working.

Glynax commented 1 year ago

Alright I think I see where it's breaking, my readarrs are using port 9090 and 9191 because the expected ports were already in use by something else

verifyApiAccess () { until false do arrApiTest="" arrApiVersion="" if [ "$arrPort" == "8989" ] || [ "$arrPort" == "7878" ]; then arrApiVersion="v3" elif [ "$arrPort" == "8686" ] || [ "$arrPort" == "8787" ]; then arrApiVersion="v1" fi arrApiTest=$(curl -s "$arrUrl/api/$arrApiVersion/system/status?apikey=$arrApiKey" | jq -r .instanceName) if [ "$arrApiTest" == "$arrName" ]; then break else log "$arrName is not ready, sleeping until valid response..." sleep 1 fi done }