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

After update 2.29.0 PM2 does not work

Scheduled Pinned Locked Moved Solved Troubleshooting
20 Posts 4 Posters 2.8k 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.
  • H Offline
    htilburgs @htilburgs
    last edited by Oct 1, 2024, 7:52 PM

    pm2 logs MagicMirror --lines 100 shows

    0|MagicMirror  | [2024-10-01 21:49:35.228] [LOG]   Starting MagicMirror: v2.29.0 
    0|MagicMirror  | [2024-10-01 21:49:35.259] [ERROR] TypeError: Cannot read properties of undefined (reading 'disableHardwareAcceleration')
    0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:18:6)
    0|MagicMirror  |     at Module._compile (node:internal/modules/cjs/loader:1241:14)
    0|MagicMirror  |     at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    0|MagicMirror  |     at Module.load (node:internal/modules/cjs/loader:1091:32)
    0|MagicMirror  |     at Module._load (node:internal/modules/cjs/loader:938:12)
    0|MagicMirror  |     at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
    0|MagicMirror  |     at Module._compile (node:internal/modules/cjs/loader:1241:14)
    0|MagicMirror  |     at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    0|MagicMirror  |     at Module.load (node:internal/modules/cjs/loader:1091:32)
    0|MagicMirror  |     at Module._load (node:internal/modules/cjs/loader:938:12)
    0|MagicMirror  |     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    0|MagicMirror  |     at node:internal/main/run_main_module:23:47 
    0|MagicMirror  | [2024-10-01 21:49:35.264] [ERROR] Whoops! There was an uncaught exception... 
    0|MagicMirror  | [2024-10-01 21:49:35.266] [ERROR] TypeError: Cannot read properties of undefined (reading 'disableHardwareAcceleration')
    0|MagicMirror  |     at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:18:6)
    0|MagicMirror  |     at Module._compile (node:internal/modules/cjs/loader:1241:14)
    0|MagicMirror  |     at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    0|MagicMirror  |     at Module.load (node:internal/modules/cjs/loader:1091:32)
    0|MagicMirror  |     at Module._load (node:internal/modules/cjs/loader:938:12)
    0|MagicMirror  |     at Object.<anonymous> (/usr/local/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
    0|MagicMirror  |     at Module._compile (node:internal/modules/cjs/loader:1241:14)
    0|MagicMirror  |     at Module._extensions..js (node:internal/modules/cjs/loader:1295:10)
    0|MagicMirror  |     at Module.load (node:internal/modules/cjs/loader:1091:32)
    0|MagicMirror  |     at Module._load (node:internal/modules/cjs/loader:938:12)
    0|MagicMirror  |     at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:83:12)
    0|MagicMirror  |     at node:internal/main/run_main_module:23:47 
    0|MagicMirror  | [2024-10-01 21:49:35.267] [ERROR] MagicMirror² will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 
    0|MagicMirror  | [2024-10-01 21:49:35.268] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MagicMirrorOrg/MagicMirror/issues 
    0|MagicMirror  | [2024-10-01 21:49:37.131] [INFO]  System information:
    0|MagicMirror  | ### SYSTEM:   manufacturer: ; model: ; virtual: false
    0|MagicMirror  | ### OS:       platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.51-v8+
    0|MagicMirror  | ### VERSIONS: electron: undefined; used node: 20.9.0; installed node: 20.9.0; npm: 10.1.0; pm2: 5.4.2
    0|MagicMirror  | ### OTHER:    timeZone: Europe/Amsterdam; ELECTRON_ENABLE_GPU: undefined 
    

    (still trying to learn JS, but not afraid to ask) ☺

    S M 2 Replies Last reply Oct 1, 2024, 8:17 PM Reply Quote 0
    • S Away
      sdetweil @htilburgs
      last edited by Oct 1, 2024, 8:17 PM

      @htilburgs can you do

      pm2 delete 0
      pm2 save -f
      and then run the fixuppm2 script again

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Oct 1, 2024, 8:18 PM Reply Quote 0
      • B Offline
        butchkemper
        last edited by Oct 1, 2024, 8:18 PM

        I am in the same boat with you. After update to 2.29.0, the ~/.pm2/logs/MagicMirror-error.log has this block of messages continually repeating:

        [ERROR] TypeError: Cannot read properties of undefined (reading 'disableHardwareAcceleration')
            at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:15:6)
            at Module._compile (node:internal/modules/cjs/loader:1469:14)
            at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
            at Module.load (node:internal/modules/cjs/loader:1288:32)
            at Module._load (node:internal/modules/cjs/loader:1104:12)
            at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:33:23)
            at Module._compile (node:internal/modules/cjs/loader:1469:14)
            at Module._extensions..js (node:internal/modules/cjs/loader:1548:10)
            at Module.load (node:internal/modules/cjs/loader:1288:32)
            at Module._load (node:internal/modules/cjs/loader:1104:12)
            at Function.executeUserEntryPoint [as runMain] (node:internal/modules/run_main:174:12)
            at node:internal/main/run_main_module:28:49
        

        I made a backup of the MagicMirror directory before updating to the new version. To return to the old version, I deleted the updated MagicMirror directory and restored the backup MM directory but the error persists with V2.28.0. Something outside of the MM directory must have been updated.

        I tried restarting the system but the error continues.

        Butch

        Resistance is not Futile!
        It is voltage divided by current.

        S 1 Reply Last reply Oct 1, 2024, 8:22 PM Reply Quote 0
        • S Away
          sdetweil @sdetweil
          last edited by Oct 1, 2024, 8:18 PM

          also try

          sudo npm i pm2 -g

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          1 Reply Last reply Reply Quote 0
          • S Away
            sdetweil @butchkemper
            last edited by Oct 1, 2024, 8:22 PM

            @butchkemper can you do to show the nodejs version
            node -v

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            1 Reply Last reply Reply Quote 0
            • B Offline
              butchkemper
              last edited by Oct 1, 2024, 8:24 PM

              pi@MagicMirror:~ $ node -v
              v20.17.0
              pi@MagicMirror:~ $
              
              

              Resistance is not Futile!
              It is voltage divided by current.

              1 Reply Last reply Reply Quote 0
              • M Offline
                MarcLandis @htilburgs
                last edited by Oct 1, 2024, 8:28 PM

                @htilburgs said in After update 2.29.0 PM2 does not work:

                VERSIONS: electron: undefined; used node: 20.9.0; installed node: 20.9.0; npm: 10.1.0; pm2: 5.4.2

                for whatever reason MM doesn’t recognises your electron version

                S 1 Reply Last reply Oct 1, 2024, 8:35 PM Reply Quote 0
                • S Away
                  sdetweil @MarcLandis
                  last edited by Oct 1, 2024, 8:35 PM

                  @MarcLandis yeh weird.

                  @htilburgs can you do
                  grep version node_modules/electron/package.json

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  1 Reply Last reply Reply Quote 0
                  • B Offline
                    butchkemper
                    last edited by Oct 1, 2024, 8:38 PM

                    @sdetweil said in After update 2.29.0 PM2 does not work:

                    grep version node_modules/electron/package.json

                    This is what I get:

                    pi@MagicMirror:~/MagicMirror $ sudo grep version node_modules/electron/package.json
                      "version": "31.1.0"
                    pi@MagicMirror:~/MagicMirror $
                    
                    

                    Resistance is not Futile!
                    It is voltage divided by current.

                    S 1 Reply Last reply Oct 1, 2024, 8:41 PM Reply Quote 0
                    • S Away
                      sdetweil @butchkemper
                      last edited by Oct 1, 2024, 8:41 PM

                      @butchkemper which is the correct value

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

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