[BUG] - Sonarr & Radarr - xq command not found #189

Closed
opened 2026-02-20 00:17:11 -05:00 by deekerman · 5 comments
Owner

Originally created by @saschabrockel on GitHub (Jan 27, 2025).

Application
Sonarr / Radarr

Host platform
Unraid

Script
https://github.com/RandomNinjaAtk/arr-scripts/blob/main/sonarr/scripts_init.bash

Script Version
Please provide the script version number

Describe the bug
Something in the scripts_init is buggy. Some package is missing and causes error logs.

To Reproduce
Steps to reproduce the behavior:
Just use the script.

Expected behavior
No error logs.

Logs/Screenshots

[custom-init] scripts_init.bash: executing...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed

  0     0    0     0    0     0      0      0 --:--:-- --:--:-- --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:01 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:02 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:03 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:04 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:05 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:06 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:07 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:08 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:09 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:10 --:--:--     0
  0     0    0     0    0     0      0      0 --:--:--  0:00:11 --:--:--     0curl: (6) Could not resolve host: raw.githubusercontent.com
[custom-init] scripts_init.bash: exited 0
/config/extended/functions: line 22: xq: command not found
/config/extended/functions: line 22: xq: command not found
/config/extended/functions: line 22: xq: command not found
/config/extended/functions: line 28: xq: command not found
/config/extended/functions: line 22: xq: command not found
2025-01-27 13:48:06 :: AutoExtras :: 1.6 :: Script starting...
/config/extended/functions: line 22: xq: command not found
/config/extended/functions: line 28: xq: command not found
2025-01-27 13:48:06 :: Recyclarr :: 1.8 :: Script is not enabled, enable by setting enableRecyclarr to "true" by modifying the "/config/extended.conf" config file...
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 28: xq: command not found
/config/extended/functions: line 28: xq: command not found
2025-01-27 13:48:06 :: Recyclarr :: 1.8 :: Sleeping (infinity)
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 30: xq: command not found
/config/extended/functions: line 28: xq: command not found
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 30: xq: command not found
/config/extended/functions: line 30: xq: command not found
/config/extended/functions: line 30: xq: command not found
/config/extended/functions: line 29: xq: command not found
/config/extended/functions: line 30: xq: command not found

Image
Seems to belong to DailySeriesEpisodeTrimmer.bash.

Edit: the same for Radarr and Extras.bash:

Image

Originally created by @saschabrockel on GitHub (Jan 27, 2025). **Application** Sonarr / Radarr **Host platform** Unraid **Script** https://github.com/RandomNinjaAtk/arr-scripts/blob/main/sonarr/scripts_init.bash **Script Version** Please provide the script version number **Describe the bug** Something in the scripts_init is buggy. Some package is missing and causes error logs. **To Reproduce** Steps to reproduce the behavior: Just use the script. **Expected behavior** No error logs. **Logs/Screenshots** ``` [custom-init] scripts_init.bash: executing... % Total % Received % Xferd Average Speed Time Time Time Current Dload Upload Total Spent Left Speed 0 0 0 0 0 0 0 0 --:--:-- --:--:-- --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:01 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:02 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:03 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:04 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:05 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:06 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:07 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:08 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:09 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:10 --:--:-- 0 0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0curl: (6) Could not resolve host: raw.githubusercontent.com [custom-init] scripts_init.bash: exited 0 /config/extended/functions: line 22: xq: command not found /config/extended/functions: line 22: xq: command not found /config/extended/functions: line 22: xq: command not found /config/extended/functions: line 28: xq: command not found /config/extended/functions: line 22: xq: command not found 2025-01-27 13:48:06 :: AutoExtras :: 1.6 :: Script starting... /config/extended/functions: line 22: xq: command not found /config/extended/functions: line 28: xq: command not found 2025-01-27 13:48:06 :: Recyclarr :: 1.8 :: Script is not enabled, enable by setting enableRecyclarr to "true" by modifying the "/config/extended.conf" config file... /config/extended/functions: line 29: xq: command not found /config/extended/functions: line 28: xq: command not found /config/extended/functions: line 28: xq: command not found 2025-01-27 13:48:06 :: Recyclarr :: 1.8 :: Sleeping (infinity) /config/extended/functions: line 29: xq: command not found /config/extended/functions: line 29: xq: command not found /config/extended/functions: line 30: xq: command not found /config/extended/functions: line 28: xq: command not found /config/extended/functions: line 29: xq: command not found /config/extended/functions: line 30: xq: command not found /config/extended/functions: line 30: xq: command not found /config/extended/functions: line 30: xq: command not found /config/extended/functions: line 29: xq: command not found /config/extended/functions: line 30: xq: command not found ``` ![Image](https://github.com/user-attachments/assets/52038d50-3738-47b5-846b-3800e8e72d04) Seems to belong to DailySeriesEpisodeTrimmer.bash. Edit: the same for Radarr and Extras.bash: ![Image](https://github.com/user-attachments/assets/7fe184dc-3667-4ea7-be92-23f5c676df6d)
Author
Owner

