#Various errors and troubles

1 messages Β· Page 1 of 1 (latest)

distant sandal
#

Hi all,

I was having some trouble getting PMM working properly, so I recently started from scratch. Ran it a few times today as I've added and updated things, but something isn't quite right still

For starters, PMM is creating and adding films to a collection on it's initial run, but if I download new movies it doesn't seem to be adding those to the collection (I have a 2020's decade collection that has three new films that aren't adding).

Addititonally, I'm seeing these errors:

|     1 | Plex Error: Plex Library 'template_variables' not found. Options: ['4K', 'Movies', 'TV Shows', 'Audiobooks', 'Music'] |
|     1 | 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> |
|     1 | Collection Error: collection_order does not work with Smart Collections ```

Log attached.
leaden valleyBOT
#

Welcome @distant sandal!

Someone from <@&938443185347244033> will assist when they're available.

Including the meta.log from the beginning is a huge help, type !logs for more information.

#

You can press the "Close Post" button above or type /close at any time to close this post.

leaden valleyBOT
#

πŸ“ Great! Let's start to review and make recommendations, psionstorm... πŸ“

#

πŸ“ If you want to review this again, psionstorm:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> πŸ“

urban ore
#

PMS version 1.32.7.7621-871adbd44

#

see recent #announcements please

distant sandal
#

Understood, thank you.

flint sage
#
[2023-11-20 13:59:55,007] [plex_meta_manager.py:324]  [INFO]     |     1 | Invalid Root Folder: '/data/media/movies/' Options: [[1:/data/media/movies]]               |

You are setting a root directory that doesn't exist in Radarr.

/data/media/movies/

is not the same as:

/data/media/movies

That message is saying "You've used BING, but the valid option[s] are BANG"

This is an indentation problem, that template_variables section should be two spaces to the right.

[2023-11-20 13:59:55,007] [plex_meta_manager.py:324]  [INFO]     |     1 | Plex Error: Plex Library 'template_variables' not found. Options: ['4K', 'Movies', 'TV Shows', 'Audiobooks', 'Music'] |

HOWEVER, the template variable you are setting doesn't makes sense in that context, so those two lines should be removed.

This is a bug in PMM that is fixed in nightly. If you don't want to use nightly PMM you can downgrade Plex to 1.32.6, which doesn't show the issue.

[2023-11-20 13:59:55,007] [plex_meta_manager.py:324]  [INFO]     |     1 | 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> |

Can't use collection_order with a smart collection.```
[2023-11-20 13:59:55,008] [plex_meta_manager.py:324] [INFO] | 1 | Collection Error: collection_order does not work with Smart Collections |

distant sandal
#

Regarding the last one, I didn't realize I had set a Smart Collection. Any idea which one it is?

flint sage
#

If you search the log for the error it will show it in context.

#

There are default seasonal collections you can leverage instead of creating your own.

distant sandal
#

Maybe I should set those up then

#

I took a few things from a buddy's yml and I think it made a mess

distant sandal
#

Thank you. So if I switch to that I should remove the Seasonal template from my movies.yml?

#

And I think I remember seeing some chatter about Seasonal being down thanks to an Imdb update too?

#

Re: template variables... does this look proper?

#
  Movies:                        # These are names of libraries in your Plex
    metadata_path:
    - pmm: basic                   # This is a file within PMM's defaults folder
    - pmm: imdb                    # This is a file within PMM's defaults folder
      # see the wiki for how to use local files, folders, URLs, or files from git
    - file: config/movies.yml
    template_variables:
      libraries: Movies     # list of libraries that you want the PMM Defaults playlists to look at
  # see the wiki for how to use local files, folders, URLs, or files from git```
flint sage
flint sage
distant sandal
#

Alright, I'll remove it then.

#

I'm only planning to use PMM with my main movies collection.

flint sage
#

That's a playlist-specific template variable, which you'd use thus:

playlist_files:
  - pmm: playlist
    template_variables:
      libraries: Movies
distant sandal
#

Is the use of playlists required?

urban ore
#

no

#

unless you want playlists πŸ™‚

distant sandal
#

I don't, lol

#

So I should be ok to omit the entire section

#

Sorry, having technical issues trying to copy and paste from a browser-based editor on my server

#
  Movies:                        # These are names of libraries in your Plex
    metadata_path:
    - pmm: basic                   # This is a file within PMM's defaults folder
    - pmm: imdb                    # This is a file within PMM's defaults folder
    - pmm: seasonal
      # see the wiki for how to use local files, folders, URLs, or files from git
    - file: config/movies.yml
