RandomNinjaAtk / arr-scripts

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

Sonarr error #235

Closed shedman214 closed 6 months ago

shedman214 commented 6 months ago

I can't seem to get mine to work I keep getting an error on all my scripts. im getting erros for the arr's script for the dailytrimmer and extra bash script. Logs: https://logpaste.com/lZDXeJr9

RandomNinjaAtk commented 6 months ago

Looks like the setup script did not run. Double check you followed the installation instructions correctly.

Reboot the container and watch the container logs to see if the setup script runs, which installs all the dependencies and etc.

shedman214 commented 6 months ago

This is what the logs says after I restarted the container.

[custom-init] Files found, executing
04/11/2024
03:17:37 AM
[custom-init] custom-services.d: is not a file
04/11/2024
03:17:37 AM
./run: line 8: source: /config/extended/functions: is a directory
04/11/2024
03:17:37 AM
./run: line 10: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 12: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 13: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 9: source: /config/extended/functions: is a directory
04/11/2024
03:17:37 AM
./run: line 11: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 47: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 13: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 14: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 49: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 141: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 9: source: /config/extended/functions: is a directory
04/11/2024
03:17:37 AM
./run: line 11: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 50: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 142: log: command not found./run: line 8: source: /config/extended/functions: is a directory
04/11/2024
03:17:37 AM
04/11/2024
03:17:37 AM
./run: line 49: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 10: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 8: source: /config/extended/functions: is a directory
04/11/2024
03:17:37 AM
./run: line 50: log: command not found
04/11/2024
03:17:37 AM
./run: line 12: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 52: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 10: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 144: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 8: source: /config/extended/functions: is a directory
04/11/2024
03:17:37 AM
./run: line 53: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 145: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 12: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 13: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 10: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 34: log: command not found
04/11/2024
03:17:37 AM
./run: line 13: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 83: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 61: logfileSetup: command not found
04/11/2024
03:17:37 AM
./run: line 62: log: command not found
04/11/2024
03:17:37 AM
./run: line 18: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 64: getArrAppInfo: command not found
04/11/2024
03:17:37 AM
./run: line 19: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 65: verifyApiAccess: command not found
04/11/2024
03:17:37 AM
./run: line 22: log: command not found
04/11/2024
03:17:37 AM
./run: line 85: log: command not found
04/11/2024
03:17:37 AM
./run: line 33: log: command not found
04/11/2024
03:17:37 AM
./run: line 38: /recyclarr/recyclarr: No such file or directory
04/11/2024
03:17:37 AM
./run: line 41: log: command not found
04/11/2024
03:17:37 AM
./run: line 52: log: command not found
04/11/2024
03:17:37 AM
./run: line 59: ./run: line 36: log: command not found
04/11/2024
03:17:37 AM
log: command not found
04/11/2024
03:17:37 AM
./run: line 87: log: command not found
04/11/2024
03:17:37 AM
./run: line 35: log: command not found
04/11/2024
03:17:37 AM
./run: line 67: log: command not found
04/11/2024
03:17:37 AM
./run: line 55: log: command not found
04/11/2024
03:17:37 AM
./run: line 60: log: command not found
04/11/2024
03:17:37 AM
./run: line 147: log: command not found
04/11/2024
03:17:37 AM
./run: line 55: log: command not found./run: line 62: log: command not found
04/11/2024
03:17:37 AM
04/11/2024
03:17:37 AM
./run: line 66: log: command not found
04/11/2024
03:17:37 AM
./run: line 72: log: command not found
04/11/2024
03:17:37 AM
./run: line 76: log: command not found
04/11/2024
03:17:37 AM
./run: line 82: log: command not found
04/11/2024
03:17:37 AM
./run: line 88: log: command not found
04/11/2024
03:17:37 AM
./run: line 94: log: command not found
04/11/2024
03:17:37 AM
./run: line 100: log: command not found
04/11/2024
03:17:37 AM
./run: line 106: log: command not found
04/11/2024
03:17:37 AM
./run: line 113: log: command not found
04/11/2024
03:17:37 AM
./run: line 115: log: command not found
04/11/2024
03:17:38 AM
[Info] Bootstrap: Starting Sonarr - /app/sonarr/bin/Sonarr - Version 4.0.3.1413 
04/11/2024
03:17:38 AM
[Info] AppFolderInfo: Data directory is being overridden to [/config] 
04/11/2024
03:17:38 AM
[Debug] Bootstrap: Console selected 
04/11/2024
03:17:38 AM
[Info] AppFolderInfo: Data directory is being overridden to [/config] 
04/11/2024
03:17:39 AM
[Info] AppFolderInfo: Data directory is being overridden to [/config] 
04/11/2024
03:17:39 AM
[Info] MigrationController: *** Migrating data source=/config/sonarr.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 *** 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: DatabaseEngineVersionCheck migrating 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: PerformDBOperation  
04/11/2024
03:17:39 AM
[Info] NzbDrone.Core.Datastore.Migration.Framework.NzbDroneSQLiteProcessor: Performing DB Operation 
04/11/2024
03:17:39 AM
[Info] DatabaseEngineVersionCheck: SQLite 3.44.2 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: => 0.3837396s 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: DatabaseEngineVersionCheck migrated 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: => 0.3873915s 
04/11/2024
03:17:39 AM
[Debug] MigrationController: Took: 00:00:00.5698630 
04/11/2024
03:17:39 AM
[Debug] Microsoft.Extensions.Hosting.Internal.Host: Hosting starting 
04/11/2024
03:17:39 AM
[Info] MigrationController: *** Migrating data source=/config/logs.db;cache size=-20000;datetimekind=Utc;journal mode=Wal;pooling=True;version=3;busytimeout=100 *** 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: DatabaseEngineVersionCheck migrating 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: PerformDBOperation  
04/11/2024
03:17:39 AM
[Info] NzbDrone.Core.Datastore.Migration.Framework.NzbDroneSQLiteProcessor: Performing DB Operation 
04/11/2024
03:17:39 AM
[Info] DatabaseEngineVersionCheck: SQLite 3.44.2 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: => 0.0040108s 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: DatabaseEngineVersionCheck migrated 
04/11/2024
03:17:39 AM
[Info] FluentMigrator.Runner.MigrationRunner: => 0.004554s 
04/11/2024
03:17:40 AM
[Info] Microsoft.Hosting.Lifetime: Now listening on: http://[::]:8989 
04/11/2024
03:17:40 AM
[ls.io-init] done.
04/11/2024
03:17:41 AM
[Info] Microsoft.Hosting.Lifetime: Application started. Press Ctrl+C to shut down. 
04/11/2024
03:17:41 AM
[Info] Microsoft.Hosting.Lifetime: Hosting environment: Production 
04/11/2024
03:17:41 AM
[Info] Microsoft.Hosting.Lifetime: Content root path: /app/sonarr/bin 
04/11/2024
03:17:41 AM
[Info] ManagedHttpDispatcher: IPv4 is available: True, IPv6 will be disabled 
04/11/2024
03:18:23 AM
[Info] Sonarr.Http.Authentication.ApiKeyAuthenticationHandler: AuthenticationScheme: API was challenged. 
04/11/2024
03:18:23 AM
[Info] Sonarr.Http.Authentication.ApiKeyAuthenticationHandler: AuthenticationScheme: API was challenged. 
shedman214 commented 6 months ago