@RandomNinjaAtk commented on GitHub (Jan 29, 2025):

This indicates the setup script didn't run properly... Because your missing packages that are installed via the setup process...

You need to resolve this error:

0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0curl: (6) Could not resolve host: raw.githubusercontent.com

@RandomNinjaAtk commented on GitHub (Jan 29, 2025): This indicates the setup script didn't run properly... Because your missing packages that are installed via the setup process... You need to resolve this error: ` 0 0 0 0 0 0 0 0 --:--:-- 0:00:11 --:--:-- 0curl: (6) Could not resolve host: raw.githubusercontent.com`
Author
Owner

@ntruhan commented on GitHub (May 11, 2025):

Just as an FYI...
I saw this as well with the latest lscr.io images:
image: lscr.io/linuxserver/sonarr:latest

What I did to resolve is utilize the DOCKER_MODS for lscr.io images, adding these environment variables to the docker definition.
- DOCKER_MODS=linuxserver/mods:universal-package-install
- INSTALL_PACKAGES=xq

@ntruhan commented on GitHub (May 11, 2025): Just as an FYI... I saw this as well with the latest lscr.io images: image: lscr.io/linuxserver/sonarr:latest What I did to resolve is utilize the DOCKER_MODS for lscr.io images, adding these environment variables to the docker definition. - DOCKER_MODS=linuxserver/mods:universal-package-install - INSTALL_PACKAGES=xq
Author
Owner

@RandomNinjaAtk commented on GitHub (May 11, 2025):

Just as an FYI... I saw this as well with the latest lscr.io images: image: lscr.io/linuxserver/sonarr:latest

What I did to resolve is utilize the DOCKER_MODS for lscr.io images, adding these environment variables to the docker definition. - DOCKER_MODS=linuxserver/mods:universal-package-install - INSTALL_PACKAGES=xq

Thats neat, but does not resolve the issue, the problem is something else with the users configuration as the container is getting an error when trying to connect to github... Either way this is not reproducible...

@RandomNinjaAtk commented on GitHub (May 11, 2025): > Just as an FYI... I saw this as well with the latest lscr.io images: image: lscr.io/linuxserver/sonarr:latest > > What I did to resolve is utilize the DOCKER_MODS for lscr.io images, adding these environment variables to the docker definition. - DOCKER_MODS=linuxserver/mods:universal-package-install - INSTALL_PACKAGES=xq Thats neat, but does not resolve the issue, the problem is something else with the users configuration as the container is getting an error when trying to connect to github... Either way this is not reproducible...
Author
Owner

@TopperBG commented on GitHub (May 12, 2025):

BTW for a month I faced too GH access problem with app based on python:3.9.2-slim-buster.
From host OS everything is good. I'am starting to suspect something within Docker.

(Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f7a0cf2bf10>: Failed to resolve 'api.github.com' ([Errno -5] No address associated with hostname)"))

@TopperBG commented on GitHub (May 12, 2025): BTW for a month I faced too GH access problem with app based on python:3.9.2-slim-buster. From host OS everything is good. I'am starting to suspect something within Docker. > (Caused by NameResolutionError("<urllib3.connection.HTTPSConnection object at 0x7f7a0cf2bf10>: Failed to resolve 'api.github.com' ([Errno -5] No address associated with hostname)"))
Author
Owner

@Poisonsting commented on GitHub (Jan 25, 2026):

Just as an FYI... I saw this as well with the latest lscr.io images: image: lscr.io/linuxserver/sonarr:latest

What I did to resolve is utilize the DOCKER_MODS for lscr.io images, adding these environment variables to the docker definition. - DOCKER_MODS=linuxserver/mods:universal-package-install - INSTALL_PACKAGES=xq

I tried this change to my Docker Compose file, but it made no difference at all to me. Since updating my container and arr-scripts recently, it never works anymore. The container is telling me that neither python or xq exist.

@Poisonsting commented on GitHub (Jan 25, 2026): > Just as an FYI... I saw this as well with the latest lscr.io images: image: lscr.io/linuxserver/sonarr:latest > > What I did to resolve is utilize the DOCKER_MODS for lscr.io images, adding these environment variables to the docker definition. - DOCKER_MODS=linuxserver/mods:universal-package-install - INSTALL_PACKAGES=xq I tried this change to my Docker Compose file, but it made no difference at all to me. Since updating my container and arr-scripts recently, it never works anymore. The container is telling me that neither python or xq exist.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/arr-scripts#189
No description provided.