Description
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
export ROOT_URL=http://sub.domain.ca:3000/
export PORT=3000
export MONGO_URL=mongodb://localhost:27017/rocketchat
If I ran these, and did
node /opt/Rocket.Chat/main.js
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.
CORRECTION/UPDATE
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[19560]: /opt/Rocket.Chat/programs/server/node_modules/fibers/fibers.js:92
Mar 31 11:18:57 web.smbservices.ca rocketchat[19560]: return fn.apply(this, arguments);
Mar 31 11:18:57 web.smbservices.ca rocketchat[19560]: ^
Mar 31 11:18:57 web.smbservices.ca rocketchat[19560]: Error: Must pass options.rootUrl or set ROOT_URL in the server environment
Server Setup Information
- 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