Rocketchat Service is failing with exit code 203 on debian 11

Description

Hi, I have the Problem, that my rocketchat service fails after I did an update. It exits with code 203 in Systemd. I’ve updated from Version 5.0.3 to 6.0.0 . Resetting the $NODE_PATH with $NODE_PATH=(which node) does not help.

Server Setup Information

  • Version of Rocket.Chat Server: 5.0.3 / 6.0.0
  • Operating System: Debian 11
  • Deployment Method: other methods Debian
  • Number of Running Instances: 1
  • NodeJS Version: 14.21.3
  • MongoDB Version: 6.0.10
  • Proxy: apache
  • Firewalls involved: no

Any additional Information

My Service File

### Anything between here and the comment below will become the new contents of the file

[Service]
Environment=ROOT_URL=http://localhost:3000
Environment=PORT=3000
Environment=MONGO_URL=mongodb://localhost:27017/rocketchat?replicaSet=rs01
Environment=MONGO_OPLOG_URL=mongodb://localhost:27017/local?replicaSet=rs01

### Lines below this comment will be discarded

### /lib/systemd/system/rocketchat.service
# [Unit]
# Description=The Rocket.Chat server
# After=network.target remote-fs.target nss-lookup.target nginx.service mongod.service
# [Service]
# ExecStart=$NODE_PATH /opt/Rocket.Chat/main.js
# StandardOutput=journal
# StandardError=journal
# SyslogIdentifier=rocketchat
# User=rocketchat
# [Install]
# WantedBy=multi-user.target
# EOF

systemctl status rocketchat output:

root@chat:~# systemctl status rocketchat
× rocketchat.service - The Rocket.Chat server
     Loaded: loaded (/lib/systemd/system/rocketchat.service; enabled; preset: enabled)
    Drop-In: /etc/systemd/system/rocketchat.service.d
             └─override.conf
     Active: failed (Result: exit-code) since Wed 2023-09-27 09:35:11 CEST; 2s ago
   Duration: 2ms
    Process: 4516 ExecStart=$NODE_PATH /opt/Rocket.Chat/main.js (code=exited, status=203/EXEC)
   Main PID: 4516 (code=exited, status=203/EXEC)
        CPU: 761us

Sep 27 09:35:11 chat systemd[1]: Started rocketchat.service - The Rocket.Chat server.
Sep 27 09:35:11 chat (ODE_PATH)[4516]: rocketchat.service: Failed to locate executable $NODE_PATH: No such file or directory
Sep 27 09:35:11 chat (ODE_PATH)[4516]: rocketchat.service: Failed at step EXEC spawning $NODE_PATH: No such file or directory
Sep 27 09:35:11 chat systemd[1]: rocketchat.service: Main process exited, code=exited, status=203/EXEC
Sep 27 09:35:11 chat systemd[1]: rocketchat.service: Failed with result 'exit-code'.

instead “$NODE_PATH” use “/usr/bin/node”