After version change and containers rebuild assets are broken
Context information (for bug reports)
Steps to reproduce the issue
- Install ERPNext with version v15.16.2
- Finish instalation and go the application
- Change version in .env (or docker compose) from v15.16.2 to v15.17.0
- Rebuild container
- Refresh works - because of cache - try incognito browser
- Application works, but all assets are broken (css / js)
- Running migrate or build not helping
- Fresh install works with database export / import but it’s not the desired upgrade
Expected result: after upgrade to have a fully functional application
Stacktrace / full error message if available

@oleynikd’s procedure had worked for me also for quite a while, but recently again old
.cssfiles were requested in spite of following it, and this time what helped was clearing the Redis cache:docker exec -it -u root redis-cache redis-cli FLUSHALL(redis-cachebeing the name of the Redis cache container).Just now see that @ronyantony-ig found this out already 2 hours ahead of me, but the commands seem to be missing the container name.
I had similar issue. On my cicd I havd 5 migaes from deployments and the assetsfrom the first one was being requsted by the browser, despite the running container had the latest in assets.json.
eg: container assets.json: “login.bundle.css”: “/assets/frappe/dist/css/login.bundle.BNLXGCOL.css” broser was trying to fetch login.bundle.VNLPGCOL.css.
The possible issue with my environmnet was the Redis cache holding old stale outdated assets.json data.
Running these commands solved the issue:
docker exec -it <redis-cache-container> redis-cli FLUSHALL docker exec -it <redis-queue-container> redis-cli FLUSHALL