Snap install don't work

Hello!
Please! i need help )
I installed RC using SNAP on Debian 11- No errors.
But the site is not available in http: // localhost: 3000.
PS. Newbie in Linux.

Server Setup Information

  • Version of Rocket.Chat Server: 5.0.6
  • Operating System: Debian 11
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy: caddy
  • Firewalls involved: not used

Key Value
backup-on-refresh disable
caddy enable
https disable
ignore-errors false
mongo-oplog-url mongodb://localhost:27017/local
mongo-url mongodb://localhost:27017/parties
port 3000
siteurl http://localhost:3000

Hi! And welcome to our community :slight_smile:

While snap is indeed very easy to install, we are suggesting to deploy using docker or k8s.

Have you seen this doc about common tasks for a snap deployment?

We will need more information, like logs, or what are the steps you followed to understand what the error might be.

Please, consider using docker. Here is the doc for that:

Hello.
I try some commands
sudo snap set rocketchat-server https=disable
sudo snap set rocketchat-server caddy-url=http://
sudo snap set rocketchat-server caddy=enable
sudo systemctl restart snap.rocketchat-server.rocketchat-server.service
sudo systemctl restart snap.rocketchat-server.rocketchat-caddy.service

and
sudo snap logs -f rocketchat-server.rocketchat-server
2022-09-26T09:00:26+03:00 rocketchat-server.rocketchat-server[8546]: pkill: pidfile not valid
2022-09-26T09:00:26+03:00 rocketchat-server.rocketchat-server[8546]: Try `pkill --help’ for more information.
2022-09-26T09:00:26+03:00 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Control process exited, code=exited, status=1/FAILURE
2022-09-26T09:00:26+03:00 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Failed with result ‘exit-code’.
2022-09-26T09:00:26+03:00 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Consumed 15.571s CPU time.
2022-09-26T09:00:26+03:00 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Scheduled restart job, restart counter is at 65.
2022-09-26T09:00:26+03:00 systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-server.
2022-09-26T09:00:26+03:00 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Consumed 15.571s CPU time.
2022-09-26T09:00:26+03:00 systemd[1]: Started Service for snap application rocketchat-server.rocketchat-server.
2022-09-26T09:00:26+03:00 rocketchat-server.rocketchat-server[8548]: node $SNAP/main.js

sudo snap logs -f rocketchat-server.rocketchat-caddy
2022-09-26T08:49:54+03:00 rocketchat-server.rocketchat-caddy[3559]: 2022/09/26 08:49:54 define JAVA_HOME environment variable to use the Java trust
2022-09-26T08:49:54+03:00 rocketchat-server.rocketchat-caddy[3559]: {“level”:“error”,“ts”:1664171394.7823708,“logger”:“pki.ca.local”,“msg”:“failed to install root certificate”,“error”:“install is not supported on this system”,“certificate_file”:“storage:pki/authorities/local/root.crt”}
2022-09-26T08:49:54+03:00 rocketchat-server.rocketchat-caddy[3559]: {“level”:“info”,“ts”:1664171394.7830374,“logger”:“tls.cache.maintenance”,“msg”:“stopped background certificate maintenance”,“cache”:“0xc0002f9570”}
2022-09-26T08:49:54+03:00 rocketchat-server.rocketchat-caddy[3559]: reverse-proxy: loading new config: http app module: start: tcp: listening on :80: listen tcp :80: bind: address already in use
2022-09-26T08:49:54+03:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Main process exited, code=exited, status=1/FAILURE
2022-09-26T08:49:54+03:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Failed with result ‘exit-code’.
2022-09-26T08:49:54+03:00 systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-caddy.
2022-09-26T08:49:54+03:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Start request repeated too quickly.
2022-09-26T08:49:54+03:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Failed with result ‘exit-code’.
2022-09-26T08:49:54+03:00 systemd[1]: Failed to start Service for snap application rocketchat-server.rocketchat-caddy.

Hi!

This seems to be the error. Looks like you already have something running in port 80, so it cannot bind a second port to it.

I see this, but command
lsof -i :80 | grep LISTEN
has no answer