RandomNinjaAtk / docker-lidarr-extended

lidarr-extended :: Lidarr application packaged with multiple scripts to provide additional functionality
GNU General Public License v3.0
275 stars 24 forks source link

No Plex Music Type libraries found #161

Closed PutzJimmy closed 1 year ago

PutzJimmy commented 1 year ago

Hi. Trying to get the PlexNotify.bash working but stuck on:

2022-12-14 12:16:03 :: PlexNotify :: 1.0.6 :: Plex Connection Established, version: 2022-12-14 12:16:09 :: PlexNotify :: 1.0.6 :: ERROR: No Plex Music Type libraries found 2022-12-14 12:16:09 :: PlexNotify :: 1.0.6 :: ERROR: Exiting...

RandomNinjaAtk commented 1 year ago

Seems like you have a user configuration error somewhere. For it to work, you must have a library in Plex that is the music type and also have the same root folder that is configured in lidarr, configured in the plex music library.

PutzJimmy commented 1 year ago

I have a music library called Music and it shares the same mount as the other dockers /Media Does it need to be in the music folder as in /Media/Music?

RandomNinjaAtk commented 1 year ago

Does the script provide you a Plex Version number? Or is it blank? Like in the log output you posted...

If the version number isn't showing, try updating your token... because you should be getting a version number and it could indicate a connectivity issue.

Honestly, here is the code that looks for it: https://github.com/RandomNinjaAtk/docker-lidarr-extended/blob/bdf8f5b04ccb00e4000e453b963388b27b1f81e3/root/scripts/PlexNotify.bash#L42-L53

Because everyone's plex configuration is different, it may just be something unique to your setup and I won't likely be able to replicate to troubleshoot it further.

PutzJimmy commented 1 year ago

Nope it just repeats what i pasted above over and over, no version number. Config has the correct adress and token verified working in other programs. Triggering a test from inside Lidarr gives 2022-12-14 12:49:30 :: PlexNotify :: 1.0.6 :: Tested Successfully

RandomNinjaAtk commented 1 year ago

Triggering a test won't do anything based on how Arr apps are designed. But it sounds like its not connecting. So make sure you have no extra whitespace before/after the URL and token in your docker parameter config. Also, the url should not contain a trailing "/", so make sure its like: http://x.x.x.x:32400.

Edit: If you cannot copy/paste the URL into a web browser and access the local hosted web app, then that is non working URL and why it cannot connect...

PutzJimmy commented 1 year ago

They are correctly filled in checked like 50 times already lol. Adress works in firefox+chrome. Overseerr and tautilli works fine connecting with same info

RandomNinjaAtk commented 1 year ago

Idk, nothing more I can do without having the XML data from your specific config to troubleshoot further...

curl -s "$plexUrl/library/sections?X-Plex-Token=$plexToken" Replace the variables $plexUrl and $plexToken with your information and post the output.

PutzJimmy commented 1 year ago

https://pastebin.com/WXRGaN2G

RandomNinjaAtk commented 1 year ago

Based on the existing code and the file you provided, found no errors with the code. So my only guess is still an issue with establishing the connection that is currently not detected...

I have just pushed a change based on some testing to better detect an error with connecting. I believe this all boils down to a connection issue... So my suggestion would be to update after the new image is out in the next 20 or so minutes and see if you get an error message about the connection. If you do, I'd suggest reviewing your docker parameters for whitespace issue, trying a new token...

You'll also see what it shows is the token/url so you can check it more easily for whitespace or typo error...

PutzJimmy commented 1 year ago

Found the error now, for some reason the dockers from you ended up in a different docker network that was not in the firewall allow on the server hosting plex... Thx for the help =) 2022-12-15 01:47:41 :: PlexNotify :: 1.0.7 :: Plex Connection Established, version: 1.30.1.6483-85af1e381 2022-12-15 01:47:58 :: PlexNotify :: 1.0.7 :: Plex Scan notification sent! (5 :: /Media/Music/Iggy Pop)

RandomNinjaAtk commented 1 year ago

@PutzJimmy Glad you figured it out, I did improve the connection validation test, so it should have at least reported a connection error to help find the problem in the future for other users because it did not account for some edge case scenarios that are now accounted for...