• Recent
  • Tags
  • Unsolved
  • Solved
  • MagicMirror² Repository
  • Documentation
  • 3rd-Party-Modules
  • Donate
  • Discord
  • Register
  • Login
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.

MMM-RTSPtoWeb fresh install

Scheduled Pinned Locked Moved Unsolved Troubleshooting
6 Posts 2 Posters 467 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.
  • S Offline
    sforza
    last edited by Jun 1, 2024, 11:09 PM

    Hi all,

    I had this working on an ancient Rpi2B last year and was extremely happy with it, used to monitor my kids sleeping (or not). Surely stream was low res and the pi was getting hot while doing this, but it just worked and it was awesome.

    That Pi died so I moved to a Pi4B 4GB I had lying around, just did a fresh installation of 64bit Raspberry Pi OS and Magic Mirror, and this RTSPtoWeb module is unfortunately not working, which I expected somehow, it’s two years since last update of the code.

    Of course the RPi2B was running an older RPI OS version, likely was Buster or Bullseye, can’t really remember, surely 32bit.

    I have RTSPtoWeb - WebRTC Home Assistant module running on a separate NUC and all is good. Exact same instance I used on the RPi2B.

    Error log below. Not sure if easily solvable or related to the deep changes across major version upgrades. Any ideas would be greatly appreciated. Let me know for any additional input required please.

    Original developer @shbatm does not seem to be connecting since long ago as per his forum stats. My appreciation for your work here, it was beautiful while it worked.

    Thanks a ton in advance!

    sforza@rpi4:~/MagicMirror $ uname -a
    Linux rpi4 6.6.28+rpt-rpi-v8 #1 SMP PREEMPT Debian 1:6.6.28-1+rpt1 (2024-04-22) aarch64 GNU/Linux

    https://github.com/shbatm/MMM-RTSPtoWeb

    sforza@rpi4:~/MagicMirror $ npm run start

    magicmirror@2.27.0 start
    DISPLAY=“${DISPLAY:=:0}” ./node_modules/.bin/electron js/electron.js

    [2024-05-30 14:57:40.824] [LOG] Starting MagicMirror: v2.27.0
    [2024-05-30 14:57:40.910] [LOG] Loading config …
    [2024-05-30 14:57:40.915] [LOG] config template file not exists, no envsubst
    [2024-05-30 14:57:40.927] [LOG] Loading module helpers …
    [2024-05-30 14:57:40.930] [LOG] No helper found for module: alert.
    [2024-05-30 14:57:41.462] [LOG] Initializing new module helper …
    [2024-05-30 14:57:41.465] [LOG] Module helper loaded: updatenotification
    [2024-05-30 14:57:41.466] [LOG] No helper found for module: clock.
    [2024-05-30 14:57:41.796] [LOG] Initializing new module helper …
    [2024-05-30 14:57:41.797] [LOG] Module helper loaded: calendar
    [2024-05-30 14:57:41.802] [LOG] No helper found for module: weather.
    [2024-05-30 14:57:42.005] [LOG] Initializing new module helper …
    [2024-05-30 14:57:42.008] [LOG] Module helper loaded: newsfeed
    [2024-05-30 14:57:42.012] [LOG] Initializing new module helper …
    [2024-05-30 14:57:42.013] [LOG] Module helper loaded: mmm-systemtemperature
    [2024-05-30 14:57:43.886] [ERROR] (node:5145) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘node-fetch’
    Require stack:

    • /home/sforza/MagicMirror/modules/MMM-RTSPtoWeb/node_helper.js
    • /home/sforza/MagicMirror/js/app.js
    • /home/sforza/MagicMirror/js/electron.js
      at Module._resolveFilename (node:internal/modules/cjs/loader:1055:15)
      at s._resolveFilename (node:electron/js2c/browser_init:2:115476)
      at Module._resolveFilename (/home/sforza/MagicMirror/node_modules/module-alias/index.js:49:29)
      at Module._load (node:internal/modules/cjs/loader:908:27)
      at c._load (node:electron/js2c/node_init:2:13672)
      at Module.require (node:internal/modules/cjs/loader:1122:19)
      at require (node:internal/modules/helpers:130:18)
      at Object. (/home/sforza/MagicMirror/modules/MMM-RTSPtoWeb/node_helper.js:2:15)
      at Module._compile (node:internal/modules/cjs/loader:1256:14)
      at Module._extensions…js (node:internal/modules/cjs/loader:1311:10)
      at Module.load (node:internal/modules/cjs/loader:1098:32)
      at Module._load (node:internal/modules/cjs/loader:945:12)
      at c._load (node:electron/js2c/node_init:2:13672)
      at Module.require (node:internal/modules/cjs/loader:1122:19)
      at require (node:internal/modules/helpers:130:18)
      at loadModule (/home/sforza/MagicMirror/js/app.js:183:19)
      (Use electron --trace-warnings ... to show where the warning was created)
      [2024-05-30 14:57:43.916] [ERROR] (node:5145) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag --unhandled-rejections=strict (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
      [5265:0530/145747.981108:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145747.981646:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145747.982116:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145747.982482:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145747.983029:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145747.983441:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145747.984014:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145747.984499:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145747.985053:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145747.986087:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145747.989123:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145747.989407:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145747.990198:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145747.990576:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145747.999511:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145747.999992:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145748.000610:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145748.001291:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145748.007640:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145748.012479:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145748.016622:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145748.019573:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145748.023712:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145748.025404:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145748.026450:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145748.027096:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [5265:0530/145748.028094:ERROR:gbm_wrapper.cc(76)] Failed to get fd for plane.: No such file or directory (2)
      [5265:0530/145748.030385:ERROR:gbm_wrapper.cc(259)] Failed to export buffer to dma_buf: No such file or directory (2)
      [2024-05-30 14:57:48.589] [INFO] System information:

    SYSTEM: manufacturer: ; model: ; raspberry: undefined; virtual: false

    OS: platform: linux; distro: Debian GNU/Linux; release: 12; arch: arm64; kernel: 6.6.28+rpt-rpi-v8

    VERSIONS: electron: 29.1.6; used node: 20.9.0; installed node: 22.2.0; npm: 10.7.0; pm2: 5.3.1

    OTHER: timeZone: Europe/Madrid; ELECTRON_ENABLE_GPU: undefined

    ^C/home/sforza/MagicMirror/node_modules/electron/dist/electron exited with signal SIGINT

    S 1 Reply Last reply Jun 1, 2024, 11:17 PM Reply Quote 0
    • S Away
      sdetweil @sforza
      last edited by Jun 1, 2024, 11:17 PM

      @sforza said in MMM-RTSPtoWeb fresh install:

      [2024-05-30 14:57:43.886] [ERROR] (node:5145) UnhandledPromiseRejectionWarning: Error: Cannot find module ‘node-fetch’
      Require stack:

      /home/sforza/MagicMirror/modules/MMM-RTSPtoWeb/node_helper.js

      yes, this is an older module that is missing a library we removed

      see this for instructions on how to fix
      https://forum.magicmirror.builders/topic/15778/fix-for-black-screen-in-2-16-and-later

      note there are 4 or 5 libraries that could be the cause… the error message identifies which…

      this particular library needs a version number added

      so,
      npm install node-fetch@2
      in the affected module folder

      Sam

      How to add modules

      learning how to use browser developers window for css changes

      S 1 Reply Last reply Jun 1, 2024, 11:36 PM Reply Quote 0
      • S Offline
        sforza @sdetweil
        last edited by Jun 1, 2024, 11:36 PM

        @sdetweil thanks a ton for the super fast response! I’m in bed now and turned off the computer already, will surely try tomorrow! If it was not 1:30 am here and waking up early tomorrow I’d try right now! Knowing there is hope to fix it got me really excited!

        S 1 Reply Last reply Jun 2, 2024, 2:01 PM Reply Quote 0
        • S Offline
          sforza @sforza
          last edited by Jun 2, 2024, 2:01 PM

          It works!!! I could not be happier :D

          Thanks a ton - especially for the accurate instructions.

          Yes I was able to identify the error line quite clearly. However, could you please explain how did you convert “node-fetch” to “node-fetch@2” as the missing module? - other than experience of course?

             UnhandledPromiseRejectionWarning: Error: Cannot find module ‘node-fetch’
          

          Thanks again!

          S 1 Reply Last reply Jun 2, 2024, 2:03 PM Reply Quote 0
          • S Away
            sdetweil @sforza
            last edited by Jun 2, 2024, 2:03 PM

            @sforza just experience

            Sam

            How to add modules

            learning how to use browser developers window for css changes

            S 1 Reply Last reply Jun 2, 2024, 6:09 PM Reply Quote 0
            • S Offline
              sforza @sdetweil
              last edited by Jun 2, 2024, 6:09 PM

              @sdetweil thanks for sharing it then!

              1 Reply Last reply Reply Quote 0
              • 1 / 1
              1 / 1
              • First post
                2/6
                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