I tried following these instructions below. They were horrible and nothing worked.
Once I created the file /lib/systemd/system/rocketchat.service, reload the daemon and restart it just will not start. There is very little error msge to guide you anywhere.
However, I fell upon a read about doing export
If I ran these, and did
The server runs, I can configure ssl and run reverse proxy. But the actual daemon still will not work. Reboot the manual startup will not wok unless you do the exports, and daemon still does not work.
Any idea what is going on here? I had other weird errors going through the config, but I fixed them… either way, I feel like that documentation was not tested by anybody.
if I have done the export commands and try boot RC through systemctl I get this error in journalctl
Mar 31 11:18:57 web.smbservices.ca rocketchat: /opt/Rocket.Chat/programs/server/node_modules/fibers/fibers.js:92 Mar 31 11:18:57 web.smbservices.ca rocketchat: return fn.apply(this, arguments); Mar 31 11:18:57 web.smbservices.ca rocketchat: ^ Mar 31 11:18:57 web.smbservices.ca rocketchat: Error: Must pass options.rootUrl or set ROOT_URL in the server environment
- Version of Rocket.Chat Server: 4.5.4
- Operating System: Debian 10
- Deployment Method: read the document
- Number of Running Instances: 1
- DB Replicaset Oplog: ?
- NodeJS Version: 12
- MongoDB Version: 5.06
- Proxy: apache2
- Firewalls involved: none