Sending files is blocked at 0% and does not advance


#1

Hi everyone,

As my tittle says, sending files in every channels is blocked at 0% and does not advance.

This is quite strange, because I am in “FileSystem” mode with the right user/group rights (660) on the server’s destination directory.

I have a first instance that works very well, and no upload issues.

I also don’t have any logs via the admin panel, as if the logs were not being written. Again, on the first instance, I have a lot of logs.

My RocketChat version : 0.71.1

My two instances are on the same server, with a reverse proxy, units systemd for each and a MongoDB database for each. All this with UNIX users and separate directories.

If anyone has an idea, thank you in advance! :slight_smile:

Supras


#2

#3

Hi :slight_smile:
Connection to the server is in HTTPS. My reverse-proxy automatically redirects all HTTP traffic to HTTPS
In Settings => General => website URL is configure with https://myrocket.domain.tld


#4

I was able to extract the request logs when uploading a file to a channel.

Request with a functional upload

[16/Nov/2018:09:42:57 +0100] "POST /ufs/FileSystem:Uploads/Fqhg5RDGigwpNmaZM?token=08e8386a4A&progress=1 HTTP/1.1" 204 0 "https://rocket1.mydomain.tld/channel/general" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0; Waterfox) Gecko/20100101 Firefox/56.2.5"

Request with a non-functional upload

[16/Nov/2018:09:44:32 +0100] "POST /ufs/FileSystem:Uploads/yTB8ucjgKJFBPvJPj?token=78cAFB0868&progress=0.4465887098972388 HTTP/1.1" 500 5 "https://rocket2.mydomain.tld/channel/general" "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:56.0; Waterfox) Gecko/20100101 Firefox/56.2.5"

We can notice an error 500 with my POST request. I’ll keep looking.


#5

It’s ok, I solved this problem myself.

The UNIX user of my second instance did not have the rights in the /tmp/ufs because this folder was created by the UNIX user of my first instance. I gave him the rights and then it was good.