settings:```
flint sage
#

Sure, that seems fine.

distant sandal
#

Ok, I think I cleaned up most of the errors. Let me run PMM again and see how it goes

#

Hmm, got a new one.

leaden valleyBOT
#

πŸ“ If you want to review this again, psionstorm:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> πŸ“

flint sage
#

Known issue in Plex 1.32.7:
#announcements message

distant sandal
#

lol of course

#

Didn't realize I had an update pending on that

leaden valleyBOT
#

πŸ“ Great! Let's start to review and make recommendations, bullmoose20... πŸ“

#

πŸ“ If you want to review this again, bullmoose20:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> πŸ“

#
**Rec 03** - πŸ’₯ **INTERNAL SERVER ERROR**

πŸ’₯ INTERNAL SERVER ERROR
An internal server error has occurred. This could be due to an issue with the service's server.
In the PMM discord thread, type !500 for more information.
For more information on handling internal server errors, [https://www.metamanager.wiki/en/latest/home/kb.html#errors-issues]
8 line(s) with INTERNAL SERVER errors. Line number(s): 1946, 1948, 2081, 2083, 3017, 3020, 3066-3067

past gale
#

@distant sandal uparrow maybe I missed it by not scrolling all the way through, however our logscan bot will tell you stuff that is likely going to help you with PMM and deciphering the logs.

distant sandal
#

Thank you, I'll dive into that as soon as I can

past gale
distant sandal
#

I'm sorry, I haven't had time to troubleshoot this further

past gale
#

It's fine. Just checking

distant sandal
leaden valleyBOT
#

πŸ“ Great! Let's start to review and make recommendations, psionstorm... πŸ“

#

πŸ“ If you want to review this again, psionstorm:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> πŸ“

#
**Rec 04** - πŸ’‘οΈ **PLEX DB CACHE ADVICE**

πŸ’‘οΈ PLEX DB CACHE ADVICE
Consider updating the Plex DB cache setting from 0.04 GB, to a value greater than 1 GB based on the total memory of 16.00 GB.
For more info on this setting: https://www.metamanager.wiki/en/latest/config/plex.html#plex-attributes
NOTE:The number you choose can vary wildly based on a number of factors (such as the size and number of libraries, and the amount of files/operations/overlays that are being utilized).

soft kestrelBOT
#

A 500 Internal Server Error happens when the server has an unexpected error when responding to an API request.

Effectively Plex is saying "Something went wrong, but no developer foresaw it to add error handling and no tester ran into it to make error handling get added, so all I can say is 'the bad thing happened'"

There could be any number of reasons why this happens and it depends on what server PMM is talking to although its most likely coming from your Plex Server.

Most of the time these errors need to be resolved by changing something specific to your set up but some do come up that can be fixed (i.e. Plex throws one if you upload a photo larger then 10 MB)

Many Appbox Setups will throw this error when too many requests are sent

Take a look at the following logs:

:one: Settings | Manage | Console -> then filter on Error and Warning to see what might be going on
:two: Check the plex logs (container or other) for the "Busy DB Sleeping for 200ms)

distant sandal
leaden valleyBOT
#

πŸ“ Great! Let's start to review and make recommendations, psionstorm... πŸ“

#

πŸ“ If you want to review this again, psionstorm:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> πŸ“

distant sandal
leaden valleyBOT
#

πŸ“ Great! Let's start to review and make recommendations, psionstorm... πŸ“

#

πŸ“ If you want to review this again, psionstorm:
:one: Right-click (or long press with phone) on the message that contains the log
:two: Select: Copy Message Link
:three: Use the command: /logscan <message_link> or !logscan <message_link> and paste the value copied from the previous step where you see <message_link> πŸ“

#
**User Info**

Table of Contents:
Page 01: User Info
Page 02: PMM Info
Page 03: PMM Summary Info
Page 04: PMM Config.yml YAML Validation βœ…
Page 05: Plex Configuration - Section 1
Page 06: Rec 01 - πŸ”’ BLANK API KEY ERROR

distant sandal
#

This seems to be better. Any other suggestions?

#

I downgraded Plex to 1.32.6 and the 500 errors stopped.

past gale
#

Fixed your blank api keys?

distant sandal
#

I haven't decided if I'll be utilizing those services yet

#

Leaving them in the config for now until I set that up

past gale
#

Well then you have a plan. You could also comment them out so the errors go away.

distant sandal
#

Good point

past gale
distant sandal
#

Sure, I'll start a new thread if needed.