Wrong avatar URL path after upgrade version 12

Hello,
after upgrading to version 12 (docker install), looks like avatar are not loaded correctly.

They are pointing to https://seafile.example.com/media/avatars/default.png

SEAFILE_SERVER_HOSTNAME environment variable is set correctly, and everything else looks ok. Any ideas?

I think we would need more information to know what’s wrong. Do you get an error like 404 when loading an avatar? What’s your reverse proxy config look like?

I will take a guess based on what I have seen happen before. Avatars should be at /media/avatars on your domain name. I assume you are using “seafile.example.com” to stand in for you domain. So that part looks right, but if they aren’t loading, my first suspicion would be some left-over config from before you upgraded.

The instructions used to include this extra section for taking a shortcut to get straight to the avatars without going through seafile:

    location /media {
        root /opt/seafile/seafile-server-latest/seahub;
    }

As seen in HTTPS with Nginx - Seafile Admin Manual

That’s not going to work anymore since your reverse proxy can’t access the files inside of the docker container. So if you have that section in your reverse proxy config, remove it.

I think it was probably some server/client cache, now after a while looks that everyhting is working fine. Thanks!

In such scenario, always do CTRL+F5 to discard cache when refreshing.