Images missing after upgrading to 7.3.4

What version are you coming from?

From 7.2.5

What version are you going to?

To 7.3.4

What deployment method did you use to deploy?

Docker Compose on Linux

Did you follow a particular doc? Which one?

Nothing in particular. I always update by simply changing the version number of the docker image in the compose file, then restart the stack.

What issues are you running into upgrading?

All the uploaded images are missing. No profile pictures, no uploaded images in the chat, no custom room icons. After reverting to 7.2.5 all the images reappear.

What file system?

If it’s GridFS as per the docs & multiple posts here, you should not be using it. There are two migrator scripts.

If local file storage check the docker/file permissions - some library changes meant a change to the rocket/docker user IIRC.

Again posts here & github.

it’s local storage
I saw in the logs that it couldn’t chmod /app/upload to 744 but it is 744, owned by root.

As I said, this has been discussed in github.

It needs a different owner, not root.

Set the dir to 0777, upload a file, and check ownership.

That is who should own the dir.

okay, I did that. inside the docker has a rocketchat user, that owns the folder. outside the environment it translates to UID/GID 65533. changed the ownership of the folder to that, and now some of the chats works perfectly, others showing me a big Retry placeholder. I can still download those pictures, so they are there and available, but their thumbnails don’t show in the chat

How can I fix this?

1 Like

cleaning cache, that’s how

thank for your help

1 Like

On mine I added a user & group with those ids…

Note this is really a docker thing, not Rocket.

That’s a good idea. That way it’s obvious to everyone who those files belong to.

1 Like

I’d also get a bit newer.

The march of change is painfully relentless :frowning:

I usually run one major version behind once it gets a .1 release.

So now either 7.5.1 or even 7.6.1 which just released.

You’re right, I upgraded to 7.5.1 today

1 Like