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-RTSPStream broke after update 2.17.1

    Scheduled Pinned Locked Moved Troubleshooting
    19 Posts 4 Posters 5.8k 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.
    • JerryPJ Offline
      JerryP
      last edited by JerryP

      After a clean and fresh install mirror crasht whit a black screen.

      pm2 log output

      0|MagicMir |     at require (internal/modules/cjs/helpers.js:88:18)
      0|MagicMir |     at Object.<anonymous> (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:11:15)
      0|MagicMir |     at Module._compile (internal/modules/cjs/loader.js:1078:30)
      0|MagicMir |     at Object.Module._extensions..js (internal/modules/cjs/loader.js:1108:10) {
      0|MagicMir |   code: 'MODULE_NOT_FOUND',
      0|MagicMir |   requireStack: [
      0|MagicMir |     '/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js',
      0|MagicMir |     '/home/pi/MagicMirror/js/app.js',
      0|MagicMir |     '/home/pi/MagicMirror/js/electron.js',
      0|MagicMir |     '/home/pi/MagicMirror/node_modules/electron/dist/resources/default_app.asar/main.js',
      0|MagicMir |     undefined
      0|MagicMir |   ]
      0|MagicMir | }
      0|MagicMir | [17.10.2021 21:04.27.536] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection? 
      

      Help please.
      This is the config part

      module: "MMM-RTSPStream",
      disabled: false, //false, true
      position: "upper_third",  // "middle_center" "upper_third"
      zoom: -0.6,
      		config: {
      			autoStart: true,
      			rotateStreams: false,
      			rotateStreamTimeout: 20,
      			moduleWidth: 720,
      			moduleHeight: 320,
      			localPlayer: "omxplayer", // "omxplayer" or "ffmpeg", or "vlc"
      			remotePlayer: 'none',
      			showSnapWhenPaused: false,
      			remoteSnaps: false,
      			  stream1: {
      			  name: 'Garage Botter Acker',
      			  url: 'rtsp://User:Pass***@192.168.**.**:554/cam/realmonitor?channel=1&subtype=1',
      			  protocol: "tcp",
      			  frameRate: 25,
      			  muted: true,
      			},
      			}},
      

      Pm2 -v
      5.1.2
      nam -v
      6.14.15
      node -v
      v14.18.1

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

        @jerryp a little farther up the log says what module was not found, probably request

        in the module folder, do

        npm install request
        

        Sam

        How to add modules

        learning how to use browser developers window for css changes

        1 Reply Last reply Reply Quote 0
        • JerryPJ Offline
          JerryP
          last edited by

          Thanks but this is not working
          This is the log

          pi@raspberrypi:~/MagicMirror/modules/MMM-RTSPStream 
          $ npm install request
          npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
          npm WARN deprecated har-validator@5.1.5: this library is no longer supported
          + request@2.88.2
          added 43 packages from 50 contributors and audited 244 packages in 26.473s
          
          11 packages are looking for funding
            run `npm fund` for details
          
          found 0 vulnerabilities
          
          
          
          S 1 Reply Last reply Reply Quote 0
          • JerryPJ Offline
            JerryP
            last edited by

            pi@raspberrypi:~/MagicMirror/modules/MMM-RTSPStream
            $ npm fund
            mmm-rtspstream@2.0.2-dev
            ├─┬ https://github.com/sponsors/ljharb
            │ └── resolve@1.20.0, is-core-module@2.8.0
            ├─┬ https://github.com/sponsors/RubenVerborgh
            │ └── follow-redirects@1.14.4
            ├─┬ https://github.com/chalk/ansi-styles?sponsor=1
            │ └── ansi-styles@4.3.0
            ├─┬ https://github.com/sponsors/jonschlinkert
            │ └── picomatch@2.3.0
            ├─┬ https://github.com/sponsors/feross
            │ └── safe-buffer@5.2.1, run-series@1.1.9
            ├─┬ https://www.patreon.com/feross
            │ └── safe-buffer@5.2.1, run-series@1.1.9
            ├─┬ https://feross.org/support
            │ └── safe-buffer@5.2.1, run-series@1.1.9
            ├─┬ https://github.com/sponsors/sindresorhus
            │ └── escape-string-regexp@4.0.0
            ├─┬ https://www.buymeacoffee.com/systeminfo
            │ └── systeminformation@5.9.7
            ├─┬ https://github.com/sponsors/isaacs
            │ └── glob@7.2.0
            └─┬ https://github.com/sponsors/epoberezkin
            └── ajv@6.12.6

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

              @jerryp and the mm start msgs?

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              JerryPJ 1 Reply Last reply Reply Quote 0
              • JerryPJ Offline
                JerryP @sdetweil
                last edited by

                @sdetweil

                sorry

                0|MagicMirror  | Launching application.
                0|MagicMirror  | [18.10.2021 17:14.57.392] [ERROR] 
                0|MagicMirror  | Whoops! There was an uncaught exception...
                0|MagicMirror  | [18.10.2021 17:14.57.412] [ERROR] 
                0|MagicMirror  | TypeError: Cannot convert undefined or null to object
                0|MagicMirror  |     at Function.keys (<anonymous>)
                0|MagicMirror  |     at stopProcs (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:469:32)
                0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:498:17
                0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2/lib/API.js:627:19
                0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon-rpc/lib/client.js:45:10
                0|MagicMirror  |     at Parser.<anonymous> (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon/lib/sockets/req.js:67:8)
                0|MagicMirror  |     at Parser.emit (events.js:315:20)
                0|MagicMirror  |     at Parser._write (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/amp/lib/stream.js:91:16)
                0|MagicMirror  |     at writeOrBuffer (internal/streams/writable.js:358:12)
                0|MagicMirror  |     at Parser.Writable.write (internal/streams/writable.js:303:10)
                0|MagicMirror  | [18.10.2021 17:14.57.414] [ERROR] MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                0|MagicMirror  | [18.10.2021 17:14.57.416] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                
                

                But the mirror is running. on a PI3B and now I’m out off RAM so lets order a 4B8GB hihihi

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

                  @jerryp so there was an error and the module didn’t handle it.

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  swvalentiS 1 Reply Last reply Reply Quote 0
                  • swvalentiS Offline
                    swvalenti Project Sponsor @sdetweil
                    last edited by

                    pm2 start omx_stream1
                    
                    S 1 Reply Last reply Reply Quote 0
                    • S Offline
                      sdetweil @swvalenti
                      last edited by

                      @swvalenti then

                      pm2 save
                      

                      so it will restart on next boot

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      swvalentiS 1 Reply Last reply Reply Quote 0
                      • swvalentiS Offline
                        swvalenti Project Sponsor @sdetweil
                        last edited by

                        @sdetweil my guess is the omx stream was not started by pm2 after the update

                        JerryPJ 1 Reply Last reply Reply Quote 0
                        • JerryPJ Offline
                          JerryP @swvalenti
                          last edited by sdetweil

                          @swvalenti
                          No the module was not booting totally. after i make the npm install request. the module is starting only the fault stil is in the log every time I reboot the mirror.

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

                            @jerryp this module needs another process to be running IN ADDITION to MM…

                            Sam

                            How to add modules

                            learning how to use browser developers window for css changes

                            JerryPJ 1 Reply Last reply Reply Quote 0
                            • JerryPJ Offline
                              JerryP @sdetweil
                              last edited by

                              @sdetweil ok. But what’s the solution? off is there no solution for this problem?

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

                                @jerryp u were advised to start the other process manually
                                https://forum.magicmirror.builders/topic/15753/mmm-rtspstream-broke-after-update-2-17-1/8?_=1634583021814

                                Sam

                                How to add modules

                                learning how to use browser developers window for css changes

                                JerryPJ 1 Reply Last reply Reply Quote 0
                                • JerryPJ Offline
                                  JerryP @sdetweil
                                  last edited by

                                  @sdetweil Why… the module is running fine after I did what you told me to do. Only the error in the log is there now. but the module is running fine. What will by the use of starting the stream Manuel…

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

                                    @jerryp said in MMM-RTSPStream broke after update 2.17.1:

                                    Only the error in the log is there now

                                    ok, you didn’t say it was working

                                    what error in the log?

                                    did u do pm2 flush to throw away the old messages?

                                    Sam

                                    How to add modules

                                    learning how to use browser developers window for css changes

                                    JerryPJ 1 Reply Last reply Reply Quote 0
                                    • JerryPJ Offline
                                      JerryP @sdetweil
                                      last edited by

                                      @sdetweil
                                      O Yes it’s running only I’m using for testing a PI3B so this is running out of Ram memory.

                                      I also did the flus and still is er a issue when it’s booting pm2 start MagicMirror.

                                      0|MagicMirror  | [18.10.2021 21:18.12.312] [ERROR] 
                                      0|MagicMirror  | Whoops! There was an uncaught exception...
                                      0|MagicMirror  | [18.10.2021 21:18.12.452] [ERROR] 
                                      0|MagicMirror  | TypeError: Cannot convert undefined or null to object
                                      0|MagicMirror  |     at Function.keys (<anonymous>)
                                      0|MagicMirror  |     at stopProcs (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:469:32)
                                      0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_helper.js:498:17
                                      0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2/lib/API.js:627:19
                                      0|MagicMirror  |     at /home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon-rpc/lib/client.js:45:10
                                      0|MagicMirror  |     at Parser.<anonymous> (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/pm2-axon/lib/sockets/req.js:67:8)
                                      0|MagicMirror  |     at Parser.emit (events.js:315:20)
                                      0|MagicMirror  |     at Parser._write (/home/pi/MagicMirror/modules/MMM-RTSPStream/node_modules/amp/lib/stream.js:91:16)
                                      0|MagicMirror  |     at writeOrBuffer (internal/streams/writable.js:358:12)
                                      0|MagicMirror  |     at Parser.Writable.write (internal/streams/writable.js:303:10)
                                      0|MagicMirror  | [18.10.2021 21:18.12.466] [ERROR] 
                                      0|MagicMirror  | MagicMirror will not quit, but it might be a good idea to check why this happened. Maybe no internet connection?
                                      0|MagicMirror  | [18.10.2021 21:18.12.473] [ERROR] If you think this really is an issue, please open an issue on GitHub: https://github.com/MichMich/MagicMirror/issues
                                      
                                      S 1 Reply Last reply Reply Quote 0
                                      • S Offline
                                        sdetweil @JerryP
                                        last edited by

                                        @jerryp said in MMM-RTSPStream broke after update 2.17.1:

                                        469

                                        the code seems to be trying to connect to the pm2 task for omx stream

                                        looking for the name

                                        which appears to be in this area of the config

                                            stream1: {
                                                    name: 'BigBuckBunny Test',   <--- I guess this needs to be the name of the pm2 process..
                                        

                                        Sam

                                        How to add modules

                                        learning how to use browser developers window for css changes

                                        BKeyportB 1 Reply Last reply Reply Quote 0
                                        • BKeyportB Offline
                                          BKeyport Module Developer @sdetweil
                                          last edited by

                                          @sdetweil I seem to recall that’s how it worked.

                                          Bottom line is that it’s breaking more and more, and should likely be put in the “yeah, it’s unsupported” pile of past modules.

                                          FWIW, I use my MMM-Block module to slide modules out of the way, and just run the OMX stream directly for now. (Looking for a solution for H.265 streams)

                                          The "E" in "Javascript" stands for "Easy"

                                          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