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.

    I'm getting error -MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied

    Scheduled Pinned Locked Moved Transport
    10 Posts 3 Posters 3.0k Views 3 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.
    • S Offline
      sdetweil @vpanse
      last edited by

      @vpanse see the post directly above your

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      1 Reply Last reply Reply Quote 0
      • V Offline
        vpanse
        last edited by

        I already did try that , it does not work for modules
        https://github.com/mykle1/MMM-BMW-CC and
        https://github.com/E3V3A/MMM-FlightsAbove.
        Still getting error as below.
        require stack:

        • /home/vinayak/MagicMirror/modules/MMM-BMW-CC/node_helper.js
        • /home/vinayak/MagicMirror/js/app.js
        • /home/vinayak/MagicMirror/js/electron.js
        • /home/vinayak/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
        • at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
          at n._resolveFilename (node:electron/js2c/browser_init:2:117469)
          at Module._resolveFilename (/home/vinayak/MagicMirror/node_modules/module-alias/index.js:49:29)
          at Module._load (node:internal/modules/cjs/loader:927:27)
          at f._load (node:electron/js2c/asar_bundle:2:13330)
          at Module.require (node:internal/modules/cjs/loader:1148:19)
          at require (node:internal/modules/cjs/helpers:110:18)
          at Object. (/home/vinayak/MagicMirror/modules/MMM-BMW-CC/node_helper.js:8:17)
          at Module._compile (node:internal/modules/cjs/loader:1269:14)
          at Module._extensions…js (node:internal/modules/cjs/loader:1324:10)
          at Module.load (node:internal/modules/cjs/loader:1124:32)
          at Module._load (node:internal/modules/cjs/loader:965:12)
          at f._load (node:electron/js2c/asar_bundle:2:13330)
          at Module.require (node:internal/modules/cjs/loader:1148:19)
          at require (node:internal/modules/cjs/helpers:110:18)
          at loadModule (/home/vinayak/MagicMirror/js/app.js:180:19)
          (Use electron --trace-warnings ... to show where the warning was created)
          [16.07.2023 18:40.43.267] [ERROR] (node:989) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejectin>MESA-LOADER: failed to retrieve device information
          MESA-LOADER: failed to retrieve device information
          MESA-LOADER: failed to retrieve device information
          MESA-LOADER: failed to open kms_swrast: /usr/lib/dri/kms_swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
          failed to load driver: kms_swrast
          MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied (search paths /usr/lib/arm-linux-gnueabihf/dri:$${ORIGIN}/dri:/usr/lib/dri)
          failed to load swrast driver
        S 1 Reply Last reply Reply Quote 0
        • S Offline
          sdetweil @vpanse
          last edited by

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

          Cannot find module ‘pinkie-promise’
          

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          karsten13K 1 Reply Last reply Reply Quote 0
          • karsten13K Offline
            karsten13 @sdetweil
            last edited by

            @sdetweil

            or forgot to run npm install in the module folder of MMM-FlightsAbove

            1 Reply Last reply Reply Quote 1
            • V Offline
              vpanse
              last edited by

              I did many changes suggested in Form but still little different issue

              [17.07.2023 05:21.57.786] [ERROR] (node:932) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘fetch-ponyfill’
              Require stack:

              • /home/vinayak/MagicMirror/modules/MMM-FlightsAbove/lib/radar.js
              • /home/vinayak/MagicMirror/modules/MMM-FlightsAbove/node_helper.js
              • /home/vinayak/MagicMirror/js/app.js
              • /home/vinayak/MagicMirror/js/electron.js
              • /home/vinayak/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js
              • at Module._resolveFilename (node:internal/modules/cjs/loader:1082:15)
                at n._resolveFilename (node:electron/js2c/browser_init:2:117469)
                at Module._resolveFilename (/home/vinayak/MagicMirror/node_modules/module-alias/index.js:49:29)
                at Module._load (node:internal/modules/cjs/loader:927:27)
                at f._load (node:electron/js2c/asar_bundle:2:13330)
                at Module.require (node:internal/modules/cjs/loader:1148:19)
                at require (node:internal/modules/cjs/helpers:110:18)
                at Object. (/home/vinayak/MagicMirror/modules/MMM-FlightsAbove/lib/radar.js:36:17)
                at Module._compile (node:internal/modules/cjs/loader:1269:14)
                at Module._extensions…js (node:internal/modules/cjs/loader:1324:10)
                at Module.load (node:internal/modules/cjs/loader:1124:32)
                at Module._load (node:internal/modules/cjs/loader:965:12)
                at f._load (node:electron/js2c/asar_bundle:2:13330)
                at Module.require (node:internal/modules/cjs/loader:1148:19)
                at require (node:internal/modules/cjs/helpers:110:18)
                at Object. (/home/vinayak/MagicMirror/modules/MMM-FlightsAbove/node_helper.js:43:15)
                (Use electron --trace-warnings ... to show where the warning was created)
                [17.07.2023 05:21.57.787] [ERROR] (node:932) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a c>
              S 1 Reply Last reply Reply Quote 0
              • S Offline
                sdetweil @vpanse
                last edited by sdetweil

                @vpanse said in I'm getting error -MESA-LOADER: failed to open swrast: /usr/lib/dri/swrast_dri.so: cannot open shared object file: Permission denied:

                Cannot find module ‘fetch-ponyfill’

                yes, unfortunately this module does not document in it’s package.json all the library dependencies it requires.

                so, for each one you have to do
                npm install xxxxx
                where xxxxx is the missing library from the message above (in single quotes)

                the module hasn’t been updated since 2018, so no idea if it still works after all that

                your other post was marked as spam, which I cannot override

                Sam

                How to add modules

                learning how to use browser developers window for css changes

                1 Reply Last reply Reply Quote 0
                • V Offline
                  vpanse
                  last edited by

                  Excellent, It works now . thanks a lot ,

                  1 Reply Last reply Reply Quote 0
                  • 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