Some user avatars broke after manual 3.5.3 update

I performed a manual update (https://docs.rocket.chat/installation/manual-installation/updating) and after restarting the service, half the avatars were missing. I quickly reverted to a snapshot, but wondering if anyone else ran into this issue, or if this is common. Not all avatars were missing, which is strange. Even the bot avatars were missing (showed a grey box).

Server Setup Information

  • Version of Rocket.Chat Server: 3.5.3
  • Operating System: Ubuntu 18
  • Deployment Method: native
  • Number of Running Instances: 1

which version were you using before upgrading to 3.5.3?
did you try on an incognito window to make sure it was not (bad) cache?
which storage method are you using for avatars?

we have introduced a better way to invalidate avatar caches (see https://github.com/RocketChat/Rocket.Chat/pull/17925) on version 3.4.0 … so I’m wondering if somehow the cache is wrong for you as it should not affect stored avatar images.

Is there a way to rebuild the avatar cache? I’ll try again this evening and see if the same thing happens.

For the file storage, I’m using the file system. Is avatar file storage different or uses the same settings as regular file uploads?

Also, I was using 3.5.2 prior to it, and it was a fresh install.

Well I’m an idiot. I forgot that I had my uploads folder INSIDE the /opt/Rocket.Chat folder, and hence was removed as part of the update steps :expressionless:

I’ll remove this topic.

It happens to the best of us! Popped up in Moderator Queue to delete. Probably better off to just close this with a solution.

The solution: If using FileSystem make sure your folder isn’t pointing to a place that might get overwrote. If installing to /opt/Rocket.Chat and /opt/Rocket.Chat/uploads is your upload folder, make sure not to overwrite it.

1 Like