#Help Setting up PMM

1 messages · Page 1 of 1 (latest)

sleek grotto
#

Hi All,
I setup PMM in docker but am having trouble getting it to finish running collections. I'll pay $50 upfront and $50 at the end to anyone who can remote in to my computer and help me troubleshoot the issue. Here are my current issues:

  1. PMM does not automatically run each morning
  2. PMM cannot connect to Radarr
  3. PMM runs but then stalls at some point when it starts adding movies to collections. I tried to monitoring system performance and RAM usage tops out at 50% when PMM is running.

Please DM if you are interested. This should take less than one hour, thank you!

novel cometBOT
#

Welcome!

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.

wise iron
#

can you send a copy of config/Movies.yml

sleek grotto
#

Just uploaded

wise iron
#

also you don't need --test

sleek grotto
#

is --test somehwere in my config file?

wise iron
#

Line 23 in Movies.yml is
Letterboxd 100: Animation:

replace that with

"Letterboxd 100: Animation":

#

The : after 100 makes it think Animation is a value for Letterboxd 100, so you wrap it in quotation marks to make it the entire string 🙂

#

you have a random space at the end of Movies.yml too, remove that

#

Run Command: plex_meta_manager.py --test

sleek grotto
#

done!

wise iron
#

you have -rt or --test in your command when you are running PMM

sleek grotto
#

how do I remove --test?

wise iron
#

how do you run PMM?

#

what do you type

sleek grotto
#

docker run -it -v C:\Users\bryan\plex-meta-manager\config:/config:rw meisnate12/plex-meta-manager –run

#

but with the dashes at the end

#

--

twilit pagoda
#

and how was the container created?

sleek grotto
#

what are the options to create? I'm new to Docker but you can probably jog my memory

twilit pagoda
#

docker compose, docker run, some UI on your NAS, maybe something else.

sleek grotto
#

I think just docker run

ruby nacelle
#

First time I see that version in his meta.log

wise iron
#

The log doesn't specify that you have enabled --run so I imagine there is some other mechanism running PMM

ruby nacelle
#

Wsl2

sleek grotto
#

I'm using my Synology NAS as basically remote drives, Plex is installed on windows on my regular PC that also has Docker/PMM

twilit pagoda
#

Then you must have specified PMM_TEST when the container was created.

sleek grotto
#

I probably accidentally did

twilit pagoda
#

remove the container and recreate it without that.

#

Radarr isn't connecting because it's actively refusing connections; probably you have the wrong URL in there:

ConnectionRefusedError: [Errno 111] Connection refused
wise iron
#

re Radarr:

<urllib3.connection.HTTPConnection object at 0x7fd218f920d0>: Failed to establish a new connection: [Errno 111] Connection refused

I'm not sure how to resolve that

sleek grotto
#

Radarr is working just fine with my Download Station torrent client on my Synology NAS but yeah....

wise iron
#

I don't really know NAS but make sure the connections are on the same bridge/network so that they can communicate with each other

sleek grotto
#

to remove the container, do I uninstall the image?

twilit pagoda
wise iron
#

Also in case anyone DM's you, please don't pay people for support, we're here to help 😛

sleek grotto
#

do I need to open a port in my firewall? I tried opening all ports to local connections but that didn't work

twilit pagoda
sleek grotto
#

I'm just desperate to get this setting up as I freakin' love Letterboxd and want to create lists from there

twilit pagoda
#

Do you need the radarr connection? You could just forego it for the time being.

sleek grotto
#

Do I delete all of these?

#

I was hoping to have Radarr add movies on lists that I'm missing

wise iron
#

Let's start with getting PMM running properly 😄

#

Tackle 1 issue at a time lol

twilit pagoda
#

Yes, you want to delete all those, then use a docker run command that won't leave containers laying around.

sleek grotto
#

This is what I get for following some random install guide!

wise iron
#

We do have our official install guides

twilit pagoda
#

You should probably back up and use the official docker walkthrough.

sleek grotto
#

I can leave the config and movies yml as is for rthe time being after I re-do the install?

wise iron
#

yes

sleek grotto
#

so that walkthrough if for synology, but I'm not running Plex on the synology NAS, i'm really just usinng the synology nas as remote drives at this point that I mapped to my windows PC onn which I run Plex, Docker, etc.

#

*walkthrough is for

wise iron
#

Ah my apologies

twilit pagoda
#

Then use the docker walkthrough

sleek grotto
#

do you recommend skipping the test library setup?

twilit pagoda
#

It's up to you.

wise iron
#

You have a working configuration file that does work against your library

#

So I can see why one may skip it 🙂

