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.

    MM Not Displaying after update

    Scheduled Pinned Locked Moved Solved Troubleshooting
    20 Posts 2 Posters 3.1k 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.
    • S Offline
      sdetweil @Achilles
      last edited by

      @achilles sometimes the module need refresh too…

      AND

      we have been having a bunch of module failures because we removed a couple dead libraries that modules didn’t document they used

      So, where u start MM

      npm start
      or pm2 (if pm2 then use the command pm2 logs --lines=100)

      look at the startup messages and see if u see

      module not found

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      A 1 Reply Last reply Reply Quote 0
      • A Offline
        Achilles @sdetweil
        last edited by

        @sdetweil I executed that command, and it returned a LOT of results.

        pi@raspberrypi:~ $ pm2 logs --lines=100
        [TAILING] Tailing last 100 lines for [all] processes (change the value with --lines option)
        /home/pi/.pm2/pm2.log last 100 lines:
        PM2        | [2021-08-08T22:29:56.400Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:29:56.447Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:29:59.262Z] PM2 log: App [mm] with id [0] and pid [855], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:29:59.268Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:29:59.281Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:01.122Z] PM2 log: App [mm] with id [0] and pid [932], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:01.127Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:01.138Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:02.980Z] PM2 log: App [mm] with id [0] and pid [962], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:02.984Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:02.995Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:04.800Z] PM2 log: App [mm] with id [0] and pid [992], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:04.805Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:04.816Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:06.749Z] PM2 log: App [mm] with id [0] and pid [1010], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:06.753Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:06.764Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:08.579Z] PM2 log: App [mm] with id [0] and pid [1040], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:08.586Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:08.598Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:10.468Z] PM2 log: App [mm] with id [0] and pid [1070], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:10.473Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:10.484Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:12.511Z] PM2 log: App [mm] with id [0] and pid [1088], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:12.514Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:12.525Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:14.368Z] PM2 log: App [mm] with id [0] and pid [1128], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:14.371Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:14.381Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:16.296Z] PM2 log: App [mm] with id [0] and pid [1158], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:16.300Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:16.311Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:39.892Z] PM2 log: App [mm] with id [0] and pid [1188], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:39.895Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:39.906Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:41.774Z] PM2 log: App [mm] with id [0] and pid [1208], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:41.779Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:41.789Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:43.634Z] PM2 log: App [mm] with id [0] and pid [1226], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:43.637Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:43.648Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:45.549Z] PM2 log: App [mm] with id [0] and pid [1259], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:45.553Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:45.563Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:47.471Z] PM2 log: App [mm] with id [0] and pid [1289], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:47.476Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:47.487Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:47.852Z] PM2 log: Stopping app:mm id:0
        PM2        | [2021-08-08T22:30:47.936Z] PM2 log: App [mm] with id [0] and pid [1313], exited with code [0] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:48.032Z] PM2 log: pid=1313 msg=process killed
        PM2        | [2021-08-08T22:30:48.037Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:48.048Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:49.923Z] PM2 log: App [mm] with id [0] and pid [1334], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:49.928Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:49.938Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:51.823Z] PM2 log: App [mm] with id [0] and pid [1352], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:51.826Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:51.839Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:53.696Z] PM2 log: App [mm] with id [0] and pid [1382], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:53.701Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:53.711Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:55.542Z] PM2 log: App [mm] with id [0] and pid [1400], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:55.546Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:55.562Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:57.487Z] PM2 log: App [mm] with id [0] and pid [1430], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:57.492Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:57.502Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:30:59.380Z] PM2 log: App [mm] with id [0] and pid [1460], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:30:59.384Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:30:59.394Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:01.224Z] PM2 log: App [mm] with id [0] and pid [1478], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:01.227Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:01.238Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:03.115Z] PM2 log: App [mm] with id [0] and pid [1508], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:03.118Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:03.128Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:04.939Z] PM2 log: App [mm] with id [0] and pid [1538], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:04.943Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:04.952Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:06.819Z] PM2 log: App [mm] with id [0] and pid [1556], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:06.822Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:06.832Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:08.698Z] PM2 log: App [mm] with id [0] and pid [1586], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:08.701Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:08.712Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:10.517Z] PM2 log: App [mm] with id [0] and pid [1604], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:10.520Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:10.530Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:12.460Z] PM2 log: App [mm] with id [0] and pid [1634], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:12.464Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:12.474Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:14.300Z] PM2 log: App [mm] with id [0] and pid [1664], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:14.304Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:14.318Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:16.267Z] PM2 log: App [mm] with id [0] and pid [1682], exited with code [1] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:16.274Z] PM2 log: Starting execution sequence in -fork mode- for app name:mm id:0
        PM2        | [2021-08-08T22:31:16.285Z] PM2 log: App name:mm id:0 online
        PM2        | [2021-08-08T22:31:17.278Z] PM2 log: Stopping app:mm id:0
        PM2        | [2021-08-08T22:31:17.350Z] PM2 log: App [mm] with id [0] and pid [1718], exited with code [0] via signal [SIGINT]
        PM2        | [2021-08-08T22:31:17.443Z] PM2 log: pid=1718 msg=process killed
        
        /home/pi/.pm2/logs/mm-out.log last 100 lines:
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        0|mm       | 
        0|mm       | > magicmirror@2.16.0 start /home/pi/MagicMirror
        0|mm       | > electron js/electron.js
        0|mm       | 
        
        /home/pi/.pm2/logs/mm-error.log last 100 lines:
        0|mm       | /home/pi/MagicMirror/node_modules/electron/index.js:14
        0|mm       |     throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
        0|mm       |     ^
        0|mm       | 
        0|mm       | Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
        0|mm       |     at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
        0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
        0|mm       |     at Module._compile (internal/modules/cjs/loader.js:654:30)
        0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
        0|mm       |     at Module.load (internal/modules/cjs/loader.js:566:32)
        0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
        0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:498:3)
        0|mm       |     at Module.require (internal/modules/cjs/loader.js:598:17)
        0|mm       |     at require (internal/modules/cjs/helpers.js:11:18)
        0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
        0|mm       | npm ERR! code ELIFECYCLE
        0|mm       | npm ERR! errno 1
        0|mm       | npm ERR! magicmirror@2.16.0 start: `electron js/electron.js`
        0|mm       | npm ERR! Exit status 1
        0|mm       | npm ERR! 
        0|mm       | npm ERR! Failed at the magicmirror@2.16.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/2021-08-09T02_31_10_490Z-debug.log
        0|mm       | /home/pi/MagicMirror/node_modules/electron/index.js:14
        0|mm       |     throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
        0|mm       |     ^
        0|mm       | 
        0|mm       | Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
        0|mm       |     at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
        0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
        0|mm       |     at Module._compile (internal/modules/cjs/loader.js:654:30)
        0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
        0|mm       |     at Module.load (internal/modules/cjs/loader.js:566:32)
        0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
        0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:498:3)
        0|mm       |     at Module.require (internal/modules/cjs/loader.js:598:17)
        0|mm       |     at require (internal/modules/cjs/helpers.js:11:18)
        0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
        0|mm       | npm ERR! code ELIFECYCLE
        0|mm       | npm ERR! errno 1
        0|mm       | npm ERR! magicmirror@2.16.0 start: `electron js/electron.js`
        0|mm       | npm ERR! Exit status 1
        0|mm       | npm ERR! 
        0|mm       | npm ERR! Failed at the magicmirror@2.16.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/2021-08-09T02_31_12_433Z-debug.log
        0|mm       | /home/pi/MagicMirror/node_modules/electron/index.js:14
        0|mm       |     throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
        0|mm       |     ^
        0|mm       | 
        0|mm       | Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
        0|mm       |     at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
        0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
        0|mm       |     at Module._compile (internal/modules/cjs/loader.js:654:30)
        0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
        0|mm       |     at Module.load (internal/modules/cjs/loader.js:566:32)
        0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
        0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:498:3)
        0|mm       |     at Module.require (internal/modules/cjs/loader.js:598:17)
        0|mm       |     at require (internal/modules/cjs/helpers.js:11:18)
        0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
        0|mm       | npm ERR! code ELIFECYCLE
        0|mm       | npm ERR! errno 1
        0|mm       | npm ERR! magicmirror@2.16.0 start: `electron js/electron.js`
        0|mm       | npm ERR! Exit status 1
        0|mm       | npm ERR! 
        0|mm       | npm ERR! Failed at the magicmirror@2.16.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/2021-08-09T02_31_14_271Z-debug.log
        0|mm       | /home/pi/MagicMirror/node_modules/electron/index.js:14
        0|mm       |     throw new Error('Electron failed to install correctly, please delete node_modules/electron and try installing again')
        0|mm       |     ^
        0|mm       | 
        0|mm       | Error: Electron failed to install correctly, please delete node_modules/electron and try installing again
        0|mm       |     at getElectronPath (/home/pi/MagicMirror/node_modules/electron/index.js:14:11)
        0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/index.js:18:18)
        0|mm       |     at Module._compile (internal/modules/cjs/loader.js:654:30)
        0|mm       |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
        0|mm       |     at Module.load (internal/modules/cjs/loader.js:566:32)
        0|mm       |     at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
        0|mm       |     at Function.Module._load (internal/modules/cjs/loader.js:498:3)
        0|mm       |     at Module.require (internal/modules/cjs/loader.js:598:17)
        0|mm       |     at require (internal/modules/cjs/helpers.js:11:18)
        0|mm       |     at Object.<anonymous> (/home/pi/MagicMirror/node_modules/electron/cli.js:3:16)
        0|mm       | npm ERR! code ELIFECYCLE
        0|mm       | npm ERR! errno 1
        0|mm       | npm ERR! magicmirror@2.16.0 start: `electron js/electron.js`
        0|mm       | npm ERR! Exit status 1
        0|mm       | npm ERR! 
        0|mm       | npm ERR! Failed at the magicmirror@2.16.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/2021-08-09T02_31_16_238Z-debug.log
        

        Is this trying to find a needle in a haystack?

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

          @achilles (a lot or lines ) aka 100

          So, this is another case where to update didn’t work well… as electron didn’t get upgraded, but messed up …

          SO…

          ugly recovery

          rename the MagiMirror/modules/default folder to default2
          rename the MM folder to something else

          install MM again
          (Use my script) see https://github.com/sdetweil/MagicMirror_scripts
          verify it works

          then copy the savedMagicMirror/modules folder over the MagicMirror folder

          cp -r -p ~/oldMMname/modules ~/Magicmirror/modules

          and then copy your old config,js to the new MM/config folder

          test it out

          Now, its still possible to have the module not found problem.

          I am going to bed now, but in case

          if u find module not found, take the name (valid-url, request) and do npm install ??? while in the MM folder

          my upgrade script MIGHT have helped avoid all this… (I say might, cause I haven’t seen it myself, but I never upgrade manually)

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          A 3 Replies Last reply Reply Quote 0
          • A Offline
            Achilles @sdetweil
            last edited by

            @sdetweil Thanks, I am doing this now. Will respond back when I finish…

            1 Reply Last reply Reply Quote 0
            • A Offline
              Achilles @sdetweil
              last edited by

              This post is deleted!
              1 Reply Last reply Reply Quote 0
              • A Offline
                Achilles @sdetweil
                last edited by

                @sdetweil Thank you so much for your help on this. I ran your script, and the MagicMirror was working minus my modules, of course. I copied over my config file, and only three of my modules displayed. I rebooted my raspberry pi, and then MagicMirror would not display at all. Here are the logs:

                Use `pm2 show <id|name>` to get more details about an app
                pi@raspberrypi:~ $ pm2 logs MagicMirror
                [TAILING] Tailing last 15 lines for [MagicMirror] process (change the value with --lines option)
                /home/pi/.pm2/logs/MagicMirror-out.log last 15 lines:
                0|MagicMir | [09.08.2021 01:34.41.419] [LOG]   Connecting socket for: currentweather
                0|MagicMir | [09.08.2021 01:34.41.423] [LOG]   Connecting socket for: newsfeed
                0|MagicMir | [09.08.2021 01:34.41.425] [LOG]   Starting node helper for: newsfeed
                0|MagicMir | [09.08.2021 01:34.41.426] [LOG]   Sockets connected & modules started ...
                0|MagicMir | [09.08.2021 01:34.42.061] [LOG]   Launching application.
                0|MagicMir | [09.08.2021 01:34.49.566] [LOG]   Shutting down server...
                0|MagicMir | [09.08.2021 01:36.01.706] [LOG]   Starting MagicMirror: v2.16.0
                0|MagicMir | [09.08.2021 01:37.27.498] [LOG]   [SIGINT] Received. Shutting down server...
                0|MagicMir | [09.08.2021 01:37.29.125] [LOG]   Starting MagicMirror: v2.16.0
                0|MagicMir | [09.08.2021 02:01.15] [LOG]   [SIGINT] Received. Shutting down server...
                0|MagicMir | [09.08.2021 02:01.17.151] [LOG]   Starting MagicMirror: v2.16.0
                0|MagicMir | [09.08.2021 02:06.47.453] [LOG]   [SIGINT] Received. Shutting down server...
                0|MagicMir | [09.08.2021 02:06.49.001] [LOG]   Starting MagicMirror: v2.16.0
                0|MagicMir | [09.08.2021 02:07.10.237] [LOG]   [SIGINT] Received. Shutting down server...
                0|MagicMir | [09.08.2021 02:07.11.810] [LOG]   Starting MagicMirror: v2.16.0
                
                /home/pi/.pm2/logs/MagicMirror-error.log last 15 lines:
                0|MagicMir |     at Function.Module._load (internal/modules/cjs/loader.js:778:12)
                0|MagicMir | [09.08.2021 02:07.11.831] [ERROR] Whoops! There was an uncaught exception...
                0|MagicMir | [09.08.2021 02:07.11.835] [ERROR] TypeError: Cannot read property 'on' of undefined
                0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/js/electron.js:98:5)
                0|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:1072:14)
                0|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
                0|MagicMir |     at Module.load (internal/modules/cjs/loader.js:937:32)
                0|MagicMir |     at Function.Module._load (internal/modules/cjs/loader.js:778:12)
                0|MagicMir |     at Object.<anonymous> (/usr/lib/node_modules/pm2/lib/ProcessContainerFork.js:75:21)
                0|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:1072:14)
                0|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1101:10)
                0|MagicMir |     at Module.load (internal/modules/cjs/loader.js:937:32)
                0|MagicMir |     at Function.Module._load (internal/modules/cjs/loader.js:778:12)
                0|MagicMir | [09.08.2021 02:07.11.837] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                0|MagicMir | [09.08.2021 02:07.11.839] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                
                

                I do have an internet connection working, so that is not the issue…you see anything?

                Thanks again.

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

                  @achilles I would go thru each module folder and check for package.json file

                  if present do an npm install in each such module folder.

                  I would use npm start in the MagicMirror folder (and ctrl-q on mm screen) til u get it all working, then use pm2 to start

                  so pm2 stop all
                  then do above, then pm2 start 0
                  then reboot

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  A 1 Reply Last reply Reply Quote 0
                  • A Offline
                    Achilles @sdetweil
                    last edited by

                    @sdetweil Thank you…quick question, as I have followed your above steps…what if the module does not have the package.json file? Should I continue with those that do and then to the pm2 to start, or do I need to go back and do something with those modules that do not have the package.json file before I npm start?

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

                      @achilles you can look in the modules without a package.json, to see if they have a node_helper.js, and if they have one, check for require(‘???’)

                      where ??? is NOT node_helper

                      if they have those types of require, then they are dependent on mm providing the library

                      request and valid-url
                      are two we know modules didn’t document.
                      (because it just worked)

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      A 1 Reply Last reply Reply Quote 0
                      • A Offline
                        Achilles @sdetweil
                        last edited by

                        @sdetweil When I run npm start, I just get a black screen. Does this mean every one of my modules is wrong?

                        S 1 Reply Last reply Reply Quote 0
                        • 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