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

Magic Mirror updated now doesnt work

  • Hi all

    I have update my MM to 2.10.0 and now my MM doesnt show on the screen. Here are my logs:

    0 info it worked if it ends with ok
    1 verbose cli [ '/usr/bin/node', '/usr/bin/npm', 'start' ]
    2 info using npm@6.13.4
    3 info using node@v10.18.0
    4 verbose run-script [ 'prestart', 'start', 'poststart' ]
    5 info lifecycle magicmirror@2.10.0~prestart: magicmirror@2.10.0
    6 info lifecycle magicmirror@2.10.0~start: magicmirror@2.10.0
    7 verbose lifecycle magicmirror@2.10.0~start: unsafe-perm in lifecycle true
    8 verbose lifecycle magicmirror@2.10.0~start: PATH: /usr/lib/node_modules/npm/node_modules/npm-lifecycle/node-gyp-bin:/home/pi/MagicMirror/node_modules/.bin:/usr$
    9 verbose lifecycle magicmirror@2.10.0~start: CWD: /home/pi/MagicMirror
    10 silly lifecycle magicmirror@2.10.0~start: Args: [ '-c', './' ]
    11 silly lifecycle magicmirror@2.10.0~start: Returned: code: 1  signal: null
    12 info lifecycle magicmirror@2.10.0~start: Failed to exec start script
    13 verbose stack Error: magicmirror@2.10.0 start: `./`
    13 verbose stack Exit status 1
    13 verbose stack     at EventEmitter. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:332:16)
    13 verbose stack     at EventEmitter.emit (events.js:198:13)
    13 verbose stack     at ChildProcess. (/usr/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
    13 verbose stack     at ChildProcess.emit (events.js:198:13)
    13 verbose stack     at maybeClose (internal/child_process.js:982:16)
    13 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:259:5)
    14 verbose pkgid magicmirror@2.10.0
    15 verbose cwd /home/pi/MagicMirror
    16 verbose Linux 4.19.75-v7l+
    17 verbose argv "/usr/bin/node" "/usr/bin/npm" "start"
    18 verbose node v10.18.0
    19 verbose npm  v6.13.4
    20 error code ELIFECYCLE
    21 error errno 1
    22 error magicmirror@2.10.0 start: `./`
    22 error Exit status 1
    23 error Failed at the magicmirror@2.10.0 start script.
    23 error This is probably not a problem with npm. There is likely additional logging output above.
    24 verbose exit [ 1, true ]

    Can anyone help please?


  • @sdetweil it seems to be working fine now after few reboots to the pi.

  • @bachoo786 how did u update? manual, git pull? or the automated script

  • @sdetweil git pull but I had to stash as I had made changes to the .css file of one of the modules.

  • @bachoo786 did u also do the required npm install after the git pull??

    apologize, where did u see the instructions?

    many users are having this problem, want to see if I can fix that

  • @sdetweil I just searched on MM forum I did git pull and after that done the npm install but have problems. I cannot also access the mirror on another machine. I have forwarded the mirror ports too.

  • @bachoo786 ok, did the npm install good…

    please edit the and change line 1 to

    #!/bin/bash -x

    then npm start again

    also, what modules do you have installed?
    if they have a package.json, did u do an npm install in those module folders?

  • @sdetweil my already contains the # before !bin/bash-x see below:

      # use bash instead of sh
    if [ -z "$DISPLAY" ]; then #If not set DISPLAY is SSH remote or tty
            export DISPLAY=:0 # Set by default display
    # get the processor architecture
    arch=$(uname -m)

    all my modules have package.json and I did do a npm install. The last module I installed was mmm-remote control via the script that was on the module github page.

  • @bachoo786 you missed the -x at the end… turns on bash debug

    #!/bin/bash -x

  • @bachoo786 said in Magic Mirror updated now doesnt work:

    all my modules have package.json and I did do a npm install.

    SINCE you did the magicmirror upgrade?

  • @sdetweil so this is the result:

    pi@raspberrypi:~/MagicMirror $ npm start
    > magicmirror@2.10.0 start /home/pi/MagicMirror
    > ./
    + ./
    + '[' -z '' ']'
    + export DISPLAY=:0
    + DISPLAY=:0
    ++ uname -m
    + arch=armv7l
    + false=false
    ++ grep -v '^\s//' config/config.js
    ++ grep -i serveronly:
    ++ tr -d ',"'\'''
    ++ awk '{print tolower($2)}'
    + serveronly=
    + serveronly=false
    ++ pgrep Xorg
    + xorg=519
    ++ uname
    + mac=Linux
    + '[' false. '!=' false. -o armv7l == armv6l ']'
    + '[' 519. == . -a Linux '!=' Darwin ']'
    + electron js/electron.js
    [15:39:07.703] [LOG]    Starting MagicMirror: v2.10.0
    [15:39:07.725] [LOG]    Loading config ...
    [15:39:07.735] [LOG]    Loading module helpers ...
    [15:39:07.814] [LOG]    Initializing new module helper ...
    [15:39:07.817] [LOG]    Module helper loaded: updatenotification
    [15:39:07.819] [LOG]    No helper found for module: clock.
    [15:39:08.557] [LOG]    Initializing new module helper ...
    [15:39:08.558] [LOG]    Module helper loaded: MMM-SystemStats
    [15:39:08.559] [LOG]    No helper found for module: currentweather.
    [15:39:08.560] [LOG]    No helper found for module: weatherforecast.
    [15:39:08.561] [LOG]    No helper found for module: random_quotes.
    [15:39:08.564] [LOG]    Initializing new module helper ...
    [15:39:08.564] [LOG]    Module helper loaded: MMM-homeassistant-sensors
    [15:39:09.297] [LOG]    Initializing new module helper ...
    [15:39:09.298] [LOG]    Module helper loaded: MMM-UKNationalRail
    [15:39:09.299] [LOG]    No helper found for module: MMM-TFL.
    [15:39:09.368] [LOG]    Initializing new module helper ...
    [15:39:09.369] [LOG]    Module helper loaded: newsfeed
    [15:39:09.370] [LOG]    All module helpers loaded.
    [15:39:09.372] [LOG]    Starting server on port 8181 ...
    [15:39:09.389] [INFO]   You're using a full whitelist configuration to allow for all IPs
    [15:39:09.408] [LOG]    Server started ...
    [15:39:09.410] [LOG]    Connecting socket for: updatenotification
    [15:39:09.413] [LOG]    Connecting socket for: MMM-SystemStats
    [15:39:09.415] [LOG]    Connecting socket for: MMM-homeassistant-sensors
    [15:39:09.418] [LOG]    Connecting socket for: MMM-UKNationalRail
    [15:39:09.420] [LOG]    MMM-UKNationalRail helper started ...
    [15:39:09.421] [LOG]    Connecting socket for: newsfeed
    [15:39:09.422] [LOG]    Starting module: newsfeed
    [15:39:09.423] [LOG]    Sockets connected & modules started ...
    [15:39:09.587] [LOG]    Whoops! There was an uncaught exception...
    [15:39:09.588] [ERROR]  { Error: listen EADDRINUSE
        at Server.setupListenHandle [as _listen2] (net.js:1330:14)
        at listenInCluster (net.js:1378:12)
        at GetAddrInfoReqWrap.doListen [as callback] (net.js:1492:7)
        at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:55:10)
      errno: 'EADDRINUSE',
      code: 'EADDRINUSE',
      syscall: 'listen',
      address: '',
      port: 8181 }
    [15:39:09.605] [LOG]    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    [15:39:09.605] [LOG]    If you think this really is an issue, please open an issue on GitHub:
    [15:39:09.652] [LOG]    Launching application.

Log in to reply