MagicMirror² v2.13.0 is available! For more information about this release, check out this topic.

MM died after reboot



  • And anotherone error … I think that is my last try with MM2. Have a lot of different issues and that is the last one.

    2 Month running without Problems, no reboot, no error, no frozen module … running well. But yesterday the calender Module does not update. reboot the Pi with VNC und volia … no MM anymore …

    This is what happens ->

    pi@raspberrypi:~ $ ./mm.sh
    
    > magicmirror@2.5.0 start /home/pi/MagicMirror
    > sh run-start.sh
    
    App threw an error during load
    /home/pi/MagicMirror/node_modules/express/lib/application.js:164
        onerror: logerror."ind(th)s)
                          ^^^^^^^^^^
    
    SyntaxError: Invalid or unexpected token
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:606:28)
        at Object.Module._extensions..js (module.js:653:10)
        at Module.load (module.js:561:32)
        at tryModuleLoad (module.js:504:12)
        at Function.Module._load (module.js:496:3)
        at Module.require (module.js:586:17)
        at require (internal/module.js:11:18)
        at Object. (/home/pi/MagicMirror/node_modules/express/lib/express.js:18:13)
    A JavaScript error occurred in the main process
    Uncaught Exception:
    /home/pi/MagicMirror/node_modules/express/lib/application.js:164
        onerror: logerror."ind(th)s)
                          ^^^^^^^^^^
    
    SyntaxError: Invalid or unexpected token
        at createScript (vm.js:80:10)
        at Object.runInThisContext (vm.js:139:10)
        at Module._compile (module.js:606:28)
        at Object.Module._extensions..js (module.js:653:10)
        at Module.load (module.js:561:32)
        at tryModuleLoad (module.js:504:12)
        at Function.Module._load (module.js:496:3)
        at Module.require (module.js:586:17)
        at require (internal/module.js:11:18)
        at Object. (/home/pi/MagicMirror/node_modules/express/lib/express.js:18:13)
    
    
    

    That is what “sudo npm run config:check” bings back.

    pi@raspberrypi:~/MagicMirror $ sudo npm run config:check
    
    > magicmirror@2.5.0 config:check /home/pi/MagicMirror
    > node tests/configs/check_config.js
    
    /home/pi/MagicMirror/node_modules/jshint/data/non-ascii-identifier-start.js:1
    (function (exports, require, module, __filename, __dirname) { var str = ' Bunch of Numbers ! )
    
    SyntaxError: Unexpected identifier
        at new Script (vm.js:51:7)
        at createScript (vm.js:136:10)
        at Object.runInThisContext (vm.js:197:10)
        at Module._compile (internal/modules/cjs/loader.js:618:28)
        at Object.Module._extensions..js (internal/modules/cjs/loader.js:665:10)
        at Module.load (internal/modules/cjs/loader.js:566:32)
        at tryModuleLoad (internal/modules/cjs/loader.js:506:12)
        at Function.Module._load (internal/modules/cjs/loader.js:498:3)
        at Module.require (internal/modules/cjs/loader.js:598:17)
        at require (internal/modules/cjs/helpers.js:11:18)
    npm ERR! code ELIFECYCLE
    npm ERR! errno 1
    npm ERR! magicmirror@2.5.0 config:check: `node tests/configs/check_config.js`
    npm ERR! Exit status 1
    npm ERR! 
    npm ERR! Failed at the magicmirror@2.5.0 config:check script.
    npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
    
    npm ERR! A complete log of this run can be found in:
    npm ERR!     /root/.npm/_logs/2018-12-21T16_48_22_625Z-debug.log
    pi@raspberrypi:~/MagicMirror $ 
    
    

    Bunch of Numbers was blockt as Spam from Askinet.com ? I removed them …

    Any ideas ? I don’t what to bury that nice project, but it is the fifth time i have to repair that thing after an Upgrade or Update, reboot or unclean shutdown.



  • I think it was the SD Card. So many different Files with syntax errors so I’d mounted a Notebook HD with a Adapter and reinstalled the RaspberryOS. Gve it an new try



  • Up… and Running …

    Now I can hear the hadrdisk working… I don’t wounder how much access the HD does , the sd cards died quickly 😞


Log in to reply