Read the statement by Michael Teeuw here.
[MMM-Remote-Control] Can not access remote control module
-
@ruffneck2 could you look at the messages recorded by pm2
pm2 logs --lines=???
??? is a number, default 15, u may have to make that bigger, 100 maybe.
or look at the log files in the ~/.pm2/logs folder
note the dot in front of pm2, by convention, this is considered hidden from file lists, without additional parms
-
@sdetweil said in [MMM-Remote-Control] Can not access remote control module:
pm2 logs --lines=
Thanks for your reply.
I’ve performed pm2 logs --lines=100Please find result below:
/home/pi/.pm2/logs/mm-error.log last 100 lines: 0|mm | at Module._compile (module.js:606:28) 0|mm | at Object.Module._extensions..js (module.js:653:10) 0|mm | at Module.load (module.js:561:32) 0|mm | at tryModuleLoad (module.js:504:12) 0|mm | at Function.Module._load (module.js:496:3) 0|mm | at Module.require (module.js:586:17) 0|mm | at require (internal/module.js:11:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/lib/tasks/branch.js:6:24) 0|mm | /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/lib/parsers/parse-branch.js:10 0|mm | new utils_1.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s, (result, [current, name, commit, label]) => { 0|mm | ^ 0|mm | 0|mm | SyntaxError: Invalid regular expression flags 0|mm | at createScript (vm.js:80:10) 0|mm | at Object.runInThisContext (vm.js:139:10) 0|mm | at Module._compile (module.js:606:28) 0|mm | at Object.Module._extensions..js (module.js:653:10) 0|mm | at Module.load (module.js:561:32) 0|mm | at tryModuleLoad (module.js:504:12) 0|mm | at Function.Module._load (module.js:496:3) 0|mm | at Module.require (module.js:586:17) 0|mm | at require (internal/module.js:11:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/lib/tasks/branch.js:6:24) 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | [9288:0105/224644.968557:FATAL:bus.cc(1152)] D-Bus connection was disconnected. Aborting. 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | npm ERR! code ELIFECYCLE 0|mm | npm ERR! errno 1 0|mm | npm ERR! magicmirror@2.5.0 start: `sh run-start.sh` 0|mm | npm ERR! Exit status 1 0|mm | npm ERR! 0|mm | npm ERR! Failed at the magicmirror@2.5.0 start script. 0|mm | npm ERR! This is probably not a problem with npm. There is likely additional logging output above. 0|mm | 0|mm | npm ERR! A complete log of this run can be found in: 0|mm | npm ERR! /home/pi/.npm/_logs/2022-01-05T21_54_38_745Z-debug.log 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | Failure: Error: connect ECONNREFUSED ::1:5005 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration. 0|mm | App threw an error during load 0|mm | /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/lib/parsers/parse-branch.js:10 0|mm | new utils_1.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s, (result, [current, name, commit, label]) => { 0|mm | ^ 0|mm | 0|mm | SyntaxError: Invalid regular expression flags 0|mm | at createScript (vm.js:80:10) 0|mm | at Object.runInThisContext (vm.js:139:10) 0|mm | at Module._compile (module.js:606:28) 0|mm | at Object.Module._extensions..js (module.js:653:10) 0|mm | at Module.load (module.js:561:32) 0|mm | at tryModuleLoad (module.js:504:12) 0|mm | at Function.Module._load (module.js:496:3) 0|mm | at Module.require (module.js:586:17) 0|mm | at require (internal/module.js:11:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/lib/tasks/branch.js:6:24) 0|mm | /home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/lib/parsers/parse-branch.js:10 0|mm | new utils_1.LineParser(/^(\*\s)?(\S+)\s+([a-z0-9]+)\s(.*)$/s, (result, [current, name, commit, label]) => { 0|mm | ^ 0|mm | 0|mm | SyntaxError: Invalid regular expression flags 0|mm | at createScript (vm.js:80:10) 0|mm | at Object.runInThisContext (vm.js:139:10) 0|mm | at Module._compile (module.js:606:28) 0|mm | at Object.Module._extensions..js (module.js:653:10) 0|mm | at Module.load (module.js:561:32) 0|mm | at tryModuleLoad (module.js:504:12) 0|mm | at Function.Module._load (module.js:496:3) 0|mm | at Module.require (module.js:586:17) 0|mm | at require (internal/module.js:11:18) 0|mm | at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-Remote-Control/node_modules/simple-git/src/lib/tasks/branch.js:6:24) 0|mm | libGL error: MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information 0|mm | MESA-LOADER: failed to retrieve device information
-
@ruffneck2 you are running MagicMirror 2.5?
current is 2.18, and released every 3 months, so 4 years old.
what node/nom version are you using?
donode -v npm -v
-
@sdetweil said in [MMM-Remote-Control] Can not access remote control module:
npm -v
Node Version is v9.11.2
NPM Version is 5.6.0Yes, unfortunately I’m using MagicMirror 2.5.0, because my mirror is already finished and mounted to the wall.
In the past I had a lot of trouble after trying to update to a higher version. I had to disassemble the entire system, re-install it to get it working again. To avoid running into same issue once again, I decided to be fine with running system, but now I have found this helpful module and would like to use it to shutdown the system more securely.
However, does it has to do with incompatible version of the module and old files of node and npm? Should I use an older version of the module instead? -
@ruffneck2 this is certainly because of the system level …
I do not know if you can make it work…
IF you decide to upgrade, make a backup of the MM folder
and try my upgrade scriptsee https://github.com/sdetweil/MagicMirror_scripts
its a 2 part process…
1 is test, identify any issues, make no changes
you fix any issue u want to fixif you choose to upgrade then
2 rerun with ‘apply’ parameter to DO the upgrade (make changes) -
@sdetweil
I removed the MMM-Remote-Control folder with newest Release version and downloaded and installed an older Release version (1.1.5) and this one is working on my old mirror which is totally fine for me :)
I’m happy now, so thank you for your efforts and support on this topic. :flexed_biceps_light_skin_tone: