From 2d37cf8ba72955a622a72015d8ff97de0726d6c5 Mon Sep 17 00:00:00 2001 From: Joey Hafner Date: Thu, 23 Mar 2023 09:46:51 -0700 Subject: [PATCH] Fix Plex Exporter --- server/config/plex/README.md | 17 +++++++++++++++++ server/config/plex/docker-compose.yml | 2 +- 2 files changed, 18 insertions(+), 1 deletion(-) diff --git a/server/config/plex/README.md b/server/config/plex/README.md index 325ec2c..e157783 100644 --- a/server/config/plex/README.md +++ b/server/config/plex/README.md @@ -15,3 +15,20 @@ From LG's documentation: + +# Fixing Plex Exporter +When Plex is restarted you will likely need to give the exporter a new Plex token so it can connect to Plex. + +1. Open [Plex](https://plex.jafner.net). +2. Log into any account. +3. Select a locally-hosted piece of media (any media). Open the information page for that media, you do not need to play it. +4. From the triple-dot menu for the media, click "Get Info" to open the Media Info panel. +5. At the bottom right of the Media Info panel, click "View XML". +6. The Plex token is contained in the URL for the XML page. It should be at the very end of the URL, and look like `X-Plex-Token=4eBmSrpfXxxgT3cRF2gC`. The token is the part after the `=`. +7. Copy that value. Paste it into the configuration for `"--token="` under the `command:` section of the `docker-compose.yml` +8. Sync the changes via git. +9. Restart Plex exporter with `docker-compose up -d --force-recreate exporter_plex` + + +https://github.com/arnarg/plex_exporter +https://support.plex.tv/articles/204059436-finding-an-authentication-token-x-plex-token/ \ No newline at end of file diff --git a/server/config/plex/docker-compose.yml b/server/config/plex/docker-compose.yml index 8ae2f89..b20aa2c 100644 --- a/server/config/plex/docker-compose.yml +++ b/server/config/plex/docker-compose.yml @@ -85,7 +85,7 @@ services: - monitoring command: - "--plex-server=https://plex.jafner.net" - - "--token=suirW-a-z6SpqUAJjjDj" + - "--token=4eBmSrpfXxxgT3cRF2gC" - "--auto-discover" labels: - traefik.enable=false