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

Error with Hotwords and AssistantMk2

  • When launching MM

    • list itemcd ~/MagicMirror/

    • npm start

    before the mirror starts, this error message appears.

    { 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: 8080 }

    However, on reboot. When saying the phrase “magic mirror” an exception is caught and stops any further listening from the mirror.

    Whoops! There was an uncaught exception...
    { Error: spawn ENOMEM
        at ChildProcess.spawn (internal/child_process.js:357:11)
        at spawn (child_process.js:540:9)
        at LPCM16.start (/home/pi/MagicMirror/modules/MMM-Hotword/components/lpcm16.js:101:15)
        at Class.startListening (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:217:14)
        at Class.activate (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:175:10)
        at Class.socketNotificationReceived (/home/pi/MagicMirror/modules/MMM-Hotword/node_helper.js:72:16)
        at Socket. (/home/pi/MagicMirror/modules/node_modules/node_helper/index.js:113:11)
        at Socket.emit (events.js:182:13)
        at /home/pi/MagicMirror/node_modules/
        at process._tickCallback (internal/process/next_tick.js:61:11) errno: 'ENOMEM', code: 'ENOMEM', syscall: 'spawn' }
    MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
    If you think this really is an issue, please open an issue on GitHub:

  • @blee1997 probably pm2 is already trying to start mirror

  • This post is deleted!

  • @sdetweil How do I prevent from pm2 from starting?

  • @blee1997 pm2 list
    pm2 stop ??? ???= Name
    pm2 erase or remove don’t know. Google search or pm2 --help

Log in to reply