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.

    MagicMirror no longer launches

    Scheduled Pinned Locked Moved Unsolved Troubleshooting
    38 Posts 4 Posters 8.8k Views 3 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
      RIKKO14 @sdetweil
      last edited by

      @sdetweil So, I do :

      sudo npm install pm2 -g
      
      

      Sans titre.png
      then I reboot my Pi but the problem stile the same, I Have this screen :
      Sans titre.png

      S 1 Reply Last reply Reply Quote 0
      • S Do not disturb
        sdetweil @RIKKO14
        last edited by sdetweil

        @RIKKO14 your second screen is only the top.
        open a terminal window and
        do

        pm2 stop all
        pm2 flush 
        pm2 status
        

        should show MagicMirror as the pgm to run

        then do

        pm2 start MagicMirror 
        

        wait

        does it appear on screen?

        if not do

        pm2 stop all
        pm2 logs --lines=50 >somefile.txt 
         ctrl-c to stop log output
        

        show content of somefile.txt here

        BR CAREFUL some log info will expose your calendar url…
        edit somefile.txt and xxx out the private part.of url

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        R 1 Reply Last reply Reply Quote 0
        • R Offline
          RIKKO14 @sdetweil
          last edited by RIKKO14

          @sdetweil

          pi@raspberrypi:~ $ pm2 stop all
          pm2 flush 
          pm2 status
          
          >>>> In-memory PM2 is out-of-date, do:
          >>>> $ pm2 update
          In memory PM2 version: 5.2.2
          Local PM2 version: 5.3.1
          
          [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
          [PM2] [MagicMirror](0) ✓
          ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
          │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
          ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
          │ 0  │ MagicMirror        │ fork     │ 567… │ stopped   │ 0%       │ 0b       │
          └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
          [PM2] Flushing /home/pi/.pm2/pm2.log
          
          >>>> In-memory PM2 is out-of-date, do:
          >>>> $ pm2 update
          In memory PM2 version: 5.2.2
          Local PM2 version: 5.3.1
          
          [PM2] Flushing:
          [PM2] /home/pi/.pm2/logs/MagicMirror-out.log
          [PM2] /home/pi/.pm2/logs/MagicMirror-error.log
          [PM2] Logs flushed
          
          >>>> In-memory PM2 is out-of-date, do:
          >>>> $ pm2 update
          In memory PM2 version: 5.2.2
          Local PM2 version: 5.3.1
          
          ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
          │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
          ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
          │ 0  │ MagicMirror        │ fork     │ 567… │ stopped   │ 0%       │ 0b       │
          └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
          pi@raspberrypi:~ $ pm2 start MagicMirror 
          
          >>>> In-memory PM2 is out-of-date, do:
          >>>> $ pm2 update
          In memory PM2 version: 5.2.2
          Local PM2 version: 5.3.1
          
          [PM2] Applying action restartProcessId on app [MagicMirror](ids: [ 0 ])
          [PM2] [MagicMirror](0) ✓
          [PM2] Process successfully started
          ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
          │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
          ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
          │ 0  │ MagicMirror        │ fork     │ 567… │ online    │ 0%       │ 2.7mb    │
          └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
          pi@raspberrypi:~ $ pm2 stop all
          pm2 logs --lines=50 >somefile.txt 
           ctrl-c to stop log output
          
          >>>> In-memory PM2 is out-of-date, do:
          >>>> $ pm2 update
          In memory PM2 version: 5.2.2
          Local PM2 version: 5.3.1
          [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
          [PM2] [MagicMirror](0) ✓
          ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
          │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
          ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
          │ 0  │ MagicMirror        │ fork     │ 567… │ stopped   │ 0%       │ 0b       │
          └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
          
          
          
          
          S 1 Reply Last reply Reply Quote 0
          • S Do not disturb
            sdetweil @RIKKO14
            last edited by

            @RIKKO14 ok, do the

            pm2 update as it says

            probably have to do
            sudo pm2 update
            as it is installed globally in protected folders

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            R 1 Reply Last reply Reply Quote 0
            • R Offline
              RIKKO14 @sdetweil
              last edited by

              @sdetweil Sans titre.png

              S 1 Reply Last reply Reply Quote 0
              • S Do not disturb
                sdetweil @RIKKO14
                last edited by

                @RIKKO14 yes, it’s stupid. run the fixuppm2 script from my scripts page

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                R 1 Reply Last reply Reply Quote 0
                • R Offline
                  RIKKO14 @sdetweil
                  last edited by

                  @sdetweil this script : ?

                  bash -c  "$(curl -sL  https://www.dropbox.com/s/cy2z7lbkpifcbrk/fixuppm2.sh?dl=0)"
                  
                  
                  S 1 Reply Last reply Reply Quote 0
                  • S Do not disturb
                    sdetweil @RIKKO14
                    last edited by

                    @RIKKO14 no… from my git repo

                    https://github.com/sdetweil/MagicMirror_scripts

                    Sam

                    How to add modules

                    learning how to use browser developers window for css changes

                    R 1 Reply Last reply Reply Quote 0
                    • R Offline
                      RIKKO14 @sdetweil
                      last edited by

                      @sdetweil so this one :

                      bash -c "$(curl -sL https://raw.githubusercontent.com/sdetweil/MagicMirror_scripts/master/fixuppm2.sh)"
                      
                      S 1 Reply Last reply Reply Quote 0
                      • S Do not disturb
                        sdetweil @RIKKO14
                        last edited by

                        @RIKKO14 yes

                        Sam

                        How to add modules

                        learning how to use browser developers window for css changes

                        R 1 Reply Last reply Reply Quote 0
                        • R Offline
                          RIKKO14 @sdetweil
                          last edited by

                          @sdetweil
                          Sans titre.png

                          S 1 Reply Last reply Reply Quote 0
                          • S Do not disturb
                            sdetweil @RIKKO14
                            last edited by

                            @RIKKO14 and reboot

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            R 1 Reply Last reply Reply Quote 0
                            • R Offline
                              RIKKO14 @sdetweil
                              last edited by

                              @sdetweil I reboot my Pi but It stile the same sceen…
                              pm2 doesn’t launch…
                              Sans titre.png

                              S 1 Reply Last reply Reply Quote 0
                              • S Do not disturb
                                sdetweil @RIKKO14
                                last edited by

                                @RIKKO14 ok, show

                                output of

                                pm2 status
                                pm2 logs --lines=50
                                

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                R 1 Reply Last reply Reply Quote 0
                                • R Offline
                                  RIKKO14 @sdetweil
                                  last edited by RIKKO14

                                  @sdetweil always stile the same problem of “Electron”…

                                  Sans titre1.png Sans titre2.png
                                  Sans titre3.png

                                  S 1 Reply Last reply Reply Quote 0
                                  • S Do not disturb
                                    sdetweil @RIKKO14
                                    last edited by

                                    @RIKKO14 ok, the electron install problem.

                                    can you show results of
                                    uname -a

                                    and do

                                    pm2 stop all
                                    cd ~/MagicMirror 
                                    npm install electron@29.1.6
                                     npm start
                                    

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    R 1 Reply Last reply Reply Quote 0
                                    • R Offline
                                      RIKKO14 @sdetweil
                                      last edited by

                                      @sdetweil

                                      pi@raspberrypi:~ $ pm2 stop all
                                      cd ~/MagicMirror 
                                      npm install electron@29.1.6
                                       npm start
                                      [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
                                      [PM2] [MagicMirror](0) ✓
                                      ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                                      │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
                                      ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                                      │ 0  │ MagicMirror        │ fork     │ 8615 │ stopped   │ 0%       │ 0b       │
                                      └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                                      npm ERR! code ENOTEMPTY
                                      npm ERR! syscall rename
                                      npm ERR! path /home/pi/MagicMirror/node_modules/caniuse-lite
                                      npm ERR! dest /home/pi/MagicMirror/node_modules/.caniuse-lite-6h1pL5No
                                      npm ERR! errno -39
                                      npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/caniuse-lite' -> '/home/pi/MagicMirror/node_modules/.caniuse-lite-6h1pL5No'
                                      
                                      npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-04-26T16_18_54_942Z-debug-0.log
                                      
                                      > magicmirror@2.27.0 start
                                      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                      
                                      App threw an error during load
                                      Error: Cannot find module 'ansis'
                                      Require stack:
                                      - /home/pi/MagicMirror/js/logger.js
                                      - /home/pi/MagicMirror/js/app.js
                                      - /home/pi/MagicMirror/js/electron.js
                                      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                      - 
                                          at node:internal/modules/cjs/loader:1084:15
                                          at Function.<anonymous> (node:electron/js2c/browser_init:2:116646)
                                          at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                          at node:internal/modules/cjs/loader:929:27
                                          at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                          at Module.require (node:internal/modules/cjs/loader:1150:19)
                                          at require (node:internal/modules/cjs/helpers:121:18)
                                          at /home/pi/MagicMirror/js/logger.js:5:19
                                          at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:2)
                                          at Module._compile (node:internal/modules/cjs/loader:1271:14)
                                          at Object..js (node:internal/modules/cjs/loader:1326:10)
                                          at Module.load (node:internal/modules/cjs/loader:1126:32)
                                          at node:internal/modules/cjs/loader:967:12
                                          at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                          at Module.require (node:internal/modules/cjs/loader:1150:19)
                                          at require (node:internal/modules/cjs/helpers:121:18)
                                      A JavaScript error occurred in the main process
                                      Uncaught Exception:
                                      Error: Cannot find module 'ansis'
                                      Require stack:
                                      - /home/pi/MagicMirror/js/logger.js
                                      - /home/pi/MagicMirror/js/app.js
                                      - /home/pi/MagicMirror/js/electron.js
                                      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                      - 
                                          at node:internal/modules/cjs/loader:1084:15
                                          at Function.<anonymous> (node:electron/js2c/browser_init:2:116646)
                                          at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                          at node:internal/modules/cjs/loader:929:27
                                          at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                          at Module.require (node:internal/modules/cjs/loader:1150:19)
                                          at require (node:internal/modules/cjs/helpers:121:18)
                                          at /home/pi/MagicMirror/js/logger.js:5:19
                                          at Object.<anonymous> (/home/pi/MagicMirror/js/logger.js:46:2)
                                          at Module._compile (node:internal/modules/cjs/loader:1271:14)
                                          at Object..js (node:internal/modules/cjs/loader:1326:10)
                                          at Module.load (node:internal/modules/cjs/loader:1126:32)
                                          at node:internal/modules/cjs/loader:967:12
                                          at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                          at Module.require (node:internal/modules/cjs/loader:1150:19)
                                          at require (node:internal/modules/cjs/helpers:121:18)
                                      Warning: vkCreateInstance: Found no drivers!
                                      Warning: vkCreateInstance failed with VK_ERROR_INCOMPATIBLE_DRIVER
                                          at CheckVkSuccessImpl (../../third_party/dawn/src/dawn/native/vulkan/VulkanError.cpp:88)
                                          at CreateVkInstance (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:458)
                                          at Initialize (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:344)
                                          at Create (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:266)
                                          at operator() (../../third_party/dawn/src/dawn/native/vulkan/BackendVk.cpp:521)
                                      
                                      Warning: eglChooseConfig returned zero configs
                                          at Create (../../third_party/dawn/src/dawn/native/opengl/ContextEGL.cpp:52)
                                          at Create (../../third_party/dawn/src/dawn/native/opengl/PhysicalDeviceGL.cpp:97)
                                      
                                      
                                      
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • S Do not disturb
                                        sdetweil @RIKKO14
                                        last edited by

                                        @RIKKO14 said in MagicMirror no longer launches:

                                        ‘ansis’

                                        npm install ansis

                                        and try again

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        R 1 Reply Last reply Reply Quote 0
                                        • R Offline
                                          RIKKO14 @sdetweil
                                          last edited by

                                          @sdetweil

                                          pi@raspberrypi:~ $ npm install ansis
                                          
                                          up to date, audited 2 packages in 1s
                                          
                                          found 0 vulnerabilities
                                          pi@raspberrypi:~ $ pm2 stop all
                                          cd ~/MagicMirror 
                                          npm install electron@29.1.6
                                           npm start
                                          [PM2] Applying action stopProcessId on app [all](ids: [ 0 ])
                                          [PM2] [MagicMirror](0) ✓
                                          ┌────┬────────────────────┬──────────┬──────┬───────────┬──────────┬──────────┐
                                          │ id │ name               │ mode     │ ↺    │ status    │ cpu      │ memory   │
                                          ├────┼────────────────────┼──────────┼──────┼───────────┼──────────┼──────────┤
                                          │ 0  │ MagicMirror        │ fork     │ 8615 │ stopped   │ 0%       │ 0b       │
                                          └────┴────────────────────┴──────────┴──────┴───────────┴──────────┴──────────┘
                                          npm ERR! code ENOTEMPTY
                                          npm ERR! syscall rename
                                          npm ERR! path /home/pi/MagicMirror/node_modules/caniuse-lite
                                          npm ERR! dest /home/pi/MagicMirror/node_modules/.caniuse-lite-6h1pL5No
                                          npm ERR! errno -39
                                          npm ERR! ENOTEMPTY: directory not empty, rename '/home/pi/MagicMirror/node_modules/caniuse-lite' -> '/home/pi/MagicMirror/node_modules/.caniuse-lite-6h1pL5No'
                                          
                                          npm ERR! A complete log of this run can be found in: /home/pi/.npm/_logs/2024-04-26T16_37_54_575Z-debug-0.log
                                          
                                          > magicmirror@2.27.0 start
                                          > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
                                          
                                          [2024-04-26 18:38:03.262] [ERROR] App threw an error during load 
                                          [2024-04-26 18:38:03.265] [ERROR] Error: Cannot find module 'socket.io'
                                          Require stack:
                                          - /home/pi/MagicMirror/js/server.js
                                          - /home/pi/MagicMirror/js/app.js
                                          - /home/pi/MagicMirror/js/electron.js
                                          - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                          - 
                                              at node:internal/modules/cjs/loader:1084:15
                                              at Function.<anonymous> (node:electron/js2c/browser_init:2:116646)
                                              at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                              at node:internal/modules/cjs/loader:929:27
                                              at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                              at Module.require (node:internal/modules/cjs/loader:1150:19)
                                              at require (node:internal/modules/cjs/helpers:121:18)
                                              at Object.<anonymous> (/home/pi/MagicMirror/js/server.js:8:18)
                                              at Module._compile (node:internal/modules/cjs/loader:1271:14)
                                              at Object..js (node:internal/modules/cjs/loader:1326:10)
                                              at Module.load (node:internal/modules/cjs/loader:1126:32)
                                              at node:internal/modules/cjs/loader:967:12
                                              at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                              at Module.require (node:internal/modules/cjs/loader:1150:19)
                                              at require (node:internal/modules/cjs/helpers:121:18)
                                              at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:9:16) 
                                          A JavaScript error occurred in the main process
                                          Uncaught Exception:
                                          Error: Cannot find module 'socket.io'
                                          Require stack:
                                          - /home/pi/MagicMirror/js/server.js
                                          - /home/pi/MagicMirror/js/app.js
                                          - /home/pi/MagicMirror/js/electron.js
                                          - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
                                          - 
                                              at node:internal/modules/cjs/loader:1084:15
                                              at Function.<anonymous> (node:electron/js2c/browser_init:2:116646)
                                              at Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
                                              at node:internal/modules/cjs/loader:929:27
                                              at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                              at Module.require (node:internal/modules/cjs/loader:1150:19)
                                              at require (node:internal/modules/cjs/helpers:121:18)
                                              at Object.<anonymous> (/home/pi/MagicMirror/js/server.js:8:18)
                                              at Module._compile (node:internal/modules/cjs/loader:1271:14)
                                              at Object..js (node:internal/modules/cjs/loader:1326:10)
                                              at Module.load (node:internal/modules/cjs/loader:1126:32)
                                              at node:internal/modules/cjs/loader:967:12
                                              at Function._load (node:electron/js2c/asar_bundle:2:13327)
                                              at Module.require (node:internal/modules/cjs/loader:1150:19)
                                              at require (node:internal/modules/cjs/helpers:121:18)
                                              at Object.<anonymous> (/home/pi/MagicMirror/js/app.js:9:16)
                                          
                                          
                                          
                                          S 1 Reply Last reply Reply Quote 0
                                          • S Do not disturb
                                            sdetweil @RIKKO14
                                            last edited by

                                            @RIKKO14 sounds like the npm install for MagicMirror failed

                                            do

                                            npm run install-mm

                                            Sam

                                            How to add modules

                                            learning how to use browser developers window for css changes

                                            R 1 Reply Last reply Reply Quote 0

                                            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

                                            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

                                            With your input, this post could be even better 💗

                                            Register Login
                                            • 1
                                            • 2
                                            • 1 / 2
                                            • 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