#Getting errors when running Plex Image Cleanup

1 messages · Page 1 of 1 (latest)

short cliffBOT
#

Welcome @soft fern!

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.

short cliffBOT
#

These are the logs:

And this is the config in my docker-compose.yml:

pic:
image: meisnate12/plex-image-cleanup:latest
container_name: pic
environment:
<< : [*common-env-vars]
PLEX_PATH: /plex
MODE: remove
PLEX_URL: "${SERVER_IP}:32400"
PLEX_TOKEN: (redacted by Luma)
TIMEOUT: 600
SLEEP: 60
IGNORE_RUNNING: False
LOCAL_DB: False
USE_EXISTING: False
PHOTO_TRANSCODER: True
EMPTY_TRASH: True
CLEAN_BUNDLES: True
OPTIMIZE_DB: True
TRACE: False
LOG_REQUESTS: False
SCHEDULE: 18:30|daily,05:30|daily
volumes:
- ${ROOT_DIR}/${CONFIG_DIR}/pic:/config:rw
- ${ROOT_DIR}/${CONFIG_DIR}/plex/Library/Application Support/Plex Media Server:/plex
depends_on:
- plex

soft fern
#

And this is the value from my .env file:
SERVER_IP=192.168.13.5

#

Also the pic folder appears as being root owned

quaint ice
#

Container runs as root, I imagine; pmm does the same if you don't specify a user.

soft fern
#

When I specify a user I get an error, which is the proper way to specify the user?

quaint ice
#

With PMM, I'd do: docker run --rm --user $UID:$GID... Not sure how that translates to docker-compose.

short cliffBOT
#

The following was shared by @soft fern and was automatically redacted by Luma as it may have contained sensitive information.

If you feel this message should not have been redacted, resend it with !noredact in your message to avoid redaction.

#

This is how it translates:
pic:
<< : [*common-restart-policy]
image: meisnate12/plex-image-cleanup:latest
container_name: pic
user: "${USER_ID}:${GROUP_ID}"
environment:
<< : [*common-env-vars]
PLEX_PATH: /plex
MODE: remove
PLEX_URL: "${SERVER_IP}:32400"
PLEX_TOKEN: (redacted by Luma)
TIMEOUT: 600
SLEEP: 60
IGNORE_RUNNING: False
LOCAL_DB: False
USE_EXISTING: False
PHOTO_TRANSCODER: True
EMPTY_TRASH: True
CLEAN_BUNDLES: True
OPTIMIZE_DB: True
TRACE: False
LOG_REQUESTS: False
SCHEDULE: 13:41|daily,05:30|daily
volumes:
- ${ROOT_DIR}/${CONFIG_DIR}/pic:/config:rw
- ${ROOT_DIR}/${CONFIG_DIR}/plex/Library/Application Support/Plex Media Server:/plex
depends_on:
- plex

soft fern
#

I will show you the output when it finishes running

#

Basically when I use that config, I get "pic exited with code 0 ", but when I remove that I get:

quaint ice
#

when I remove that

What is "that"?

#

the pic folder being root-owned shouldn't matter, since the only thing that uses it is PIC and it's running as root.

soft fern
#

This is what I am using:

PLEX_URL: "${SERVER_IP}:32400"

where:
SERVER_IP=192.168.13.5,
So I don't have any http nor https, is that what I am missing?

quaint ice
#

You need the http/https

soft fern
#

and how do I know which one to choose?

quaint ice
#

That depends on your server configuration. When you connect to your plex server in a browser, what do you enter?

#

Most likely it's http on a local IP like that.

soft fern
#

got it

#

thanks!

quaint ice
#

That's not connecting to your server; it's connecting to Plex' proxy. This URL has to point directly at your specific plex server.

soft fern
#

it is working now!

#

it was http

#

thanks a bunch!

glacial lynx