Open MBARIMike opened 1 year ago
@MBARIMike
I removed some persisting folders that masked this error so that I can replicate it.
When changing in base.py media-files to media:
MEDIA_ROOT = str(APPS_DIR / "media")
The sections
folder is not created due production=false in local.py (and local-ci-py)?
if [ "$PRODUCTION" == "true" ]; then
echo "Checking for presence of ${MEDIA_ROOT}/sections..."
if [[ ! -e ${MEDIA_ROOT}/sections ]]; then
echo "Creating directories for image generation and serving by nginx..."
mkdir -p ${MEDIA_ROOT}/sections ${MEDIA_ROOT}/parameterparameter
chmod 733 ${MEDIA_ROOT}/sections ${MEDIA_ROOT}/parameterparameter
fi
fi
Even if I get it so /srv/stoqs/media/selections directory does exist, no images are being stored in the folder. I am not sure where this happens. I don't know what we did before to have the media file created and have the images we need previously. Any hints?
I tried changing those, but it doesn't seem to fix the problem. When production=false, even the sections folder is not made. Somewhere the images are generated and stored into the srv/media/sections (I think). It can possibly be a path issue or because we have production set to false with nginx disabled. I don't know enough about the stoqs project setup to be able to make that determination. If the team and I had more time, perhaps we could have explored and found the solution. Unfortunately, making major changes might break more than fix. I added a page under Testing documents for known issues.
Looks like a configuration issue with local.yml during test with customer: