[error] rocketchat-server.rocketchat-server[319537]: /snap/rocketchat-server/1510/helpers/rocketchat.sh: line 22: 319595 Illegal instruction (core dumped) node $SNAP/main.js

I have been running RockChat for sever years without a problem. Experienced the SSL Certificate problem the other week. While trying to fix it I gave up and decided to do a clean install of Ubuntu 20.04.03-desktop-amd64 and of RocketChat 4.3.2.

oe@joe-KJ382AA-ABA-m9250f:~$ sudo snap logs -f rocketchat-server.rocketchat-server
2022-02-15T12:52:39-05:00 systemd[1]: Started Service for snap application rocketchat-server.rocketchat-server.
2022-02-15T12:52:41-05:00 rocketchat-server.rocketchat-server[319537]: node $SNAP/main.js
2022-02-15T12:52:50-05:00 rocketchat-server.rocketchat-server[319537]: /snap/rocketchat-server/1510/helpers/rocketchat.sh: line 22: 319595 Illegal instruction (core dumped) node $SNAP/main.js
2022-02-15T12:52:50-05:00 rocketchat-server.rocketchat-server[319661]: pkill: pidfile not valid
2022-02-15T12:52:50-05:00 rocketchat-server.rocketchat-server[319661]: Try `pkill --help’ for more information.
2022-02-15T12:52:50-05:00 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Control process exited, code=exited, status=1/FAILURE
2022-02-15T12:52:50-05:00 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Failed with result ‘exit-code’.
2022-02-15T12:52:51-05:00 systemd[1]: snap.rocketchat-server.rocketchat-server.service: Scheduled restart job, restart counter is at 8.
2022-02-15T12:52:51-05:00 systemd[1]: Stopped Service for snap application rocketchat-server.rocketchat-server.
2022-02-15T12:52:51-05:00 systemd[1]: Started Service for snap application rocketchat-server.rocketchat-server.
2022-02-15T12:52:53-05:00 rocketchat-server.rocketchat-server[319662]: node $SNAP/main.js

joe@joe-KJ382AA-ABA-m9250f:~$ sudo snap logs -f rocketchat-server.rocketchat-caddy
2022-02-15T12:51:16-05:00 rocketchat-server.rocketchat-caddy[318568]: {“level”:“info”,“ts”:1644947476.1444998,“logger”:“http”,“msg”:“enabling automatic TLS certificate management”,“domains”:[“XXX.homeip.net”]}
2022-02-15T12:51:16-05:00 rocketchat-server.rocketchat-caddy[318568]: {“level”:“info”,“ts”:1644947476.1464553,“logger”:“tls”,“msg”:“finished cleaning storage units”}
2022-02-15T12:51:16-05:00 rocketchat-server.rocketchat-caddy[318568]: {“level”:“info”,“ts”:1644947476.1694605,“msg”:“autosaved config (load with --resume flag)”,“file”:"/root/snap/rocketchat-server/1510/.config/caddy/autosave.json"}
2022-02-15T12:51:16-05:00 rocketchat-server.rocketchat-caddy[318568]: Caddy proxying https://XXX.homeip.nethttp://127.0.0.1:3000
2022-02-15T12:51:24-05:00 rocketchat-server.rocketchat-caddy[318568]: {“level”:“error”,“ts”:1644947484.3012838,“logger”:“http.log.error”,“msg”:“dial tcp 127.0.0.1:3000: connect: connection refused”,“request”:{“remote_addr”:“51.81.167.146:42684”,“proto”:“HTTP/2.0”,“method”:“GET”,“host”:“XXX.homeip.net”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (iPhone; CPU iPhone OS 15_1_1 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/15.1 Mobile/15E148 Safari/604.1”],“Accept”:["/"]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4867,“proto”:“h2”,“proto_mutual”:true,“server_name”:“XXX.homeip.net”}},“duration”:0.000431802,“status”:502,“err_id”:“y379az9uj”,“err_trace”:“reverseproxy.statusError (reverseproxy.go:857)”}
2022-02-15T12:51:35-05:00 rocketchat-server.rocketchat-caddy[318568]: {“level”:“error”,“ts”:1644947495.713178,“logger”:“http.log.error”,“msg”:“dial tcp 127.0.0.1:3000: connect: connection refused”,“request”:{“remote_addr”:“179.43.169.181:36652”,“proto”:“HTTP/1.1”,“method”:“GET”,“host”:“XXX.homeip.net”,“uri”:"/",“headers”:{“User-Agent”:[“Mozilla/5.0 (X11; Linux i686; rv:10.0) Gecko/20100101 Firefox/10.0”]},“tls”:{“resumed”:false,“version”:772,“cipher_suite”:4867,“proto”:"",“proto_mutual”:true,“server_name”:“XXX.homeip.net”}},“duration”:0.000299742,“status”:502,“err_id”:“c68jy7y8i”,“err_trace”:“reverseproxy.statusError (reverseproxy.go:857)”}

Server Setup Information

  • Version of Rocket.Chat Server: 4.3.2
  • Operating System: Ubuntu 20.04.03-desktop-amd64
  • Deployment Method: sudo snap install rocketchat-server
  • Number of Running Instances:
  • DB Replicaset Oplog:
  • NodeJS Version:
  • MongoDB Version:
  • Proxy:
  • Firewalls involved: N/A

Any additional Information

Hi!

We have seen some errors like this one, surfacing on newer versions to updated sharp lib, if I recall it correctly.

It may or may not be this case, but… please, check out this thread here:

we where able to isolate the CPU AMD Phenom II X6 1100T, and changing servers solved

Thanks!

I will review links. FYI 8 year old HP Pavilion Elite m9250f Desktop Computer 2.66GHz Intel Core 2 Quad Processor Q6700
Thanks