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 Restart MM not possible

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    6 Posts 2 Posters 1.2k Views 4 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.
    • O Offline
      OberfragGER
      last edited by

      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?

      S 1 Reply Last reply Reply Quote 0
      • S Offline
        sdetweil @OberfragGER
        last edited by

        @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

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        O 1 Reply Last reply Reply Quote 0
        • O Offline
          OberfragGER @sdetweil
          last edited by

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

          O 1 Reply Last reply Reply Quote 0
          • O Offline
            OberfragGER @OberfragGER
            last edited by

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

            S 1 Reply Last reply Reply Quote 0
            • S Offline
              sdetweil @OberfragGER
              last edited by sdetweil

              @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

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              O 1 Reply Last reply Reply Quote 0
              • O Offline
                OberfragGER @sdetweil
                last edited by

                @sdetweil Thanks a lot. Found it now. Its ‘pm2ProcessName’.

                1 Reply Last reply Reply Quote 0
                • 1 / 1
                • First post
                  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