This is my config image

RandomNinjaAtk commented 6 months ago

Again, please re-read the installation instructions and follow it to a T. The problems you're having are caused by not following the installation instructions. The picture and logs you posted are evidence of that.

shedman214 commented 6 months ago

I promise I have read the steps to the T and the only thing I can think of being bad is my folders setup. I use an unpaid server. could this be the culprit of my bad setup? image

shedman214 commented 6 months ago

Again, please re-read the installation instructions and follow it to a T. The problems you're having are caused by not following the installation instructions. The picture and logs you posted are evidence of that.

I got further this time as my functions file has a broken pipe as in the logs states.

04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/functions: line 21: xq: command not found 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: cat: write error: Broken pipe 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/functions: line 27: xq: command not found 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: cat: write error: Broken pipe 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/functions: line 28: xq: command not found 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: cat: write error: Broken pipe 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/functions: line 29: xq: command not found 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: cat: write error: Broken pipe 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/DailySeriesEpisodeTrimmer.bash: line 50: [: !=: unary operator expected 
04/12/2024
11:52:58 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/DailySeriesEpisodeTrimmer.bash: line 56: [: !=: unary operator expected 
04/12/2024
11:52:58 AM
[Error] Extras.bash: /config/extended/functions: line 21: xq: command not found 
04/12/2024
11:52:58 AM
[Error] Extras.bash: cat: write error: Broken pipe 
04/12/2024
11:52:58 AM
[Error] Extras.bash: /config/extended/functions: line 27: xq: command not found 
04/12/2024
11:52:58 AM
[Error] Extras.bash: cat: write error: Broken pipe 
04/12/2024
11:52:58 AM
[Error] Extras.bash: /config/extended/functions: line 28: xq: command not found 
04/12/2024
11:52:58 AM
[Error] Extras.bash: cat: write error: Broken pipe 
04/12/2024
11:52:58 AM
[Error] Extras.bash: /config/extended/functions: line 29: xq: command not found 
04/12/2024
11:52:58 AM
[Error] Extras.bash: cat: write error: Broken pipe 
04/12/2024
11:52:58 AM
[Error] Extras.bash: jq: error (at <stdin>:0): Cannot iterate over null (null) 
04/12/2024
11:52:59 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/functions: line 21: xq: command not found 
04/12/2024
11:52:59 AM
[Error] DailySeriesEpisodeTrimmer.bash: cat: write error: Broken pipe 
04/12/2024
11:52:59 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/functions: line 27: xq: command not found 
04/12/2024
11:52:59 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/functions: line 28: xq: command not found 
04/12/2024
11:52:59 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/functions: line 29: xq: command not found 
04/12/2024
11:52:59 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/DailySeriesEpisodeTrimmer.bash: line 50: [: !=: unary operator expected 
04/12/2024
11:52:59 AM
[Error] DailySeriesEpisodeTrimmer.bash: /config/extended/DailySeriesEpisodeTrimmer.bash: line 56: [: !=: unary operator expected 
04/12/2024
11:52:59 AM
[Error] Extras.bash: /config/extended/functions: line 21: xq: command not found 
RandomNinjaAtk commented 6 months ago

The logs still indicate that the init script and setup script are not running, which installs all the dependencies. So it's still a problem following the installation instructions.

When you first start the container, watch the logs from unraid, if you don't see it downloading the scripts and installing the dependencies, that is your problem. Nothing to be done on this end though...

shedman214 commented 6 months ago

I figured it out and got it working, but now I have a new issue. The scripts are filling up my docker images/containers storage. is there a method to move the scripts to not be on the docker and use my actual media folder for downloading? image

RandomNinjaAtk commented 6 months ago

Shouldn't be possible because the /config folder should be mounted to your storage... Make sure configured the container properly.

Closing, root issue resolved and confirmed as user-error.