#

The guide is fairly granular, you've already got a somewhat working setup so some of it may seem beginner to you.

#

It assumes someone is setting up for the first time and has very little understanding of how to set up

sleek grotto
#

So when I replace this with my own location, "C:\Users\YOURUSERNAME\plex-meta-manager\config:/config:rw"

#

do I leave the quotes, and also do I add the \config:rw to the end?

#

when I ran pwd it showed me this: C:\Users\bryan\plex-meta-manager\config

#

this is why I offered to pay since I'm a total newb!

wise iron
#

here is an example run command:

docker run --rm -it -v "/Users/mroche/plex-meta-manager/config:/config:rw" meisnate12/plex-meta-manager --run

#

I expect you'll want:

docker run --rm -it -v " C:\Users\bryan\plex-meta-manager\config:/config:rw" meisnate12/plex-meta-manager --run

twilit pagoda
#

FWIW, this:

docker run --rm -it -v " C:\Users\bryan\plex-meta-manager\config:/config:rw" meisnate12/plex-meta-manager --run
           ^^^^

is what keeps these from collecting <#1125452307182653480 message>

sleek grotto
#

I suspect I don't want to use the config:rw in that command?

twilit pagoda
#

YOu need that.

sleek grotto
#

this is my current director setup

#

directory

twilit pagoda
#

Maybe this extra space:

" C:\Users\
wise iron
#

oops 👀

#

see, even we get it wrong 😄

#

by we I do of course mean me...

sleek grotto
#

it's so sensitive to details! But I get it has to be

wise iron
#

if it helps, config:rw tells the container to mount your filepath to a location it refers to as "config"

so when in your config you say - file: config/Movies.yml, it uses the location you have mounted to config:rw

#

just so you understand how that works 🙂

sleek grotto
#

oh cool

#

so I accidentally ran it since the walkthrough said I'd get an error so I'm waiting for it to finish since I already setup the Config file the first time

wise iron
#

hahaha yeah if you have a config it will just run

#

you can Ctrl + C (twice I think) to kill the run

sleek grotto
#

so if I have almost 8,000 movies, how long do you think it will take to run?

wise iron
#

That is an impossible question to answer really 😄

twilit pagoda
#

depends entirely on what you have it doing in the config and the infrastructure everything's running on.

wise iron
#

There are many variables that factor into it

merry gazelleBOT
#

Plex Meta Manager would not be a success if it wasn't for all the people that spend hours and hours of their personal time to help others out with:

:one: creating/updating/maintaining the PMM code
:two: creating/updating/maintaining all of the posters
:three: creating/updating/maintaining all the yml files to create the overlays and collections
:four: creating/updating/maintaining all the wiki documentation
:five: handling all the support and installation requests
:six: moderating the discord community server for PMM

As such, if ever you have used any of the above over here, why not consider a small donation (one time or monthly) to help the cause?

Click here to help us out with a donation: https://github.com/sponsors/meisnate12

sleek grotto
#

I like that answerr haha!

wise iron
#

Some that you can't control - Plex may think "nah I'm not gonna respond to that request right now, I'm busy doing my own thing"

#

If Plex is doing its own tasks, it likes to block API requests or slow them down 😄

sleek grotto
#

I just donated to the cause!

#

i let PMM keep running, it's already gotten farther than it ever has before

wise iron
#

Welcome to the Sponsors club 🙂

twilit pagoda
#

FYI:

docker 
run       -- create a container and start it running
--rm      -- when the container exits, delete it
-it       -- create an interactive terminal for the run
-v "C:\Users\bryan\plex-meta-manager\config:/config:rw"  
          -- map "C:\Users\bryan\plex-meta-manager\config" into the container
          -- at '/config'
          -- and make it read/write
meisnate12/plex-meta-manager
          -- base the container on this image
--run     -- tell PMM to run immediately
wise iron
#

The above should hopefully make it clear, but just in case, starting the container is not the same as starting a PMM run 🙂

sleek grotto
#

yes I am going to go through the rest of the walkthrough again word for word

ruby nacelle
#

8000 movies. No overlays….3 default collections…. I will guess 45 minutes. 😉

sleek grotto
#

yup, it's almost through the first Oscars Best Picture Winners Collection

wise iron
#

Your first run will typically take longer than follow-up runs

#

Since it doesn't need to add all the movies, it just needs to check against the list and make any change

sleek grotto
#

I'll touch base with you guys in a little while then, I'll let this first run go. Then run the commands to start the container

#

if this works, I'm going to be so ecstatic because I love digital hoarding and even more I love snobby film lists!

#

