#Plex Image Cleanup - .env is not being read, neither is environment variables when set in docker com

1 messages · Page 1 of 1 (latest)

long nymph
#

I have tried setting .env globally than also in my compose, I can see it on the containers description. I also placed it where /config is set too. I still get the same error in my logs

floral anvilBOT
#

Welcome @long nymph!

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.

long nymph
#

PLEX_URL=URL:XXXX
PLEX_TOKEN=XXXX
PLEX_PATH=/plex-path
MODE=report
SCHEDULE=SCHEDULE="05:00|weekly(sunday)"
DISCORD=XXXX
TIMEOUT=600
SLEEP=60
IGNORE_RUNNING=False
LOCAL_DB=False
USE_EXISTING=False
PHOTO_TRANSCODER=False
EMPTY_TRASH=False
CLEAN_BUNDLES=False
OPTIMIZE_DB=False
TRACE=True
LOG_REQUESTS=True
I have my plex appdata set to /plex-path (works with all other apps including PMM)

oblique tide
#

Seems like a volume mapping issue

scenic osprey
#

What are you naming you .env file? It needs to be named .env

long nymph
long nymph
#

Logs are being output just fine

long nymph
#

So, I did a docker run...same paths... it worked so I stopped it and ran another compose (just just start the other container again) and now its working. Which is nuts because I also added the environment variables to my compose last night and that didnt work in conjunction with the .env being in /config... 😠 . Since the .env file works, I'm removing the environment variables from my compose and going to just rock with it rofl.

scenic osprey
#

So it’s working now?

long nymph
#

Yeah, I guess if it pops up, could be something with the build but recommend doing a run while .env exists before compose