Rocket.Chat's Community Open Call 🎤 Jan 19th, 2022 Join us!

Upgrade from 3.18.1 to 4.1.2 use snap.But caddy can't start

Description

I upgrade from 3.18.1 to 4.1.2 use snap.But it’s will can’t start caddy.
Error message:

2021-12-02T21:41:29+08:00 systemd[1]: Started Service for snap application rocketchat-server.rocketchat-caddy.
2021-12-02T21:41:29+08:00 rocketchat-server.rocketchat-caddy[2351]: {“level”:“info”,“ts”:1638452489.7481782,“msg”:“using provided configuration”,“config_file”:"/var/snap/rocketchat-server/1494/Caddyfile",“config_adapter”:""}
2021-12-02T21:41:29+08:00 rocketchat-server.rocketchat-caddy[2351]: run: adapting config using caddyfile: /var/snap/rocketchat-server/1494/Caddyfile:2: unrecognized directive: proxy
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Main process exited, code=exited, status=1/FAILURE
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Failed with result ‘exit-code’.
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Scheduled restart job, restart counter is at 5.
2021-12-02T21:41:29+08:00 systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-caddy.
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Start request repeated too quickly.
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Failed with result ‘exit-code’.
2021-12-02T21:41:29+08:00 systemd[1]: Failed to start Service for snap application rocketchat-server.rocketchat-caddy.

How to fix it?

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: Ubuntu 20.0.4
  • Deployment Method: snap
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy:
  • Firewalls involved:

Any additional Information

2021-12-02T21:41:29+08:00 systemd[1]: Started Service for snap application rocketchat-server.rocketchat-caddy.
2021-12-02T21:41:29+08:00 rocketchat-server.rocketchat-caddy[2351]: {“level”:“info”,“ts”:1638452489.7481782,“msg”:“using provided configuration”,“config_file”:"/var/snap/rocketchat-server/1494/Caddyfile",“config_adapter”:""}
2021-12-02T21:41:29+08:00 rocketchat-server.rocketchat-caddy[2351]: run: adapting config using caddyfile: /var/snap/rocketchat-server/1494/Caddyfile:2: unrecognized directive: proxy
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Main process exited, code=exited, status=1/FAILURE
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Failed with result ‘exit-code’.
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Scheduled restart job, restart counter is at 5.
2021-12-02T21:41:29+08:00 systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-caddy.
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Start request repeated too quickly.
2021-12-02T21:41:29+08:00 systemd[1]: snap.rocketchat-server.rocketchat-caddy.service: Failed with result ‘exit-code’.
2021-12-02T21:41:29+08:00 systemd[1]: Failed to start Service for snap application rocketchat-server.rocketchat-caddy.