Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Seasonal Collection is failing #1636

Closed
joecan2 opened this issue Oct 4, 2023 · 40 comments
Closed

Seasonal Collection is failing #1636

joecan2 opened this issue Oct 4, 2023 · 40 comments
Assignees
Labels
bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet

Comments

@joecan2
Copy link

joecan2 commented Oct 4, 2023

Version Number

1.19.1

What branch are you on?

master

Describe the Bug

The PMM Seasonal collection should have added a Halloween collection on 10/1, but is failing. When PMM gets to the Validating Method: append_label section, it pulls Value: Seasonal and then several errors pop up, eventually ending with a (404) not_found exception.

Relevant Collection/Overlay/Playlist Definition

[2023-10-03 21:37:19,064] [builder.py:198]            [INFO]     |====================================================================================================|
[2023-10-03 21:37:19,066] [builder.py:198]            [INFO]     |                               Halloween Movies Collection in Movies                                |
[2023-10-03 21:37:19,068] [builder.py:198]            [INFO]     |====================================================================================================|
[2023-10-03 21:37:19,069] [builder.py:199]            [INFO]     |                                                                                                    |
[2023-10-03 21:37:19,071] [builder.py:210]            [INFO]     |================================ Building Definition From Templates ================================|
[2023-10-03 21:37:19,073] [builder.py:211]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,075] [builder.py:221]            [DEBUG]    | Templates Called: holiday, shared, arr                                                             |
[2023-10-03 21:37:19,076] [builder.py:222]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,111] [meta.py:355]               [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,113] [meta.py:356]               [DEBUG]    | Conditional: name_<<key>>                                                                          |
[2023-10-03 21:37:19,115] [meta.py:355]               [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,116] [meta.py:356]               [DEBUG]    | Conditional: summary_<<key>>                                                                       |
[2023-10-03 21:37:19,152] [meta.py:571]               [DEBUG]    |==================================== Final Template Attributes =====================================|
[2023-10-03 21:37:19,153] [meta.py:572]               [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,155] [meta.py:573]               [DEBUG]    | {'smart_label': {'sort_by': 'random', 'all': {'label': '<<smart_label>>'}}, 'schedule': 'range(10/01-10/31)', 'delete_not_scheduled': True, 'sync_mode': 'sync', 'tmdb_collection': [185103, 11716, 750822, 313086, 91361, 8581, 1733, 8091, 2980, 751156], 'tmdb_movie': [23437], 'imdb_list': ['https://www.imdb.com/list/ls023118929/', 'https://www.imdb.com/list/ls000099714/'], 'cache_builders': 1, 'translation_key': 'seasonal', 'key_name': 'Halloween', 'translation_prefix': '🎃 ', 'ignore_blank_results': True, 'visible_home': True, 'visible_shared': True, 'sort_title': '!00_<<title>>', 'url_poster': 'https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/seasonal/halloween.jpg'} |
[2023-10-03 21:37:19,157] [meta.py:574]               [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,158] [builder.py:238]            [INFO]     |============================== Validating Halloween Movies Attributes ==============================|
[2023-10-03 21:37:19,160] [builder.py:277]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,162] [builder.py:278]            [DEBUG]    | Validating Method: key_name                                                                        |
[2023-10-03 21:37:19,163] [builder.py:291]            [DEBUG]    | Value: Halloween                                                                                   |
[2023-10-03 21:37:19,165] [builder.py:303]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,166] [builder.py:304]            [DEBUG]    | Validating Method: translation_key                                                                 |
[2023-10-03 21:37:19,168] [builder.py:307]            [DEBUG]    | Value: seasonal                                                                                    |
[2023-10-03 21:37:19,170] [builder.py:320]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,171] [builder.py:321]            [DEBUG]    | Validating Method: translation_prefix                                                              |
[2023-10-03 21:37:19,172] [builder.py:322]            [DEBUG]    | Value: 🎃                                                                                           |
[2023-10-03 21:37:19,174] [builder.py:387]            [INFO]     | 🎃 Halloween Movies                                                                                 |
[2023-10-03 21:37:19,181] [plex.py:985]               [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,183] [plex.py:988]               [DEBUG]    | Looking for: 🎃 Halloween Movies                                                                    |
[2023-10-03 21:37:19,184] [builder.py:631]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,186] [builder.py:632]            [DEBUG]    | Validating Method: ignore_blank_results                                                            |
[2023-10-03 21:37:19,187] [builder.py:633]            [DEBUG]    | Value: True                                                                                        |
[2023-10-03 21:37:19,189] [builder.py:641]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,191] [builder.py:642]            [DEBUG]    | Validating Method: smart_label                                                                     |
[2023-10-03 21:37:19,192] [builder.py:647]            [DEBUG]    | Value: {'sort_by': 'random', 'all': {'label': '<<smart_label>>'}}                                  |
[2023-10-03 21:37:19,200] [builder.py:668]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,202] [builder.py:669]            [DEBUG]    | Validating Method: delete_not_scheduled                                                            |
[2023-10-03 21:37:19,204] [builder.py:670]            [DEBUG]    | Value: True                                                                                        |
[2023-10-03 21:37:19,206] [builder.py:687]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,208] [builder.py:688]            [DEBUG]    | Validating Method: schedule                                                                        |
[2023-10-03 21:37:19,210] [builder.py:692]            [DEBUG]    | Value: range(10/01-10/31)                                                                          |
[2023-10-03 21:37:19,213] [builder.py:747]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,214] [builder.py:748]            [DEBUG]    | Validating Method: sync_mode                                                                       |
[2023-10-03 21:37:19,216] [builder.py:752]            [DEBUG]    | Value: sync                                                                                        |
[2023-10-03 21:37:19,218] [builder.py:958]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,220] [builder.py:962]            [DEBUG]    | Validating Method: tmdb_collection                                                                 |
[2023-10-03 21:37:19,222] [builder.py:963]            [DEBUG]    | Value: [185103, 11716, 750822, 313086, 91361, 8581, 1733, 8091, 2980, 751156]                      |
[2023-10-03 21:37:19,551] [builder.py:958]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:19,553] [builder.py:962]            [DEBUG]    | Validating Method: tmdb_movie                                                                      |
[2023-10-03 21:37:19,555] [builder.py:963]            [DEBUG]    | Value: [23437]                                                                                     |
[2023-10-03 21:37:21,175] [builder.py:958]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:21,177] [builder.py:962]            [DEBUG]    | Validating Method: imdb_list                                                                       |
[2023-10-03 21:37:21,179] [builder.py:963]            [DEBUG]    | Value: ['https://www.imdb.com/list/ls023118929/', 'https://www.imdb.com/list/ls000099714/']        |
[2023-10-03 21:37:25,370] [builder.py:958]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:25,372] [builder.py:962]            [DEBUG]    | Validating Method: cache_builders                                                                  |
[2023-10-03 21:37:25,374] [builder.py:963]            [DEBUG]    | Value: 1                                                                                           |
[2023-10-03 21:37:25,375] [builder.py:958]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:25,377] [builder.py:962]            [DEBUG]    | Validating Method: visible_home                                                                    |
[2023-10-03 21:37:25,378] [builder.py:963]            [DEBUG]    | Value: True                                                                                        |
[2023-10-03 21:37:25,379] [builder.py:958]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:25,381] [builder.py:962]            [DEBUG]    | Validating Method: visible_shared                                                                  |
[2023-10-03 21:37:25,383] [builder.py:963]            [DEBUG]    | Value: True                                                                                        |
[2023-10-03 21:37:25,384] [builder.py:958]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:25,386] [builder.py:962]            [DEBUG]    | Validating Method: sort_title                                                                      |
[2023-10-03 21:37:25,387] [builder.py:963]            [DEBUG]    | Value: !00_<<title>>                                                                               |
[2023-10-03 21:37:25,388] [builder.py:958]            [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:25,390] [builder.py:962]            [DEBUG]    | Validating Method: url_poster                                                                      |
[2023-10-03 21:37:25,391] [builder.py:963]            [DEBUG]    | Value: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/seasonal/halloween.jpg |
[2023-10-03 21:37:25,507] [builder.py:1064]           [DEBUG]    |                                                                                                    |
[2023-10-03 21:37:25,510] [builder.py:1065]           [DEBUG]    | Validating Method: append_label                                                                    |
[2023-10-03 21:37:25,511] [builder.py:1066]           [DEBUG]    | Value: Seasonal                                                                                    |
[2023-10-03 21:37:25,527] [plex_meta_manager.py:819]  [DEBUG]    | Traceback (most recent call last):                                                                 |
                                                                 |   File "/app/pmm/plex_meta_manager.py", line 677, in run_collection                                |
                                                                 |     builder = CollectionBuilder(config, metadata, mapping_name, collection_attrs, library=library, extra=output_str) |
                                                                 |               ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
                                                                 |   File "/app/pmm/modules/builder.py", line 1126, in __init__                                       |
                                                                 |     self.beginning_count = len(self.library.fetchItems(check_url))                                 |
                                                                 |                                ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                  |
                                                                 |   File "/lsiopy/lib/python3.11/site-packages/retrying.py", line 56, in wrapped_f                   |
                                                                 |     return Retrying(*dargs, **dkw).call(f, *args, **kw)                                            |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                            |
                                                                 |   File "/lsiopy/lib/python3.11/site-packages/retrying.py", line 257, in call                       |
                                                                 |     return attempt.get(self._wrap_exception)                                                       |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                       |
                                                                 |   File "/lsiopy/lib/python3.11/site-packages/retrying.py", line 301, in get                        |
                                                                 |     six.reraise(self.value[0], self.value[1], self.value[2])                                       |
                                                                 |   File "/lsiopy/lib/python3.11/site-packages/six.py", line 719, in reraise                         |
                                                                 |     raise value                                                                                    |
                                                                 |   File "/lsiopy/lib/python3.11/site-packages/retrying.py", line 251, in call                       |
                                                                 |     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)                                  |
                                                                 |                       ^^^^^^^^^^^^^^^^^^^                                                          |
                                                                 |   File "/app/pmm/modules/plex.py", line 566, in fetchItems                                         |
                                                                 |     return self.Plex.fetchItems(f"/library/sections/{self.Plex.key}/all{uri_args}")                |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                |
                                                                 |   File "/lsiopy/lib/python3.11/site-packages/plexapi/base.py", line 255, in fetchItems             |
                                                                 |     data = self._server.query(ekey, headers=headers)                                               |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                               |
                                                                 |   File "/lsiopy/lib/python3.11/site-packages/plexapi/server.py", line 760, in query                |
                                                                 |     raise NotFound(message)                                                                        |
                                                                 | plexapi.exceptions.NotFound: (404) not_found; (redacted)/library/sections/1/allNone <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html> |
                                                                 |                                                                                                    |
