Users profile image not showing (letter avatars)

AI-generated summary

Users reported that default letter avatars weren’t displaying, though admin profiles showed correctly. gerhard advised running git pull and ./launcher rebuild app to fix a CDN IP caching issue — a bug patched in Discourse’s codebase. sam confirmed the root cause was resolved via a Ruby-based proxy (instead of NGINX), making avatars resilient to CDN IP changes. Some users suggested disabling “external system avatars” or CDN proxying as workarounds, though this may affect performance. RGJ questioned if external avatar providers were broken, but david clarified that only letter avatars are proxied via avatars.discourse.org; other providers still work directly. Mundobizarro asked for clarification on the fix, and TheBestPessimist confirmed it’s a simple SSH command execution. The fix ensures future CDN migrations won’t break avatars.

hello im having trouble with users default profile image not showing. Admin

profile image shows but not users. how can i fix this ?

Please run:

cd /var/discourse
git pull
./launcher rebuild app

Our previous letter avatar system would cache IP addresses for the CDN, this IP changed. We fixed the offending code and back ported to beta and stable.

Per:

https://github.com/discourse/discourse/commit/f04471e4229218903df17232db955cd583a423ef

The root cause is sorted, we can move our CDN as much as we want and letter avatars will continue to work.

Originally there was a proposal to modify our NGINX config here to amend the resolver by @Matt_Campbell Configure the nginx resolver to eliminate name resolution on startup by mwcampbell · Pull Request #413 · discourse/discourse_docker · GitHub however I was worried a lot about amendments to NGINX.

New design uses Ruby to do the proxying of the images (which are super aggressively cached) so the actual functionality is unchanged except that NGINX no longer does the caching so IP caching of CDN is gone.

This seems to remove the ability to plug in external avatar providers like described here since it now hardcodes avatars.discourse.org ?

You can still use external avatar providers. All we did was move the proxy from the nginx config (where it was previously hardcoded to avatars.discourse.org) to the rails app.

Other external avatar providers do not get proxied - avatars will be loaded directly from whatever service you choose. For example, on our hosting, we link all letter avatars directly to avatars.discourse.org, without a proxy.

I get it now, thanks for explaining!

Hey,

I also have the same issue here, images of some of the respondants are not showing up.

How does this fix work?
cd /var/discourse
git pull
./launcher rebuild app

What should i do exactly?

Thanks in advance

Luuk

Just run those commands from ssh on your server.