Read the statement by Michael Teeuw here.
MMM-remote-control Restart MM not possible
-
Hi,
today i reinstalled my MagicMirror.
I installed Buster and used the script from @sdetweil for it. I installed some modules without any problem and also MMM-remote-control.After the install i recieved “PM2 ist not installed or unlinked”. So i did
cd ~/MagicMirror/modules/MMM-Remote-Control npm link pm2
This error was gone. Bit now another error inside the module. The log means:
[24.11.2021 22:19.44.993] [LOG] PM2 process: restart mm [24.11.2021 22:19.45.041] [LOG] Error: process or namespace not found at /usr/lib/node_modules/pm2/lib/API.js:1524:28 at /usr/lib/node_modules/pm2/lib/Client.js:735:12 at /usr/lib/node_modules/pm2/node_modules/pm2-axon-rpc/lib/client.js:45:10 at Parser.<anonymous> (/usr/lib/node_modules/pm2/node_modules/pm2-axon/lib/sockets/req.js:67:8) at Parser.emit (events.js:315:20) at Parser._write (/usr/lib/node_modules/pm2/node_modules/amp/lib/stream.js:91:16) at writeOrBuffer (internal/streams/writable.js:358:12) at Parser.Writable.write (internal/streams/writable.js:303:10) at Socket.ondata (internal/streams/readable.js:719:22) at Socket.emit (events.js:315:20)
Any ideas how to fix that?
-
@oberfragger said in MMM-remote-control Restart MM not possible:
and used the script from
my script names the MM process MagicMirror
pm2 status will show you the names of the processes it manages
so, I think u have to change the rc parm for the pm2 process name
-
@sdetweil Thanks for your Info.
Sorry for asking… i dnot know what you mean with “RC”change the rc parm for the pm2 process name
or how tho change the process name…
-
@sdetweil Ui. I just found a possible solution.
I editet the node_helper.js in the folder /home/pi/MagicMirror/modules/MMM-Remote-Control
Line 959 from:let processName = query.processName || this.thisConfig.pm2ProcessName || "mm";
to
let processName = query.processName || this.thisConfig.pm2ProcessName || "MagicMirror";
Lets see how dirty this is…and if this destroys other things.
-
@oberfragger this.thisConfig.pm2ProcessName
means there is a configuration option for the remote control (aka rc) module, so you don’t have to change the code
-
@sdetweil Thanks a lot. Found it now. Its ‘pm2ProcessName’.