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

MMM Remote Controle - starting issus



  • Is there a way to see whats wrong with the config of your last module.

    My last module is remote controle.

    I have set address: 0.0.0.0, and ipWhitelist: [],

    {
    module: ‘MMM-Remote-Control’
    // uncomment the following line to show the URL of the remote control on the mirror
    position: ‘bottom_left’
    // you can hide this module afterwards from the remote control itself
    }
    },
    When i start with pm2 start mm i see only this error. When i remove te module MM start normal.

    0|mm | Starting MagicMirror: v2.6.0
    0|mm | Loading config …
    0|mm | WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
    0|mm | Loading module helpers …
    0|mm | Initializing new module helper …
    0|mm | Module helper loaded: updatenotification
    0|mm | No helper found for module: helloworld.
    0|mm | All module helpers loaded.
    0|mm | Starting server on port 8080 …
    0|mm | Server started …
    0|mm | Connecting socket for: updatenotification
    0|mm | Sockets connected & modules started …
    0|mm | Launching application.



  • @ernst-jan do

    npm start dev
    

    Then select the console tab of the developers environment, and look for any errors (red text)



  • @ernst-jan
    npm ERR! missing script: start

    npm ERR! A complete log of this run can be found in:
    npm ERR! /home/pi/.npm/_logs/2019-01-31T17_06_55_736Z-debug.log



  • @ernst-jan in the magic mirror folder



  • @ernst-jan said in MMM Remote Controle - starting issus:

    npm/logs
    0 info it worked if it ends with ok
    1 verbose cli [ ‘/usr/bin/node’, ‘/usr/bin/npm’, ‘start’, ‘dev’ ]
    2 info using npm@5.6.0
    3 info using node@v9.11.2
    4 verbose stack Error: missing script: start
    4 verbose stack at run (/usr/lib/node_modules/npm/lib/run-script.js:151:19)
    4 verbose stack at /usr/lib/node_modules/npm/lib/run-script.js:61:5
    4 verbose stack at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:115:5
    4 verbose stack at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:402:5
    4 verbose stack at checkBinReferences
    (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:357:45)
    4 verbose stack at final (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:400:3)
    4 verbose stack at then (/usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:160:5)
    4 verbose stack at /usr/lib/node_modules/npm/node_modules/read-package-json/read-json.js:348:12
    4 verbose stack at /usr/lib/node_modules/npm/node_modules/graceful-fs/graceful-fs.js:78:16
    4 verbose stack at FSReqWrap.readFileAfterClose [as oncomplete] (fs.js:525:3)
    5 verbose cwd /home/pi/.local/share/Trash/files/MMM-Remote-Control/MMM-Remote-Control
    6 verbose Linux 4.14.79-v7+
    7 verbose argv “/usr/bin/node” “/usr/bin/npm” “start” “dev”
    8 verbose node v9.11.2
    9 verbose npm v5.6.0
    10 error missing script: start
    11 verbose exit [ 1, true ]



  • @sdetweil said in MMM Remote Controle - starting issus:

    npm start dev

    /home/pi/MagicMirror/node_modules/electron/dist/resources/electron.asar/renderer/security-warnings.js



  • @ernst-jan don’t understand your reply.

    From the MagicMirror folder do

    npm start dev
    

    Then as per my previous instructions



  • Starting MagicMirror: v2.6.0
    Loading config …
    WARNING! Could not validate config file. Please correct syntax errors. Starting with default configuration.
    Loading module helpers …
    Initializing new module helper …
    Module helper loaded: updatenotification
    No helper found for module: helloworld.
    All module helpers loaded.
    Starting server on port 8080 …
    Server started …
    Connecting socket for: updatenotification
    Sockets connected & modules started …
    Whoops! There was an uncaught exception…
    { Error: listen EADDRINUSE 127.0.0.1:8080
    at Object._errnoException (util.js:1024:11)
    at _exceptionWithHostPort (util.js:1046:20)
    at Server.setupListenHandle [as _listen2] (net.js:1351:14)
    at listenInCluster (net.js:1392:12)
    at GetAddrInfoReqWrap.doListen [as callback] (net.js:1501:7)
    at GetAddrInfoReqWrap.onlookup [as oncomplete] (dns.js:97:10)
    code: ‘EADDRINUSE’,
    errno: ‘EADDRINUSE’,
    syscall: ‘listen’,
    address: ‘127.0.0.1’,
    port: 8080 }
    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: https://github.com/MichMich/MagicMirror/issues
    Launching application.

    main.js:343 Config file is missing! Please create a config file.
    loadConfig @ main.js:343
    19:03:05.148



  • @ernst-jan it is already running. Need to stop it before starting again



  • @ernst-jan and syntax errors

    From mm folder do

    node tests/configs/check_config.js
    

    Start at the top and correct errors reported, rerun til no errors, then do the npm start again


Log in to reply