[2023-10-03 21:37:25,568] [plex_meta_manager.py:820]  [ERROR]    | Unknown Error: (404) not_found; (redacted)/library/sections/1/allNone <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html> |
[2023-10-03 21:37:25,569] [plex_meta_manager.py:825]  [INFO]     |                                                                                                    |
[2023-10-03 21:37:25,570] [plex_meta_manager.py:826]  [INFO]     |====================================================================================================|
[2023-10-03 21:37:25,572] [plex_meta_manager.py:826]  [INFO]     |                                Finished Halloween Movies Collection                                |
[2023-10-03 21:37:25,573] [plex_meta_manager.py:826]  [INFO]     |                                    Collection Run Time: 0:00:06                                    |
[2023-10-03 21:37:25,575] [plex_meta_manager.py:826]  [INFO]     |====================================================================================================|

Logs

https://gist.github.com/joecan2/2449c847d966a91c1270e6ed19d61a94

@joecan2 joecan2 added bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet labels Oct 4, 2023
@chazlarson
Copy link
Contributor

This only shows up in Plex 1.32.7 and on the PMM side is fixed in latest nightly.

@mattyteds
Copy link

I'm on Plex 1.32.7 and running 1.19.1-nightly12 and I'm also getting this 404 error.
meta.log

@benfishbus
Copy link

