RandomNinjaAtk / arr-scripts

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

[BUG] -LIDARR - /run: line 1601: [: : integer expression expected #180

Closed norgur closed 10 months ago

norgur commented 10 months ago

Application Lidarr

Host platform Docker/Raspbian (Host)

Script AudioService.bash (pobably)

Script Version latest

Describe the bug Every query with Tidal fails because the Damerau-Levenstein-Instance seems not to return an Integer: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

To Reproduce Unknown

Expected behavior Tidal Matching working again

Logs/Screenshots 2024-02-06 14:35:55 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs BADASS :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:55 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs BADASS :: Checking for Match...

2024-02-06 14:35:55 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs BADASS :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:55 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs BADASS :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs TeenageDream2 :: Checking for Match...

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs TeenageDream2 :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs TeenageDream2 :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs DemonHigh :: Checking for Match...

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs DemonHigh :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs DemonHigh :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs DemonHigh :: Checking for Match...

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs DemonHigh :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs DemonHigh :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Checking for Match...

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Checking for Match...

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:56 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Checking for Match...

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs bbycakes :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Checking for Match...

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Checking for Match...

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Checking for Match...

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs Heavy :: Tidal Match Not Found :: Calculated Difference () greater than 5

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs OverYourHead :: Checking for Match...

2024-02-06 14:35:57 :: Audio :: 2.31 :: 1 :: missing :: 5 of 844 :: Lil Uzi Vert :: Endless Fashion :: Single :: Artist Search :: Tidal :: Clean :: Endless Fashion :: EndlessFashion vs OverYourHead :: Calculating Damerau-Levenshtein distance...

./run: line 1601: [: : integer expression expected

Additional context Add any other context about the problem here.

NOTE Your request will not be addressed without proper detail and logs. Always make sure you have updated to the latest script versions before opening an issue or your issue will not be reviewed.

RandomNinjaAtk commented 10 months ago

If your on an ARM based platform, which seems like you are based on the OS... so that might be the issue... ARM is untested and I don't provide support for it for that reason....

norgur commented 10 months ago

Sorry for the confusion, I made a mistake there. This particular Lidarr instance is not running on Raspbian, but on Debian Bookworm on AMD64 and the downloader was working just fine before.

RandomNinjaAtk commented 10 months ago

hmm, try updating the image and force restarting the container. Make sure there are no errors in the setup script that installs dependencies needed, because the error is a result of a function not working... which requires a certain package to be installed.

Reference for changes: https://github.com/RandomNinjaAtk/arr-scripts/pull/173

The error is not reproducible in my own setup... So forcing an image update, and restarting the container a couple times to ensure you have all updates might be all that is needed....

Just some thoughts...

norgur commented 10 months ago

No use, sadly. I didn't spot any errors during startup or the like, restarted at least 10 times, removed the extended folder and config and the contents of the custom-services-folder, issue persists

RandomNinjaAtk commented 10 months ago

Where it should be failing is this line: https://github.com/RandomNinjaAtk/arr-scripts/blob/6cbec2ad330fb6d006ba1a962d23155eb4dbe9ff/lidarr/Audio.service.bash#L1455

You probably need to see if you can run the python command from the CLI to troubleshoot further, replace variables and etc....

RandomNinjaAtk commented 10 months ago

Something I thought of... Are you using the init script? (which is in the instructions for configuration)

If your not, maybe your not pulling the latest setup script which install the dependencies....

norgur commented 10 months ago

pyxdameraulevenshtein was missing. I am using the init script and I didn't notice any errors during startup/dependency setup. I installed the dependency manually and it works for now.

RandomNinjaAtk commented 10 months ago

Hmm, the init script runs the latest setup script from online... So not sure why I didn't just work for you... Probably something for you to investigate further as I cannot reproduce the problem...

So something unique to your setup/config....

norgur commented 10 months ago

Oh dear this is embarrassing. I corrected the missing " in one of your latest commits and thus forked the repo. To correct the error on my end, I changed the setup script to pull the forked one instead of your's... thank you very much for your time, I'm going to facepalm for the rest of the evening now.