From the RC forums: https://forums.rocket.chat/t/upgrading-to-3-0-0/5892/4
In case anyone needs this:
How to upgrade the DigitalOcean Rocket.Chat droplet to 3.0.2
Install the droplet as usual (if you’re already using it, that’s ok too).
Upgrade the update tool:
sudo rocketchatctl upgrade-rocketchatctl
Upgrade Rocket.Chat:
sudo rocketchatctl update
The server is broken, doesn’t start, because it requires Nodejs 12.x
Install it:
sudo apt-get -y update && sudo apt-get install -y curl && curl -sL https://deb.nodesource.com/setup_12.x | sudo bash -
sudo apt-get install -y nodejs
Change the path to new nodejs in the service config:
sudo nano /lib/systemd/system/rocketchat.service
In the line beginning with “ExecStart=” replace “/usr/local/bin/node” with “/usr/bin/node”
Reload the service and start the server:
sudo systemctl daemon-reload
sudo systemctl restart rocketchat.service
Check that it’s running:
sudo systemctl status rocketchat.service
root@rocketchat-ubuntu-fra1-01:~# rocketchatctl update
Current update available for RocketChat server: from 2.4.9 to 3.0.2
% Total % Received % Xferd Average Speed Time Time Time Current
Dload Upload Total Spent Left Speed
100 223 100 223 0 0 583 0 –:–:– –:–:– –:–:– 583
100 146M 100 146M 0 0 18.7M 0 0:00:07 0:00:07 –:–:– 20.7M
npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
make: Entering directory ’/tmp/bundle/programs/server/nodemodules/fibers/build’
CXX(target) Release/obj.target/fibers/src/fibers.o
CXX(target) Release/obj.target/fibers/src/coroutine.o
CC(target) Release/obj.target/fibers/src/libcoro/coro.o
SOLINKMODULE(target) Release/obj.target/fibers.node
COPY Release/fibers.node
make: Leaving directory ’/tmp/bundle/programs/server/nodemodules/fibers/build’
Installed in `/tmp/bundle/programs/server/nodemodules/fibers/bin/linux-x64-57-glibc/fibers.node`
npm WARN lifecycle meteor-dev-bundle@~install: cannot run in wd meteor-dev-bundle@ node npm-rebuild.js (wd=/tmp/bundle/programs/server)
added 147 packages from 122 contributors and audited 305 packages in 10.851s
1 package is looking for funding
run
npm fund
for detailsfound 0 vulnerabilities
Waiting up to 60 seconds for RocketChat server to be active … 2
RocketChat server not running. Cancelling