Multiple users are experiencing issues with user profile images loading slowly or failing to load after upgrading to 2.2.0.beta7. The issue is due to a process that resizes and rebakes all avatars, which can take several hours to complete, depending on the number of users and images on the forum. Some users have reported high CPU usage during this process, which can impact the performance of their site.
sam explained that the issue should auto-correct itself after a bit and that the process is necessary to rebuild all resized avatars. However, some users have reported that the process is taking longer than expected, and bartv mentioned that his forum has over 500,000 uploaded images, which could take around 2 months to reprocess.
sam provided a one-liner to disable the rebake process, but strongly recommended testing it on a testing instance first. sam also suggested reducing the rebake old posts count to a lower number to minimize the impact of the process.
TheBestPessimist suggested adding a note to the beta release announcements to warn users about the potential issues and high CPU usage during the upgrade process. sam agreed and mentioned that a note will be added to the next beta release.
Some users have also reported issues with broken profile images after updating to v2.3.0.beta3. sam suggested rebuilding the container to resolve the issue.
Not sure if something you changed with the fuzzy image loading is being applied to user profile pictures, but I’ve noticed that after upgrading to 2.2.0.beta7 quite a few user images are either failing to load entirely (leaving just an empty white space) or are loading very, very slowly.
Thanks Sam. This does seem to be improving (but not yet finished) on our site. Just taking much longer than I’d think it would to rebuild avatars. Like, several hours for just a couple thousand users. That’s w/ the $10/mo Digital Ocean droplet…looks like it’s maxed out our CPU for going on 5 hours . Not sure if that’s about in line w/ what you’d expect, just FYI.
Would it be a good idea to add this kind of events when you release the new beta version posts from #feature:announcements so that nobody will go OMG my forum iz now broken!!! PANIC!!! ?
Something like
Deploy attention:
because of <commit here>, after you upgrade your discourse all posts containing images will be rebaked so your forum will be a little slow for a while.
because of <meta post here>, after you upgrade avatars will be a little bit slow to show but it will go away in a few hours.
Yeah @jomaxro can add a note to next beta (which is when this officially lands) informing people to expect high CPU usage for a few hours after this upgrade due to image re-optimization.
I tweaked this today a fair bit to avoid queue starvation and issues where avatar resizing was taking way too long, but you should expect a reasonable CPU jump temporarily while stuff is catching up.
We basically needed to go to every post with images and rebake, then resize all the images. Plus resize all the avatars.
We did this cause our new algorithm for resizing is far more efficient. Plus you get retina image support and “fuzzy” image while it loads on old posts.
We have over 500,000 uploaded images that need to be reprocessed, so we’re looking at about 2 months of reprocessing. I’ll need to be very careful when deploying this change, I’m not too excited about it, tbh.
I see the convert task is working away in htop still after 24 hours, but making progress. Is there any way to know how much longer this will take? Is there a way to de-prioritize the task so my site is not brought to its knees while this is going on? Quite a painful upgrade.