File uploading speed became very slow

Hello, recently uploading any file in Mattermost, including images, became very slow. Uploading 4 to 5mb file takes 7 to 10 minutes. Processing part after that has no problem and still as fast as before.
We have around 50 users in Mattermost and deployed it using docker on ubuntu server 22.04. The server has 2 CPU and 4GB memory and has no storage problem. Server CPU and RAM usage only reaches 20% most and doesn’t really change much when uploading a file. Logs doesn’t show much information about it. Disabling plugins(I only downloaded gitlab plugin recently) does nothing.

Mattermost Enterprise Edition

Mattermost Version: 10.5.2
Database Schema Version: 129
Build Number: 13860318285
Database: postgres

I think this happened because I updated it around 2 weeks ago but I might be wrong it could be from other reasons. We had no such problem before. Any solutions?

Thanks in advance!

First, I’d highly recommend updating to 10.5.8 as there are several security issues and bug fixes. Version Archive - Mattermost documentation I didn’t see anything in the changelog that loooked relevant, but updating is definitely the best course of action here!

Second, we don’t recommend using Docker for production deployments. This might be a Docker issue, not a Mattermost issue. You might test by rsynching the file to the Mattermost container. You might also try standng up Mattermost directly on the OS just to see if that does or does not resolve the issue.