jk I just watched The Meg for the third time I'm not a snob

wise iron
#

🤣 you can review the log file whilst it's running if you need to check anything

sleek grotto
#

Help Setting up PMM

#

unable to find asset folderr, does that matter?

twilit pagoda
#

Not unless you were expecting to use that to set the art, which you probably weren't.

sleek grotto
#

got it, yes that will be step 2 my addiction to manually selecting posterrs

#

which freakin' Plex keeps wiping so I'm going to experiment with Tinymediamanager

twilit pagoda
#

The asset directory in PMM will set them as well, but if Plex is wiping them by itself no external tool will be able to prevent that.

ruby nacelle
sleek grotto
#

but how do you browse posters with PMM? do you have to manually save them down?

ruby nacelle
#

Find what you want, store in the folder, PMM applies the poster

twilit pagoda
#

Basically, yes. PMM does not include a folder browser.

ruby nacelle
#

Tpdb is a good source of poster art

sleek grotto
#

thank you

#

I fear PMM hung up

#

it's been stuck on the same movie for awhile

wise iron
#

Send the log

merry gazelleBOT
#

"send log" command detected, if you need more information on how to provide log files, type !logs

sleek grotto
wise iron
#

Can you check if Plex is doing any tasks such as library scans

sleek grotto
#

looks like it is

wise iron
#

Might be why

sleek grotto
#

do I just quit it for now, finish with the install?

wise iron
#

I would normally expect PMM to timeout though

#

How much RAM does your system have?

sleek grotto
#

I think I set the timeout at something long like 999 seconds because I was guessing that was the original issue

#

16 GB ram and here is the usage

wise iron
#

So a potential thought

#

I'm pretty sure when you're using WSL2 it can only use 50% of the system memory

#

Which means you're limited to 8GB, it could be maxing out and killing the run

sleek grotto
#

ah!

wise iron
#

You can configure the memory limit by creating a .wslconfig file in your user folder. Mine's C:\users\wme. Next add the following content to the file:

[wsl2]
memory=12GB

Now reboot WSL with the command: wsl --shutdown

You can verify the new memory setting by running free in the linux distribution you have installed.

sleek grotto
#

so add a folder called "wme" in this path? C:\Users\bryan

#

and should I kill PMM right now?

wise iron
#

no and probably yes

#

I have set it to 12GB, you can edit it to change the value if you want

sleek grotto
#

ok I shut down PMM

#

should I continue with the containner setup before trying to re-run PMM?

#

and maybe restart my pc?

wise iron
#

Sure

sleek grotto
#

sorry i'm a little confused, which commands do I run next after running PMM for the first time?

#

docker
run -- create a container and start it running
--rm -- when the container exits, delete it
-it -- create an interactive terminal for the run
-v "C:\Users\bryan\plex-meta-manager\config:/config:rw"
-- map "C:\Users\bryan\plex-meta-manager\config" into the container
-- at '/config'
-- and make it read/write
meisnate12/plex-meta-manager
-- base the container on this image
--run -- tell PMM to run immediately

#

I think all I did was have PMM run immediately

#

I got to here in the walkthrough: Runtime and Environment Flags

twilit pagoda
#

Just continue through the walkthrough as written.

sleek grotto
#

ah ok, and yes I"m a dumb ass with this! lol

sleek grotto
#

ran PMM again, it's now gotten past where it left off last time just letting it run now

twilit pagoda
#

If you are going through that walkthrough you should be doing very short runs that do specific things, which are designed to help you learn how the tool works.

sleek grotto
#

whoops lol

#

well I technically got to the end

#

of the walkthrough

twilit pagoda
#

I mean, you can keep doing what you're doing, but I thought the goal was figuring out how to get the thing to work.

twilit pagoda
sleek grotto
#

I interruped the PMM run because it was adding all of the Oscar years and would take forever, but now I can't re-run it:

#

I am so sorry how much work this has beenn

#

it was working just fine until I tried to modify the Oscar PMM with a template variable

twilit pagoda
#

on line 9 you have indented something with a tab rather than spaces:

| YAML Error: while scanning for the next token                                                      |
| found character '\t' that cannot start any token                                                   |
|   in "//config/config.yml", line 9, column 1                                                       |

I deleted that message as it had all your tokens in it.

The log already contains a redacted config.

sleek grotto
#

that fixed it, got it so now I understand at least it tells you in the error messages which line is wrong

ruby nacelle
#

!editor

#

!editos

merry gazelleBOT
#

We highly recommend to use a decent editor software to manage PMM´s .yml files.

