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.

    Problem with mmm-openhabfloorplan after fresh install

    Scheduled Pinned Locked Moved Solved Troubleshooting
    4 Posts 2 Posters 546 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.
    • M Offline
      maxheartrate
      last edited by

      Hi everyone,

      I updated my Magic Mirror and something must have gone wrong. Afterwards, I reinstalled Magic Mirror into a new folder. Everything works fine until I start to load custom modules. My most important one is mmm-openhabfloorplan.

      After installation, Magic Mirror won’t start anymore. I get the following message:

      > magicmirror@2.17.1 start /home/pi/MagicMirror
      > DISPLAY="${DISPLAY:=:0}" ./node_modules/.bin/electron js/electron.js
      
      [23.12.2021 21:26.41.242] [LOG]   Starting MagicMirror: v2.17.1
      [23.12.2021 21:26.41.255] [LOG]   Loading config ...
      [23.12.2021 21:26.41.274] [LOG]   Loading module helpers ...
      [23.12.2021 21:26.41.281] [LOG]   No helper found for module: alert.
      [23.12.2021 21:26.41.318] [LOG]   Initializing new module helper ...
      [23.12.2021 21:26.41.320] [LOG]   Module helper loaded: updatenotification
      [23.12.2021 21:26.41.322] [LOG]   No helper found for module: clock.
      [23.12.2021 21:26.41.751] [LOG]   Initializing new module helper ...
      [23.12.2021 21:26.41.753] [LOG]   Module helper loaded: calendar
      [23.12.2021 21:26.41.757] [LOG]   Initializing new module helper ...
      [23.12.2021 21:26.41.760] [LOG]   Module helper loaded: currentweather
      [23.12.2021 21:26.41.768] [LOG]   Initializing new module helper ...
      [23.12.2021 21:26.41.770] [LOG]   Module helper loaded: weatherforecast
      [23.12.2021 21:26.41.781] [ERROR] WARNING! Could not load config file. Starting with default configuration. Error found: Error: Cannot find module 'request'
      Require stack:
      - /home/pi/MagicMirror/modules/mmm-openhabfloorplan/node_helper.js
      - /home/pi/MagicMirror/js/app.js
      - /home/pi/MagicMirror/js/electron.js
      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
      [23.12.2021 21:26.41.783] [LOG]   Loading module helpers ...
      [23.12.2021 21:26.41.785] [LOG]   No helper found for module: alert.
      [23.12.2021 21:26.41.787] [LOG]   Initializing new module helper ...
      [23.12.2021 21:26.41.788] [LOG]   Module helper loaded: updatenotification
      [23.12.2021 21:26.41.790] [LOG]   No helper found for module: clock.
      [23.12.2021 21:26.41.792] [LOG]   Initializing new module helper ...
      [23.12.2021 21:26.41.794] [LOG]   Module helper loaded: calendar
      [23.12.2021 21:26.41.797] [LOG]   Initializing new module helper ...
      [23.12.2021 21:26.41.800] [LOG]   Module helper loaded: currentweather
      [23.12.2021 21:26.41.803] [LOG]   Initializing new module helper ...
      [23.12.2021 21:26.41.805] [LOG]   Module helper loaded: weatherforecast
      [23.12.2021 21:26.41.812] [ERROR] App threw an error during load
      [23.12.2021 21:26.41.817] [ERROR] Error: Cannot find module 'request'
      Require stack:
      - /home/pi/MagicMirror/modules/mmm-openhabfloorplan/node_helper.js
      - /home/pi/MagicMirror/js/app.js
      - /home/pi/MagicMirror/js/electron.js
      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
          at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
          at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (internal/modules/cjs/loader.js:732:27)
          at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
          at Module.require (internal/modules/cjs/loader.js:959:19)
          at require (internal/modules/cjs/helpers.js:88:18)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/mmm-openhabfloorplan/node_helper.js:1:17)
          at Module._compile (internal/modules/cjs/loader.js:1078:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10)
      [23.12.2021 21:26.41.820] [ERROR] Whoops! There was an uncaught exception...
      [23.12.2021 21:26.41.833] [ERROR] Error: Cannot find module 'request'
      Require stack:
      - /home/pi/MagicMirror/modules/mmm-openhabfloorplan/node_helper.js
      - /home/pi/MagicMirror/js/app.js
      - /home/pi/MagicMirror/js/electron.js
      - /home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
      - 
          at Module._resolveFilename (internal/modules/cjs/loader.js:887:15)
          at Function.n._resolveFilename (electron/js2c/browser_init.js:257:1128)
          at Function.Module._resolveFilename (/home/pi/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (internal/modules/cjs/loader.js:732:27)
          at Function.f._load (electron/js2c/asar_bundle.js:5:12913)
          at Module.require (internal/modules/cjs/loader.js:959:19)
          at require (internal/modules/cjs/helpers.js:88:18)
          at Object.<anonymous> (/home/pi/MagicMirror/modules/mmm-openhabfloorplan/node_helper.js:1:17)
          at Module._compile (internal/modules/cjs/loader.js:1078:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
        code: 'MODULE_NOT_FOUND',
        requireStack: [
          '/home/pi/MagicMirror/modules/mmm-openhabfloorplan/node_helper.js',
          '/home/pi/MagicMirror/js/app.js',
          '/home/pi/MagicMirror/js/electron.js',
          '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
          undefined
        ]
      }
      [23.12.2021 21:26.41.842] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
      [23.12.2021 21:26.41.844] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
      [23.12.2021 21:26.42.328] [LOG]   Launching application.
      

      Does anyone know how to fix this error?

      Best, Max

      M 1 Reply Last reply Reply Quote 0
      • M Offline
        maxheartrate @maxheartrate
        last edited by

        @maxheartrate I found a fix. I had to install the request module manually:

        npm install request.

        Explanation in this post:
        https://issueexplorer.com/issue/MichMich/MagicMirror/2688

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

          @maxheartrate and here
          https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

          more than just request could be not found

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          M 1 Reply Last reply Reply Quote 0
          • M Offline
            maxheartrate @sdetweil
            last edited by

            @sdetweil Thank you. Everything is working fine now.

            1 Reply Last reply Reply Quote 0

            Hello! It looks like you're interested in this conversation, but you don't have an account yet.

            Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

            With your input, this post could be even better 💗

            Register Login
            • 1 / 1
            • 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