Read the statement by Michael Teeuw here.
REMOTE CONTROL UPDATE
-
Hello, wanting to update the remote control module with this remote control my mirror does not restart what should I do?
-
@pat59 hm. worrying. lets try this
from a terminal window
cd ~/MagicMirror/modules mv MMM-Remote-Control save-remote git clone https://github.com/Jopyth/MMM-Remote-Control cd MMM-Remote-Control npm install pm2 restart mm
stop if you get an error
the error implies a failing sd card, backup now
-
@pat59 show the messages from pm2
pm2 logs --lines=100
-
@pat59 what did you update? module or MagicMirror
-
I updated with cd ~/MagicMirror
how to make you see the messages of pm2
-
@pat59 MORE than likely you upgraded which didn’t handle the nodejs requirement
can you get to a commandline on the mirror?
ssh, vnc?
-
pi@raspberrypi:~/MagicMirror $ pm2 logs mm
[TAILING] Tailing last 15 lines for [mm] process (change the value with --lines option)
/home/pi/.pm2/logs/mm-error.log last 15 lines:
0|mm | at resolveExports (node:internal/modules/cjs/loader:550:15)
0|mm | at Module._findPath (node:internal/modules/cjs/loader:628:31)
0|mm | at Module._resolveFilename (node:internal/modules/cjs/loader:1041:27)
0|mm | at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
0|mm | at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
0|mm | at Module._load (node:internal/modules/cjs/loader:908:27)
0|mm | at c._load (node:electron/js2c/node_init:2:13672)
0|mm | at Module.require (node:internal/modules/cjs/loader:1122:19)
0|mm | at require (node:internal/modules/helpers:130:18)
0|mm | at Object. (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_helper.js:18:19)
0|mm | at Module._compile (node:internal/modules/cjs/loader:1256:14)
0|mm | at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
0|mm | at Module.load (node:internal/modules/cjs/loader:1098:32)
0|mm | (Useelectron --trace-warnings ...
to show where the warning was created)
0|mm | [2025-03-09 20:02:43.107] [ERROR] (node:1422) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict
(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)/home/pi/.pm2/logs/mm-out.log last 15 lines:
0|mm | [2025-03-09 19:58:14.225] [LOG] config template file not exists, no envsubst
0|mm | [2025-03-09 19:58:14.239] [LOG] Loading module helpers …
0|mm |
0|mm | > magicmirror@2.27.0 start
0|mm | > DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js
0|mm |
0|mm | [2025-03-09 20:02:41.778] [LOG] Starting MagicMirror: v2.27.0
0|mm | [2025-03-09 20:02:41.852] [LOG] Loading config …
0|mm | [2025-03-09 20:02:41.858] [LOG] config template file not exists, no envsubst
0|mm | [2025-03-09 20:02:41.870] [LOG] Loading module helpers …
0|mm | [2025-03-09 20:02:53.609] [INFO] System information:
0|mm | ### SYSTEM: manufacturer: Raspberry Pi Foundation; model: Raspberry Pi 3 Model B Plus Rev 1.3; raspberry: [object Object]; virtual: false
0|mm | ### OS: platform: linux; distro: Raspbian GNU/Linux; release: 10; arch: arm; kernel: 5.10.103-v7+
0|mm | ### VERSIONS: electron: 29.1.6; used node: 20.9.0; installed node: 18.18.0; npm: 9.8.1; pm2: 5.3.1
0|mm | ### OTHER: timeZone: Europe/Paris; ELECTRON_ENABLE_GPU: undefined -
pi@raspberrypi:~/MagicMirror $ ssh
usage: ssh [-46AaCfGgKkMNnqsTtVvXxYy] [-B bind_interface]
[-b bind_address] [-c cipher_spec] [-D [bind_address:]port]
[-E log_file] [-e escape_char] [-F configfile] [-I pkcs11]
[-i identity_file] [-J [user@]host[:port]] [-L address]
[-l login_name] [-m mac_spec] [-O ctl_cmd] [-o option] [-p port]
[-Q query_option] [-R address] [-S ctl_path] [-W host:port]
[-w local_tun[:remote_tun]] destination [command]
pi@raspberrypi:~/MagicMirror $ -
@pat59 pm2 need more lines
ssh FROM pc TO pi
-
Hello
sorry, being a novice, I don’t understand what to do -
@pat59 pm2 logs MagicMirror lines=100