Standard text editors (such as Notepad and TextEdit) often save text in a rich-text format which can result in text formatted in a way that PMM cannot read. But not only that, they also make it very hard to visually distinguish the formatting, such as indentation.
PMM requires indents to always be multiples of 2 spaces, and not TAB stops. If you have one space too much, or too few, it is very hard to notice that with a editor like Notepad.
An editor that is more focused on editing code instead of text will automatically detect the .YML fileformat and adjust things to make it easier to work. They can also try to detect possible errors even before you actually run the .yml in PMM.

This can save a lot of time and headaches.

Visual Studio Code (Windows/Mac/Linux, Opensource & Free)
Website

**Notepad ** (Windows only, Opensource & Free)
Website

Sublime Text (Windows/Mac/Linux, Paid)
Website

For further details and a short list of highly recommended extensions, you can also take a look at our Reddit post.

ruby nacelle
#

You are gonna want to use one of these... so that you catch the tabs and spacing issues more easily. yml is very picky with spaces... it matters...

sleek grotto
#

thank you!

ruby nacelle
#

i presonally use VSCode with rainbow addon

sleek grotto
#

pretty sure it's going to finish running!!!!

#

it's working on the Letterboxd top 250 now!

#

how should I go about troubleshooting the connection to radarr now? basically I installed radarr as a windows task, is that bad?

twilit pagoda
#

Unrelated.

sleek grotto
#

so you think radarr isn't configured correctly?

twilit pagoda
#

The url/port is incorrect or something else is in the way from pmm to radarr.

ruby nacelle
#

we updated !editos was updated because the reddit post was "offline"

merry gazelleBOT
#

We highly recommend to use a decent editor software to manage PMM´s .yml files.

Standard text editors (such as Notepad and TextEdit) often save text in a rich-text format which can result in text formatted in a way that PMM cannot read. But not only that, they also make it very hard to visually distinguish the formatting, such as indentation.
PMM requires indents to always be multiples of 2 spaces, and not TAB stops. If you have one space too much, or too few, it is very hard to notice that with a editor like Notepad.
An editor that is more focused on editing code instead of text will automatically detect the .YML fileformat and adjust things to make it easier to work. They can also try to detect possible errors even before you actually run the .yml in PMM.

This can save a lot of time and headaches.

Visual Studio Code (Windows/Mac/Linux, Opensource & Free)
Website

**Notepad ** (Windows only, Opensource & Free)
Website

Sublime Text (Windows/Mac/Linux, Paid)
Website

For further details and a short list of highly recommended extensions, you can also take a look here.

sleek grotto
#

how do I find the correct url/port? I see the port listed as standard 7878 when I log in

ruby nacelle
#

is radarr also running as a container?

#

your port is likely correct... but you may have a networking situation preventing the containers from talking to each other... we would need to understand your setup a little better

sleek grotto
#

radarr is running as a windows task

twilit pagoda
#

What url are you using in PMM for Radarr?

#

And what is the networking mode for the PMM container?

sleek grotto
#

how do you look up networking mode or is that something I need to google?

twilit pagoda
#

Inside the pmm container, "localhost" refers to the PMM container, not the host system.

If you put the PMM container on the host network, you should be able to use the LAN IP of that machine.

#

But it appears host network is not supported on Windows.

#

The alternative would be to run PMM on the host [not docker] or run Radarr in Docker.

sleek grotto
#

I'll just switch radarr to docker then!

twilit pagoda
#

put them on the same named docker network and you can refer to radarr as http://radarr:7878

#

provided you give the radarr container the name radarr

sleek grotto
#

that would just be doing a regular docker install of radarr right? I was going to backup radarr, install and then recover my data

twilit pagoda
#

depends on what "regular docker install" means. Giving a container a name is typically something you have to choose to do whether it's a command line option or a field in a UI.

sleek grotto
#

This might work? do you know what the text would be for the "my-app" if this was to be my PMM?

#

Yes, Docker programs can connect to Windows apps. Docker is a platform for running applications in containers, and Windows is an operating system. Docker programs can be run on any operating system that supports Docker, including Windows. When a Docker program is run on Windows, it is isolated from the rest of the operating system. This means that the Docker program cannot access the Windows desktop or other Windows applications by default. However, it is possible to configure Docker programs to connect to Windows apps. One way to do this is to use the -v flag when running the Docker program. The -v flag specifies a volume mount, which is a directory on the host machine that is shared with the Docker container. The host machine is the computer that is running Docker. To connect a Docker program to a Windows app, you can mount the Windows app's directory to the Docker container. For example, to connect a Docker program to the Notepad application, you would use the following command:
docker run -v C:\Windows\System32\notepad.exe:/app/notepad.exe my-app
This command will run the my-app Docker program and mount the C:\Windows\System32\notepad.exe directory to the /app/notepad.exe directory in the Docker container. The my-app Docker program will then be able to access the Notepad application.

