Avatars take a long time to load after moving to S3-compatible R2

Understood. I’ll give this another shot and let more time pass (2 or 3 days). What I don’t understand is that I see the rake avatars:refresh task finish (after 5 minutes), but nothing shows up in the Sidekiq queues. So, I don’t really know how much time I need to wait here. It seems like nothing is happening in the background.

oops missed this. yes they are using CDN.

i think the reason i don’t have the issue is because on one site where i migrated from standard install to a two-container with CDN and an R2 bucket for uploads, there weren’t a whole lot of users (~200 at the time of migration, but a lot more now). the other site i set up R2 object storage when i first set it up so it’s always been that way.

Check Update Avatar Image Serving - Remove Proxy Method

Hello,

Still nothing today. But i just saw that errors in the /admin/users. Maybe something is rate limiting me? sometimes it’s a 504 error:

Hello, i’m just doing another round of tests from 2 days right now. And what i found is that:

  • the new created accounts have the avatar’s loading instantly, in all sizes (topic list, topic posts, etc)
  • the rake avatar:refresh dont do any new image generation to the R2. I still need to click on the avatar of the old account to get it being generated. Maybe its a bug?

At this time, i have the majoritiy of my users avatars loading instantly as i self clicking on it.

I have a config with cloudflare + bunny cdn for the discourse_s3_cdn right now