Noticed earlier that my MM had crashed for whatever reason - it’s not been touched changed in weeks.
On reboot, it wanted 44 updates.
pm2 start mm then showed nothing, with the logs giving an error:
0|mm | [10532:0127/132321.643138:FATAL:setuid_sandbox_host.cc(157)] The SUID sandbox helper binary was found, but is not configured correctly. Rather than run without sandboxing I'm aborting now. You need to make sure that /home/pi/MagicMirror/node_modules/electron/dist/chrome-sandbox is owned by root and has mode 4755.
I did
sudo chown root /home/pi/MagicMirror/node_modules/electron/dist/chrome-sandbox
sudo chmod 4755 /home/pi/MagicMirror/node_modules/electron/dist/chrome-sandbox
This seems to have fixed it, with MM now starting correctly.
What’s caused this, and is the chown/chmod the correct thing todo?