H
H
HardcoreVGN2020-07-29 09:50:58
ubuntu
HardcoreVGN, 2020-07-29 09:50:58

(Ubuntu) How to open file transfer access in RocketChat?

Good morning or afternoon or evening, everyone, the essence of the matter.
Already did the same as it says here: (Ubuntu) How to open file transfer access in RocketChat? , but the problem is the same, the download is 0%, although the server rebooted, there are rights to the folder. Perhaps the problem is that the rocket chat is deployed on Http, and all this is spinning on nginx, because there was no other way to make the chat work on-line in LAN.

OS version: Ubuntu Server 18.04.4 LTS
How to install RocketChat:

spoiler
lsb_release -cd; getconf LONG_BIT; hostname; hostname -I
apt update; apt upgrade -y
apt install snapd nginx -y; snap install rocketchat-server
systemctl start nginx; systemctl enable nginx
netstat -tlpn

nano /etc/nginx/conf.d/rocketchat-server.conf
server {
listen 80;
server_name www.testdomain.com;

location / {
proxy_pass 127.0.0.1:3000;
proxy_set_header Host $http_host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}

nginx -t; netstat -tlpn | grep 3000; hostname -I; systemctl restart nginx
sudo -- sh -c "echo 192.168.9.11 www.testdomain.com >> /etc/hosts"

go to web browser url: www.testdomain.com or localhost: 192.168.1.204:3000

Thank you all in advance for your replies.

Answer the question

In order to leave comments, you need to log in

3 answer(s)
A
Andrey Barbolin, 2020-07-29
@dronmaxman

It is unlikely that there will be a RocketChat specialist here)))
What is in the NGINX logs?
What account is NGINX running under?
What are the rights to the RochetChat directory?
You can put a self-signed certificate, the client will swear at the first connection, but it will work.

Z
Zzzz9, 2020-07-29
@Zzzz9

Is the extension entered in - "Allowed file types"?

I
iddqda, 2020-07-29
@iddqda

why not use the built-in and included by default GridFS?
And it looks like problems with access rights to the file system
. And here you need to understand that snap is a kind of sandbox in which the process is spinning.
the process itself has extended rights, but only inside its sandbox
, respectively, and the directory in which the process can write can only be used from its sandbox.
for example, this: /var/snap/rocketchat-server/common/uploads
if you need to go beyond the sandbox, then perhaps the snap process allows you to mount external directories inside, but this must be looked at and configured separately.
I'm not familiar with snap, so I can't tell.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question