Error Facing While Changing Logos in Tutor Open edX
Issue Description
After following all the standard steps to update the logo image on the Tutor Open edX platform, the system does not update to use the new hashed images. Even after rebuilding assets, collecting static files, and restarting the environment, the platform continues to serve the old logo image.
Steps Followed to Change the Logo
Step 1: Copy the new logo image to the VM
Run this in PowerShell on your local machine:
scp -i "$env:USERPROFILE\Downloads\Rp2LMSTrialVM_key.pem" "$env:USERPROFILE\Downloads\rp-logo.png" azureuser@192.0.2.123:~
Step 2: Replace the existing logo inside the VM
SSH into your VM and run:
cp ~/rp-logo.png ~/.local/share/tutor/env/build/openedx/themes/indigo/lms/static/images/logo.png
Step 3: Rebuild and collect static assets
Inside the VM, run the following commands:
# Enter LMS container bash
tutor local run lms bash
# Inside container shell
npm install --legacy-peer-deps
npm run build
exit
# Collect static files
tutor local run lms bash -c "python manage.py lms collectstatic --noinput"
# Restart Tutor environment
tutor local restart
Step 4: Verify the hashed logo image
Check for updated hashed logo image inside the VM:
tutor local run lms bash -c "ls -lh --full-time /openedx/staticfiles/indigo/images/logo.*.png"
Problem
- The hashed image filename does not change after these steps.
- The timestamp on the hashed image does not update.
- The front-end continues to serve the old logo image, despite replacing the file and running all build/collectstatic commands.
- Browser cache clearing or hard refresh does not reflect the new logo.