• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
MagicMirror Forum
  • Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
A New Chapter for MagicMirror: The Community Takes the Lead
Read the statement by Michael Teeuw here.

[MMM-Remote-Control] Can not access remote control module

Scheduled Pinned Locked Moved Solved Troubleshooting
7 Posts 2 Posters 613 Views 2 Watching
Loading More Posts
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • R Offline
    ruffneck2
    last edited by Jan 5, 2022, 9:25 PM

    At first, I would like to thank again for developing this module MMM-Remote-Control.
    I’ve cloned it into my \MagicMirror\modules folder via manual command from Github and since this failed via automatic installer script as well:

    bash -c "$(curl -s https://raw.githubusercontent.com/Jopyth/MMM-Remote-Control/master/installer.sh)"
    

    Once I add the module to my config/config.js file with

    			{
    			module: "MMM-Remote-Control",
    			// uncomment the following line to show the URL of the remote control on the mirror
    			// position: 'bottom_left',
    			// you can hide this module afterwards from the remote control itself
    			config: {
    				apiKey: "my_ultra_secret_API_key"
    			}
    		},
    

    or the command given on Github page

    {
        module: 'MMM-Remote-Control',
        // uncomment the following line to show the URL of the remote control on the mirror
        // position: 'bottom_left',
        // you can hide this module afterwards from the remote control itself
        config: {
            customCommand: {},  // Optional, See "Using Custom Commands" below
            showModuleApiMenu: true, // Optional, Enable the Module Controls menu
            secureEndpoints: true, // Optional, See API/README.md
            // uncomment any of the lines below if you're gonna use it
            // customMenu: "custom_menu.json", // Optional, See "Custom Menu Items" below
            // apiKey: "", // Optional, See API/README.md for details
            // classes: {} // Optional, See "Custom Classes" below
        }
    },
    

    the MagicMirror² does not start after performing pm2 restart mm.sh
    Once I uncomment the module in config.js it’s working fine again.
    Does anybody could provide a hint, so that I’d be able to shutdown the MagicMirror² remotely?
    I also get connection to the mirror from any device in my home network via http://ipaddressofpi:8080/ when uncommenting the module, adding this information in hope it would help to solve this issue.

    S 1 Reply Last reply Jan 5, 2022, 11:40 PM Reply Quote 0
    • R Offline
      ruffneck2 @sdetweil
      last edited by Jan 6, 2022, 5:37 PM

      @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:

      1 Reply Last reply Reply Quote 1
      • S Offline
        sdetweil @ruffneck2
        last edited by Jan 5, 2022, 11:40 PM

        @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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Jan 6, 2022, 11:22 AM Reply Quote 0
        • R Offline
          ruffneck2 @sdetweil
          last edited by Jan 6, 2022, 11:22 AM

          @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=100

          Please 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
          
          S 1 Reply Last reply Jan 6, 2022, 1:12 PM Reply Quote 0
          • S Offline
            sdetweil @ruffneck2
            last edited by Jan 6, 2022, 1:12 PM

            @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?
            do

            node -v
            npm -v
            

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Jan 6, 2022, 4:34 PM Reply Quote 0
            • R Offline
              ruffneck2 @sdetweil
              last edited by Jan 6, 2022, 4:34 PM

              @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.0

              Yes, 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?

              S 1 Reply Last reply Jan 6, 2022, 4:56 PM Reply Quote 0
              • S Offline
                sdetweil @ruffneck2
                last edited by Jan 6, 2022, 4:56 PM

                @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 script

                see 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 fix

                if you choose to upgrade then
                2 rerun with ‘apply’ parameter to DO the upgrade (make changes)

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Jan 6, 2022, 5:37 PM Reply Quote 0
                • R Offline
                  ruffneck2 @sdetweil
                  last edited by Jan 6, 2022, 5:37 PM

                  @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:

                  1 Reply Last reply Reply Quote 1
                  • 1 / 1
                  1 / 1
                  • First post
                    1/7
                    Last post
                  Enjoying MagicMirror? Please consider a donation!
                  MagicMirror created by Michael Teeuw.
                  Forum managed by Sam, technical setup by Karsten.
                  This forum is using NodeBB as its core | Contributors
                  Contact | Privacy Policy