#Getting errors when running Plex Image Cleanup
1 messages · Page 1 of 1 (latest)
You can press the "Close Post" button above or type /close at any time to close this post.
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
And this is the value from my .env file:
SERVER_IP=192.168.13.5
Also the pic folder appears as being root owned
Container runs as root, I imagine; pmm does the same if you don't specify a user.
When I specify a user I get an error, which is the proper way to specify the user?
With PMM, I'd do: docker run --rm --user $UID:$GID... Not sure how that translates to docker-compose.
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
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:
No connection adapters were found for '(redacted)/'
Does your plex URL have http or https on it?
https://stackoverflow.com/questions/15115328/python-requests-no-connection-adapters
If it doesn't, python doesn't know what adapter [http/https/ftp/ssh/whatever] to use.
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.
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?
You need the http/https
and how do I know which one to choose?
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.
That's not connecting to your server; it's connecting to Plex' proxy. This URL has to point directly at your specific plex server.
Anything else needed here? If not, type /close and hit enter