Upgrade from 2.0 to 3.0

Description

Error: The module '/opt/Rocket.Chat/programs/server/node_modules/fibers/bin/linux-x64-57-glibc/fibers.node

When starting rocketchat service

Server Setup Information

  • Version of Rocket.Chat Server:
  • Operating System: Debian 9
  • Deployment Method: source
  • Number of Running Instances: 1
  • DB Replicaset Oplog:
  • NodeJS Version: 12.14
  • MongoDB Version: v3.6.17
  • Proxy: nginx
  • Firewalls involved: none

Any additional Information

So i get this error when trying to upgrade from version 2 to latest version. It seems that rocket chat is still looking for fibers in the old folder linux-x64-57-glibc but instead i now have the linux-x64-72-glibc,
how can i resolve this?

When you upgrade you are completely replacing your Rocket.Chat folder right?

If you just drop your new files in on top you’re likely to get an error like this.

No i am actually deleting the whole folder nd recreating as per the update guide.

sudo rm -rf /opt/Rocket.Chat
curl -L https://releases.rocket.chat/latest/download -o /tmp/rocket.chat.tgz
tar -xzf /tmp/rocket.chat.tgz -C /tmp
cd /tmp/bundle/programs/server && npm install
sudo mv /tmp/bundle /opt/Rocket.Chat

The error i then get is this:

Feb 27 11:40:56 chat rocketchat[679]: Error: Cannot find module ‘/opt/Rocket.Chat/programs/server/node_modules/fibers/bin/linux-x64-57-glibc/fibers’
Feb 27 11:40:56 chat rocketchat[679]: at Function.Module._resolveFilename (module.js:548:15)
Feb 27 11:40:56 chat rocketchat[679]: at Function.Module._load (module.js:475:25)
Feb 27 11:40:56 chat rocketchat[679]: at Module.require (module.js:597:17)
Feb 27 11:40:56 chat rocketchat[679]: at require (internal/module.js:11:18)
Feb 27 11:40:56 chat rocketchat[679]: at Object. (/opt/Rocket.Chat/programs/server/node_modules/fibers/fibers.js:14:39)
Feb 27 11:40:56 chat rocketchat[679]: at Module._compile (module.js:653:30)

It looks like rocketchat is looking for fibers in the old directory /linux-x64-57-glibc/ where as now we have /linux-x64-72-glibc

Anyone can help with this ? I cant seem to get it to work.

Solved it : needed to change path to node from /usr/bin/node to /usr/local/bin/node in the rocket chat service file.