ruby nacelle
#

Mounting file systems is not the same as ensuring that host to host or container to container network level communication is happening.

sleek grotto
#

oooof

ruby nacelle
#

If you have radarr and PMM both setup as containers on your system, ensure that they can “talk” to each other at the network layer.

#

You should be able to console to either container and “ping” the other container.

twilit pagoda
sleek grotto
#

well the Radarr discord was not helpful, basically said instead of using locahost just look up IP address and enter it into the config file of PMM, is it that simple? I can't find the longer ip address of radarr however just the http://localhost:7878/

ruby nacelle
#

localhost could also be 127.0.0.1

#

you may also be able to use the ip address of the host machine running docker itself

#

so lets recap a little... can you tell us whether you have both radarr and pmm as containers running in docker on your windows machine?

#

are they both running fine independently but cannot "speak" to each other?

sleek grotto
#

radarr is installed on windows not in docker, PMM is installed in docker as a container and they can't talk to each other

wise berry
#

you either need to install radarr in docker and put pmm and radarr on the same docker network or you need to use your PC IP in the pmm config yml for radarr

#

http://<PC IP>:7878

#

if you put radarr on the same docker network as pmm after installing radarr in docker then you would use http://radarr:7878

wise berry
twilit pagoda
#

To use the local ip of the pc (probably something like 192.168.1.10), the docker container will need to be on the host network, and a few minutes googling seems to say that’s impossible on windows.
That leaves either running Radarr in docker or forwarding port 7878 to your radarr machine (in your router) and using the external ip:7878.

ruby nacelle
#

Oh windows you scamp!

wise berry
sleek grotto
#

Trying to do a radarr install on my docker. Do I have to enter anything for the Volume and Environmental variables section when you first run the Radarr container?

#

I'll go over to Servarr I guess since this is Radarr not PMM. Just wanting to make sure PMM talks to Radarr though!

twilit pagoda
#

Shouldn’t be a problem if they’re both in docker. Use a named docker network and name the containers and pmm will use http:/radarr:7878 or the like.

sleek grotto
#

@twilit pagoda I'm a little confused on the instructions here: "You can run PMM in the background, telling it to wake up and process your libraries at fixed times during the day. The default behavior in this regard is to wake up at 5AM and process the config. If you leave the -r off the commands you have been using in this walkthrough, that’s what will happen."

#

what is an example command with removing the -r? I don't believe I setup PMM properly because it does not automatically run at 5 am

#

For example this is what I use to run PMM: docker run --rm -it -v “C:\Users\bryan\plex-meta-manager\config:/config:rw" meisnate12/plex-meta-manager --run

twilit pagoda
#

This --run bit [or -r, those are synonymous]:

docker run --rm -it -v  “..." meisnate12/plex-meta-manager --run
                                                RIGHT HERE ^^^^^

is telling PMM "run immediately and then exit when you're done"

If you leave that off, PMM will run continuously, waiting until 5AM to wake up and process the config, then back to sleep until the next day.

#

Create a container, run PMM right now, then exit and delete the container:

docker run --rm -it -v  “REMOVED_FOR_SPACE:/config:rw" meisnate12/plex-meta-manager --run

Create a container, wait until 5AM to run PMM, then go to sleep until tomorrow at 5AM. If the container exits, delete it:

docker run --rm -it -v  “REMOVED_FOR_SPACE:/config:rw" meisnate12/plex-meta-manager

Create a container, wait until 9AM to run PMM, then go to sleep until tomorrow at 9AM. If the container exits, delete it:

docker run --rm -it -v  “REMOVED_FOR_SPACE:/config:rw" meisnate12/plex-meta-manager --time 09:00

All of those will leave the container running in the terminal window, so if you close the terminal window the container will die. If you don't want that to happen, run the container in the background:

Create a container that runs in the background, wait until 9AM to run PMM, then go to sleep until tomorrow at 9AM. If the container exits, delete it:

docker run -d --rm -it -v  “REMOVED_FOR_SPACE:/config:rw" meisnate12/plex-meta-manager --time 09:00

Create a container that runs in the background, wait until 9AM to run PMM, then go to sleep until tomorrow at 9AM. DON'T delete the container on exit:

docker run -d -it -v  “REMOVED_FOR_SPACE:/config:rw" meisnate12/plex-meta-manager --time 09:00
sleek grotto
#

thank you!!!!!!!