Any temporary workaround?

@josst10
Copy link

josst10 commented Oct 15, 2023

I'd love to know the same. My family is lost without the Halloween movie collection, and I really don't want to do my own without knowing if I may run into the same issue. Thanks!

@mattyteds
Copy link

I think my issue was unrelated. I had empty placeholder collections for the collections I was trying to build. I deleted those and all my 404 errors vanished and collections were built

@benfishbus
Copy link

I think my issue was unrelated. I had empty placeholder collections for the collections I was trying to build. I deleted those and all my 404 errors vanished and collections were built

Thanks, I will update to the nightly branch and see what happens...

@benfishbus
Copy link

I think my issue was unrelated. I had empty placeholder collections for the collections I was trying to build. I deleted those and all my 404 errors vanished and collections were built

Thanks, I will update to the nightly branch and see what happens...

Now on nightly branch, I get a different (500) error when Halloween collection runs:

[2023-10-15 17:20:18,230] [builder.py:2483]           [INFO]     |============================= Adding to 🎃 Halloween Movies Collection ==============================|
[2023-10-15 17:20:18,230] [builder.py:2484]           [INFO]     |                                                                                                    |
[2023-10-15 17:20:18,253] [plex_meta_manager.py:812]  [DEBUG]    | Traceback (most recent call last):                                                                 |
                                                                 |   File "//plex_meta_manager.py", line 708, in run_collection                                       |
                                                                 |     items_added, items_unchanged = builder.add_to_collection()                                     |
                                                                 |                                    ^^^^^^^^^^^^^^^^^^^^^^^^^^^                                     |
                                                                 |   File "/modules/builder.py", line 2485, in add_to_collection                                      |
                                                                 |     name, collection_items = self.library.get_collection_name_and_items(self.obj if self.obj else self.name, self.smart_label_collection) |
                                                                 |                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
                                                                 |   File "/modules/plex.py", line 1140, in get_collection_name_and_items                             |
                                                                 |     return name, self.get_collection_items(collection, smart_label_collection)                     |
                                                                 |                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                     |
                                                                 |   File "/modules/plex.py", line 1129, in get_collection_items                                      |
                                                                 |     return self.search(label=collection.title if isinstance(collection, Collection) else str(collection)) |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
                                                                 |   File "/usr/local/lib/python3.11/site-packages/retrying.py", line 56, in wrapped_f                |
                                                                 |     return Retrying(*dargs, **dkw).call(f, *args, **kw)                                            |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                            |
                                                                 |   File "/usr/local/lib/python3.11/site-packages/retrying.py", line 257, in call                    |
                                                                 |     return attempt.get(self._wrap_exception)                                                       |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                                       |
                                                                 |   File "/usr/local/lib/python3.11/site-packages/retrying.py", line 301, in get                     |
                                                                 |     six.reraise(self.value[0], self.value[1], self.value[2])                                       |
                                                                 |   File "/usr/local/lib/python3.11/site-packages/six.py", line 719, in reraise                      |
                                                                 |     raise value                                                                                    |
                                                                 |   File "/usr/local/lib/python3.11/site-packages/retrying.py", line 251, in call                    |
                                                                 |     attempt = Attempt(fn(*args, **kwargs), attempt_number, False)                                  |
                                                                 |                       ^^^^^^^^^^^^^^^^^^^                                                          |
                                                                 |   File "/modules/plex.py", line 544, in search                                                     |
                                                                 |     return self.Plex.search(title=title, sort=sort, maxresults=maxresults, libtype=libtype, **kwargs) |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
                                                                 |   File "/usr/local/lib/python3.11/site-packages/plexapi/library.py", line 1517, in search          |
                                                                 |     return self.fetchItems(                                                                        |
                                                                 |            ^^^^^^^^^^^^^^^^                                                                        |
                                                                 |   File "/usr/local/lib/python3.11/site-packages/plexapi/base.py", line 255, in fetchItems          |
                                                                 |     data = self._server.query(ekey, headers=headers)                                               |
                                                                 |            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^                                               |
                                                                 |   File "/usr/local/lib/python3.11/site-packages/plexapi/server.py", line 770, in query             |
                                                                 |     raise BadRequest(message)                                                                      |
                                                                 | plexapi.exceptions.BadRequest: (500) internal_server_error; (redacted)/library/sections/37/all?includeGuids=1&label=%F0%9F%8E%83+Halloween+Movies <html><head><title>Internal Server Error</title></head><body><h1>500 Internal Server Error</h1></body></html> |
                                                                 |                                                                                                    |
[2023-10-15 17:20:18,259] [plex_meta_manager.py:813]  [ERROR]    | Unknown Error: (500) internal_server_error; (redacted)/library/sections/37/all?includeGuids=1&label=%F0%9F%8E%83+Halloween+Movies <html><head><title>Internal Server Error</title></head><body><h1>500 Internal Server Error</h1></body></html> |
[2023-10-15 17:20:18,260] [plex_meta_manager.py:818]  [INFO]     |                                                                                                    |
[2023-10-15 17:20:18,260] [plex_meta_manager.py:819]  [INFO]     |====================================================================================================|
[2023-10-15 17:20:18,260] [plex_meta_manager.py:819]  [INFO]     |                                Finished Halloween Movies Collection                                |
[2023-10-15 17:20:18,260] [plex_meta_manager.py:819]  [INFO]     |                                    Collection Run Time: 0:00:28                                    |
[2023-10-15 17:20:18,260] [plex_meta_manager.py:819]  [INFO]     |====================================================================================================|

@josst10
Copy link

josst10 commented Oct 15, 2023

My 404 turned into a 500 as well on the nightly.

@johall07
Copy link

If you visit your library manually in browser the first request to that "all" URL fails without any response, then another request immediately after to the same URL is successful. I briefly looked at the actual request and they seemed to be identical, so not sure about the first failure.

I assumed that's what @chazlarson was referring to being broken on the Plex side, but if not hope this may be of help.

Latest nightly.

@chazlarson
Copy link
Contributor

chazlarson commented Oct 18, 2023

I was referring to this:

/library/sections/1/allNone

PMM had a bug where it was inappropriately adding that None onto the URL. Starting in 1.32.7, Plex returns a 404 on that URL [with the None tacked on], where previous versions [of Plex] did not. That PMM bug has been fixed in nightly, but it only caused a problem with Plex 1.32.7. The 500 is unrelated.

@chazlarson
Copy link
Contributor

This error:

[ERROR]    | Unknown Error: (500) internal_server_error; (redacted)/library/sections/37/all?includeGuids=1&label=%F0%9F%8E%83+Halloween+Movies <html><head><title>Internal Server Error

Is being returned by Plex 1.32.7 apparently when PMM tries to retrieve all items that have a label which does not exist in the library. There have been no PMM changes here, so the change is entirely on Plex' side. Perhaps PMM can come up with a way to address it, but for now downgrading Plex or manually applying the label to something in the library appears to be the workaround.

@YozoraXCII
Copy link
Contributor

Try manually applying this label to an item in the library and re-running PMM, see if the 500 is still there

🎃 Halloween Movies

@johall07
Copy link

Unsuccessful, but I am on 1.32.7. I can downgrade and test later, but it seems chaz has already confirmed its 1.32.7 causing it.

@josst10
Copy link

josst10 commented Oct 18, 2023

Try manually applying this label to an item in the library and re-running PMM, see if the 500 is still there

🎃 Halloween Movies

That worked for me! I'm on the PMM nightly and my Plex is version 1.32.7.7571 (ghcr.io/hotio/plex on unraid). I added '🎃 Halloween Movies' to Hubie Halloween and it ran like old times.

Thanks so much!

@benfishbus
Copy link

benfishbus commented Oct 18, 2023 via email

@johall07
Copy link

I'm using linuxserver so maybe some difference there. I'll give it another try later.

@chazlarson
Copy link
Contributor

chazlarson commented Oct 18, 2023

The linuxserver image shows some idiosyncratic behavior; generally we recommend using the official image since they behave differently and we have no control over whatever they're doing over there. Notably, you can't use the nightly [or develop] branch with the linuxserver image, and manual runs will loop endlessly.

@johall07
Copy link

I forgot about that as it didn't matter to me during my initial setup. I'll make the switch and retest. Thanks for the heads up.

@cj0r
Copy link

cj0r commented Nov 5, 2023

Confirmed same issue. Switching to nightly and applying the label to one movie before running allowed it to run as usual.

@webdes03
Copy link

webdes03 commented Nov 5, 2023

Confirmed same issue. Switching to nightly and applying the label to one movie before running allowed it to run as usual.

Same here. Switched to nightly and it looks like if the label doesn't already exist that's when it dies. Adding all of the seasonal labels to one movie let it finish.

@chazlarson
Copy link
Contributor

Yep, this is a regression on the plex side in 1.32.7.

Your options are:

  1. Downgrade to 1.32.6
  2. Upgrade to 1.32.8 beta
  3. Apply relevant sharing label[s] to any one item in each library.

@johall07
Copy link

johall07 commented Nov 6, 2023

Finally switched and tested. 1.32.8 + nightly working correctly as outlined above.

@glassbase
Copy link

I am on PMM nightly and Plex beta1.3.8 and still receiving the error above. What else to try?

@chazlarson
Copy link
Contributor

I am on PMM nightly and Plex beta1.3.8 and still receiving the error above. What else to try?

You would be the first person to see this. Do you have a log of this happening?

@glassbase
Copy link

Ok it is running without error. My bad.... I was checking under config/logs/Movies/xxxxxx and seeing errors but did not notice it was logs from old runs. Why is it not writing to /config/logs/Movies/xxxxx' or /config/logs/TV Shows/xxxxx' anymore? Weird. Change in nightly?

@chazlarson
Copy link
Contributor

Yes, that is a change in nightly; everything that was in those individual logs is already being written to the main meta.log so they were disabled.

@glassbase
Copy link

Can it be re-enabled with a config?

@chazlarson
Copy link
Contributor

chazlarson commented Nov 8, 2023

I don't think so.

Looks like just removed:
b79ac02

@JoeCotellese
Copy link

I seem to be running into the issue as well:
Plex Server version: 1.32.8.7639
PMM: 1.19.1

| (404) not_found; (redacted)/library/sections/1/allNone <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html> |

@chazlarson
Copy link
Contributor

I seem to be running into the issue as well: Plex Server version: 1.32.8.7639 PMM: 1.19.1

| (404) not_found; (redacted)/library/sections/1/allNone <html><head><title>Not Found</title></head><body><h1>404 Not Found</h1></body></html> |

This 404 with allNone in the URL is a bug is PMM, fixed in PMM nightly. Any release of Plex past 1.32.6 will show it until you switch to the nightly release of PMM [or until PMM gets bumped to 1.19.2]

@psychopat81
Copy link

Can PMM 1.19.2 be rolled out? Its also breaking my holiday list, nothing shows up. I tried the latest nightly 1.19.1 and I get this:

[2023-11-26 21:47:12,329] [plex_meta_manager.py:226] [INFO] |====================================================================================================| [2023-11-26 21:47:12,329] [plex_meta_manager.py:227] [INFO] | | [2023-11-26 21:47:12,330] [plex_meta_manager.py:228] [INFO] | ____ _ __ __ _ __ __ | [2023-11-26 21:47:12,330] [plex_meta_manager.py:229] [INFO] | | _ \| | _____ __ | \/ | ___| |_ __ _ | \/ | __ _ _ __ __ _ __ _ ___ _ __ | [2023-11-26 21:47:12,330] [plex_meta_manager.py:230] [INFO] | | |_) | |/ _ \ \/ / | |\/| |/ _ \ __/ _ | | |/| |/ | '_ \ / _ |/ ` |/ _ \ '__| |
[2023-11-26 21:47:12,330] [plex_meta_manager.py:231] [INFO] | | __/| | __/> < | | | | __/ || (
| | | | | | (
| | | | | (| | (| | / | |
[2023-11-26 21:47:12,330] [plex_meta_manager.py:232] [INFO] | || ||_
//_\ || ||___|__,| || ||_,|| ||_,|_, |___|| |
[2023-11-26 21:47:12,330] [plex_meta_manager.py:233] [INFO] | |___/ |
[2023-11-26 21:47:12,331] [plex_meta_manager.py:235] [INFO] | Version: 1.19.1-nightly12 (Docker) |
[2023-11-26 21:47:12,447] [plex_meta_manager.py:239] [INFO] | Newest Version: 1.19.1-nightly30 |
[2023-11-26 21:47:12,448] [plex_meta_manager.py:240] [INFO] | PlexAPI library version: 4.15.4 |
[2023-11-26 21:47:12,449] [plex_meta_manager.py:241] [INFO] | Platform: Linux-6.1.49-Unraid-x86_64-with-glibc2.28 |
[2023-11-26 21:47:12,449] [plex_meta_manager.py:242] [INFO] | Memory: 63 GB |
[2023-11-26 21:47:12,449] [plex_meta_manager.py:265] [DEBUG] |====================================================================================================|

[2023-11-26 21:49:58,277] [builder.py:2483] [INFO] |================================== Adding to Christmas Collection ==================================|
[2023-11-26 21:49:58,277] [builder.py:2484] [INFO] | |
[2023-11-26 21:49:58,290] [plex_meta_manager.py:812] [DEBUG] | Traceback (most recent call last): |
| File "//plex_meta_manager.py", line 708, in run_collection |
| items_added, items_unchanged = builder.add_to_collection() |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/modules/builder.py", line 2485, in add_to_collection |
| name, collection_items = self.library.get_collection_name_and_items(self.obj if self.obj else self.name, self.smart_label_collection) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/modules/plex.py", line 1140, in get_collection_name_and_items |
| return name, self.get_collection_items(collection, smart_label_collection) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/modules/plex.py", line 1129, in get_collection_items |
| return self.search(label=collection.title if isinstance(collection, Collection) else str(collection)) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/retrying.py", line 56, in wrapped_f |
| return Retrying(*dargs, **dkw).call(f, *args, **kw) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/retrying.py", line 257, in call |
| return attempt.get(self._wrap_exception) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/retrying.py", line 301, in get |
| six.reraise(self.value[0], self.value[1], self.value[2]) |
| File "/usr/local/lib/python3.11/site-packages/six.py", line 719, in reraise |
| raise value |
| File "/usr/local/lib/python3.11/site-packages/retrying.py", line 251, in call |
| attempt = Attempt(fn(*args, **kwargs), attempt_number, False) |
| ^^^^^^^^^^^^^^^^^^^ |
| File "/modules/plex.py", line 544, in search |
| return self.Plex.search(title=title, sort=sort, maxresults=maxresults, libtype=libtype, **kwargs) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/plexapi/library.py", line 1517, in search |
| return self.fetchItems( |
| ^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/plexapi/base.py", line 255, in fetchItems |
| data = self._server.query(ekey, headers=headers) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/plexapi/server.py", line 770, in query |
| raise BadRequest(message) |
| plexapi.exceptions.BadRequest: (500) internal_server_error; (redacted)/library/sections/1/all?includeGuids=1&label=Christmas <title>Internal Server Error</title>

500 Internal Server Error

|`

@JohnFawkes
Copy link
Contributor

thats not the latest nightly
thats nightly12 and latest is nightly30

@psychopat81
Copy link

thats not the latest nightly thats nightly12 and latest is nightly30

Thats right, somehow Unraid didnt pull the latest latest one. Managed to update it now:
[2023-11-27 00:15:46,342] [plex_meta_manager.py:228] [INFO] | ____ _ __ __ _ __ __ |
[2023-11-27 00:15:46,342] [plex_meta_manager.py:229] [INFO] | | _ | | _____ __ | / | | | __ _ | / | __ _ _ __ __ _ __ _ ___ _ __ |
[2023-11-27 00:15:46,342] [plex_meta_manager.py:230] [INFO] | | |
) | |/ _ \ / / | |/| |/ _ \ / | | |\/| |/ _ | ' \ / _ |/ _ |/ _ \ '| |
[2023-11-27 00:15:46,342] [plex_meta_manager.py:231] [INFO] | | __/| | __/> < | | | | __/ || (
| | | | | | (| | | | | (| | (| | __/ | |
[2023-11-27 00:15:46,342] [plex_meta_manager.py:232] [INFO] | |
| ||___//_\ || ||_|__,| || ||_,|| ||_,|_, |_|| |
[2023-11-27 00:15:46,343] [plex_meta_manager.py:233] [INFO] | |
__/ |
[2023-11-27 00:15:46,343] [plex_meta_manager.py:235] [INFO] | Version: 1.19.1-nightly30 (Docker) |
[2023-11-27 00:15:46,456] [plex_meta_manager.py:240] [INFO] | PlexAPI library version: 4.15.6 |
[2023-11-27 00:15:46,456] [plex_meta_manager.py:241] [INFO] | Platform: Linux-6.1.49-Unraid-x86_64-with-glibc2.28

Im running PMM again, should this solve the holiday collection issues with the latest plex version?

@JohnFawkes
Copy link
Contributor

as long as your on 1.32.6 or 1.32.8 yes it should. 1.32.7 will not work with labels

@Nammurg
Copy link

Nammurg commented Dec 6, 2023

I am running Plex Version 1.32.8.7639 and I have the same issue with the Christmas collection.
Every other collection seems to be working fine...

[2023-12-06 04:09:21,940] [builder.py:198] [INFO] |====================================================================================================|
[2023-12-06 04:09:21,941] [builder.py:198] [INFO] | Christmas Movies Collection in Movies |
[2023-12-06 04:09:21,942] [builder.py:198] [INFO] |====================================================================================================|
[2023-12-06 04:09:21,943] [builder.py:199] [INFO] | |
[2023-12-06 04:09:21,944] [builder.py:210] [INFO] |================================ Building Definition From Templates ================================|
[2023-12-06 04:09:21,945] [builder.py:211] [DEBUG] | |
[2023-12-06 04:09:21,946] [builder.py:221] [DEBUG] | Templates Called: holiday, shared, arr |
[2023-12-06 04:09:21,947] [builder.py:222] [DEBUG] | |
[2023-12-06 04:09:21,956] [meta.py:355] [DEBUG] | |
[2023-12-06 04:09:21,957] [meta.py:356] [DEBUG] | Conditional: name_<> |
[2023-12-06 04:09:21,958] [meta.py:355] [DEBUG] | |
[2023-12-06 04:09:21,959] [meta.py:356] [DEBUG] | Conditional: summary_<> |
[2023-12-06 04:09:21,970] [meta.py:571] [DEBUG] |==================================== Final Template Attributes =====================================|
[2023-12-06 04:09:21,971] [meta.py:572] [DEBUG] | |
[2023-12-06 04:09:21,972] [meta.py:573] [DEBUG] | {'smart_label': {'sort_by': 'title.asc', 'all': {'label': '<<smart_label>>'}}, 'schedule': 'range(12/01-12/31)', 'delete_not_scheduled': True, 'sync_mode': 'sync', 'imdb_list': 'https://www.imdb.com/list/ls000096828/', 'cache_builders': 1, 'translation_key': 'seasonal', 'key_name': 'Christmas', 'translation_prefix': '🎅 ', 'ignore_blank_results': True, 'visible_home': True, 'visible_shared': True, 'sort_title': '!00_<<title>>', 'url_poster': 'https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/seasonal/christmas.jpg', 'radarr_add_missing': False} |
[2023-12-06 04:09:21,973] [meta.py:574] [DEBUG] | |
[2023-12-06 04:09:21,974] [builder.py:238] [INFO] |============================== Validating Christmas Movies Attributes ==============================|
[2023-12-06 04:09:21,975] [builder.py:277] [DEBUG] | |
[2023-12-06 04:09:21,976] [builder.py:278] [DEBUG] | Validating Method: key_name |
[2023-12-06 04:09:21,977] [builder.py:291] [DEBUG] | Value: Christmas |
[2023-12-06 04:09:21,978] [builder.py:303] [DEBUG] | |
[2023-12-06 04:09:21,979] [builder.py:304] [DEBUG] | Validating Method: translation_key |
[2023-12-06 04:09:21,979] [builder.py:307] [DEBUG] | Value: seasonal |
[2023-12-06 04:09:21,980] [builder.py:320] [DEBUG] | |
[2023-12-06 04:09:21,981] [builder.py:321] [DEBUG] | Validating Method: translation_prefix |
[2023-12-06 04:09:21,982] [builder.py:322] [DEBUG] | Value: 🎅 |
[2023-12-06 04:09:21,983] [builder.py:387] [INFO] | 🎅 Christmas Movies |
[2023-12-06 04:09:21,988] [plex.py:985] [DEBUG] | |
[2023-12-06 04:09:21,989] [plex.py:988] [DEBUG] | Looking for: 🎅 Christmas Movies |
[2023-12-06 04:09:21,990] [builder.py:631] [DEBUG] | |
[2023-12-06 04:09:21,991] [builder.py:632] [DEBUG] | Validating Method: ignore_blank_results |
[2023-12-06 04:09:21,992] [builder.py:633] [DEBUG] | Value: True |
[2023-12-06 04:09:21,992] [builder.py:641] [DEBUG] | |
[2023-12-06 04:09:21,993] [builder.py:642] [DEBUG] | Validating Method: smart_label |
[2023-12-06 04:09:21,994] [builder.py:647] [DEBUG] | Value: {'sort_by': 'title.asc', 'all': {'label': '<<smart_label>>'}} |
[2023-12-06 04:09:21,999] [builder.py:668] [DEBUG] | |
[2023-12-06 04:09:22,001] [builder.py:669] [DEBUG] | Validating Method: delete_not_scheduled |
[2023-12-06 04:09:22,002] [builder.py:670] [DEBUG] | Value: True |
[2023-12-06 04:09:22,002] [builder.py:687] [DEBUG] | |
[2023-12-06 04:09:22,003] [builder.py:688] [DEBUG] | Validating Method: schedule |
[2023-12-06 04:09:22,004] [builder.py:692] [DEBUG] | Value: range(12/01-12/31) |
[2023-12-06 04:09:22,005] [builder.py:747] [DEBUG] | |
[2023-12-06 04:09:22,007] [builder.py:748] [DEBUG] | Validating Method: sync_mode |
[2023-12-06 04:09:22,007] [builder.py:752] [DEBUG] | Value: sync |
[2023-12-06 04:09:22,008] [builder.py:958] [DEBUG] | |
[2023-12-06 04:09:22,009] [builder.py:962] [DEBUG] | Validating Method: imdb_list |
[2023-12-06 04:09:22,010] [builder.py:963] [DEBUG] | Value: https://www.imdb.com/list/ls000096828/ |
[2023-12-06 04:09:26,620] [builder.py:958] [DEBUG] | |
[2023-12-06 04:09:26,630] [builder.py:962] [DEBUG] | Validating Method: cache_builders |
[2023-12-06 04:09:26,631] [builder.py:963] [DEBUG] | Value: 1 |
[2023-12-06 04:09:26,632] [builder.py:958] [DEBUG] | |
[2023-12-06 04:09:26,633] [builder.py:962] [DEBUG] | Validating Method: visible_home |
[2023-12-06 04:09:26,635] [builder.py:963] [DEBUG] | Value: True |
[2023-12-06 04:09:26,636] [builder.py:958] [DEBUG] | |
[2023-12-06 04:09:26,637] [builder.py:962] [DEBUG] | Validating Method: visible_shared |
[2023-12-06 04:09:26,638] [builder.py:963] [DEBUG] | Value: True |
[2023-12-06 04:09:26,639] [builder.py:958] [DEBUG] | |
[2023-12-06 04:09:26,640] [builder.py:962] [DEBUG] | Validating Method: sort_title |
[2023-12-06 04:09:26,641] [builder.py:963] [DEBUG] | Value: !00_<<title>> |
[2023-12-06 04:09:26,642] [builder.py:958] [DEBUG] | |
[2023-12-06 04:09:26,642] [builder.py:962] [DEBUG] | Validating Method: url_poster |
[2023-12-06 04:09:26,644] [builder.py:963] [DEBUG] | Value: https://raw.githubusercontent.com/meisnate12/Plex-Meta-Manager-Images/master/seasonal/christmas.jpg |
[2023-12-06 04:09:32,623] [builder.py:958] [DEBUG] | |
[2023-12-06 04:09:32,625] [builder.py:962] [DEBUG] | Validating Method: radarr_add_missing |
[2023-12-06 04:09:32,626] [builder.py:963] [DEBUG] | Value: False |
[2023-12-06 04:09:32,627] [builder.py:1064] [DEBUG] | |
[2023-12-06 04:09:32,629] [builder.py:1065] [DEBUG] | Validating Method: append_label |
[2023-12-06 04:09:32,630] [builder.py:1066] [DEBUG] | Value: Seasonal |
[2023-12-06 04:09:32,639] [plex_meta_manager.py:819] [DEBUG] | Traceback (most recent call last): |
| File "//plex_meta_manager.py", line 677, in run_collection |
| builder = CollectionBuilder(config, metadata, mapping_name, collection_attrs, library=library, extra=output_str) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/modules/builder.py", line 1126, in init |
| self.beginning_count = len(self.library.fetchItems(check_url)) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/retrying.py", line 56, in wrapped_f |
| return Retrying(*dargs, **dkw).call(f, *args, **kw) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/retrying.py", line 257, in call |
| return attempt.get(self._wrap_exception) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/retrying.py", line 301, in get |
| six.reraise(self.value[0], self.value[1], self.value[2]) |
| File "/usr/local/lib/python3.11/site-packages/six.py", line 719, in reraise |
| raise value |
| File "/usr/local/lib/python3.11/site-packages/retrying.py", line 251, in call |
| attempt = Attempt(fn(*args, **kwargs), attempt_number, False) |
| ^^^^^^^^^^^^^^^^^^^ |
| File "/modules/plex.py", line 566, in fetchItems |
| return self.Plex.fetchItems(f"/library/sections/{self.Plex.key}/all{uri_args}") |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/plexapi/base.py", line 255, in fetchItems |
| data = self._server.query(ekey, headers=headers) |
| ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ |
| File "/usr/local/lib/python3.11/site-packages/plexapi/server.py", line 760, in query |
| raise NotFound(message) |
| plexapi.exceptions.NotFound: (404) not_found; (redacted)/library/sections/7/allNone <title>Not Found</title>

404 Not Found

|
| |
[2023-12-06 04:09:32,682] [plex_meta_manager.py:820] [ERROR] | Unknown Error: (404) not_found; (redacted)/library/sections/7/allNone <title>Not Found</title>

404 Not Found

|
[2023-12-06 04:09:32,684] [plex_meta_manager.py:825] [INFO] | |
[2023-12-06 04:09:32,685] [plex_meta_manager.py:826] [INFO] |====================================================================================================|
[2023-12-06 04:09:32,687] [plex_meta_manager.py:826] [INFO] | Finished Christmas Movies Collection |
[2023-12-06 04:09:32,688] [plex_meta_manager.py:826] [INFO] | Collection Run Time: 0:00:10 |
[2023-12-06 04:09:32,690] [plex_meta_manager.py:826] [INFO] |====================================================================================================|
[2023

@psychopat81
Copy link

1.32.8

had to upgrade my plex version to the beta 1.32.8.
Used the nightly PMM version and now its working fine.

@chazlarson
Copy link
Contributor

There are two issues being discussed in this thread.

They have different causes and different actions are required to address them.

The 404 issue is a PMM bug that is fixed in develop or nightly. 1.32.8 won't have any effect on it.
The 500 is a Plex issue that shows up in 1.32.7 and PMM cannot do anything to get around it. 1.32.8 fixes it.

@jjsracic
Copy link

When will the 404 fix be in the :latest version for docker on unraid?

@YozoraXCII
Copy link
Contributor

When will the 404 fix be in the :latest version for docker on unraid?

We are hoping to release before Christmas, but we have some work to do before then so I can't guarantee it.

@dalepmay7
Copy link
Contributor

I'm on Plex 1.32.8, using latest PMM build, getting the 500 error on every single movie trying to update posters.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Bug is with Plex Meta Manager status:not-yet-viewed I haven't reviewed the Feature or Bug yet
Projects
None yet
Development

No branches or pull requests