VPS Install help


#1

Hi I a VPS with Ubuntu 16.04 LTS installed and I have got Rocket Chat installed and running and I can access it OK from:

IP Address:3000 & example.comain.com:3000 without any problems but when I try and just access it via the domain name with any port number it will not go to the https website address.

I have edited the Caddyfile with the domain and did a restart using sudo systemctl restart snap.rocketchat-server.rocketchat-caddy as instructed but when I do a check using sudo systemctl status snap.rocketchat-server.rocketchat-caddy this is outputed:

root@localhost:~# sudo systemctl status snap.rocketchat-server.rocketchat-caddy

● snap.rocketchat-server.rocketchat-caddy.service - Service for snap application rocketchat-server.rocketchat-caddy
Loaded: loaded (/etc/systemd/system/snap.rocketchat-server.rocketchat-caddy.service; enabled; vendor preset: enabled)
Active: inactive (dead) (Result: exit-code) since Tue 2018-01-02 18:33:37 UTC; 50s ago
Process: 2360 ExecStart=/usr/bin/snap run rocketchat-server.rocketchat-caddy (code=exited, status=1/FAILURE)
Main PID: 2360 (code=exited, status=1/FAILURE)

Jan 02 18:33:37 localhost systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Unit entered failed state.
Jan 02 18:33:37 localhost systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Failed with result ‘exit-code’.
Jan 02 18:33:37 localhost systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Service hold-off time over, scheduling restart.
Jan 02 18:33:37 localhost systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-caddy.
Jan 02 18:33:37 localhost systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Start request repeated too quickly.
Jan 02 18:33:37 localhost systemd[1]: Failed to start Service for snap application rocketchat-server.rocketchat-caddy.
root@localhost:~#

Any help would be appreciated as I have it running without any problems on my testing dedicated server but not on this VPS.

Thanks


#2

You should put Rocket Chat behind a Reverse Proxy like nginx, caddy, apache etc… and ONLY open ports 80, 443 and 22.

I run rocket chat via Docker sitting behind nginx.


#3

I managed to get it sorted thanks.

Moved away from a VPS to a dedicated server and worked without any problems.

Thanks