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.

    Non-Typical Setup, MM Stops Showing New Pictures (ImagesPhotos module)

    Scheduled Pinned Locked Moved Solved Troubleshooting
    18 Posts 2 Posters 966 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.
    • E Offline
      ember1205
      last edited by

      I have MM running on a virtual guest in my home lab. I have made an install on a RPi and have it connecting to the main “server” previously mentioned to display calendar, time, weather, and photos.

      The time continues to advance and the weather module updates over time as the temp or conditions change. While I suspect that the calendar info is also updating as would be expected, I have not done any explicit testing to verify that piece. The photos, however, stop changing out and it seems to only happen from this one client (I have connected a web browser from other client devices and let it sit and the photos seem to continue to advance and change as would be expected). This leads me to believe that the culprit may be electron, but I have no idea how to go about troubleshooting this to figure it out (and fix it).

      S 1 Reply Last reply Reply Quote 0
      • E Offline
        ember1205
        last edited by

        Yeah, I actually did more troubleshooting and such over the weekend and ended up doing a full upgrade to the RPi OS and then updating MM on there as well.

        My troubleshooting was showing that the server side “shouldn’t” have been the issue because launching a browser on just about any other device would result in the continual processing and rotating of photos and such. And, even though the photo processing seemed to be the only piece that would stop updating on the client, the fact that it worked everywhere else led me to take the leap and do all of the updates on the RPi.

        After doing the full upgrade to the latest version of RaspiOS (Bullseye) and then updating MM to the latest (using your scripts), it seems to be working correctly again and hasn’t stopped rotating the photos since the upgrade.

        S 2 Replies Last reply Reply Quote 0
        • S Offline
          sdetweil @ember1205
          last edited by

          @ember1205 try this test fix for losing the connection between the browser and the server side

          https://forum.magicmirror.builders/post/127456

          Sam

          How to add modules

          learning how to use browser developers window for css changes

          E 1 Reply Last reply Reply Quote 0
          • E Offline
            ember1205 @sdetweil
            last edited by

            @sdetweil Given that the weather information continues to update, wouldn’t that indiicate that the system is remaining connected? Additionally, there are three established connections to the server from the client when this occurs.

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

              @ember1205 this is socket by module

              specifically the

              socketNotificationReceived   no longer fires
              

              the socket timed out, and was disconnected… the node helper sends, but the socket is disconnected and the data is tossed (WITH NO NOTIFICATION)
              the module STARTS the connection on the 1st sendSocketNotification(), but NEVER again
              (the module sent a request to the helper, but the helper didn’t response (hasnt responded ‘yet’ 2 hours later… finger tapping… still waiting!)

              another way to ‘test’ if this is impacting, is to refresh the MM page, ctrl-r, and see if the data shows up this time.

              we have seen it repeatedly on the calendar module, the old timeout is 5 seconds. (default)…
              but list of pics could fall into the same ‘long’ response time issue

              I think they ‘fixed’ a socket.io bug in some lib refresh which suddenly surfaces the issue… we also ‘cleaned’ up how we setup sockets a few releases ago

              Sam

              How to add modules

              learning how to use browser developers window for css changes

              E 1 Reply Last reply Reply Quote 0
              • E Offline
                ember1205 @sdetweil
                last edited by

                @sdetweil Issue I see now is that the indicated lines to add the lines after do not exist in my versions of server or socketclient…

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

                  @ember1205 what version are you using?
                  look at the top of package.json

                  Sam

                  How to add modules

                  learning how to use browser developers window for css changes

                  E 1 Reply Last reply Reply Quote 0
                  • E Offline
                    ember1205 @sdetweil
                    last edited by

                    @sdetweil Version of MM? 2.13

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

                      @ember1205 ok, this fix doesn’t apply all the way back there… 32-13 19 releases/4 = one short of 5 years… wow!

                      Sam

                      How to add modules

                      learning how to use browser developers window for css changes

                      E 1 Reply Last reply Reply Quote 0
                      • E Offline
                        ember1205 @sdetweil
                        last edited by

                        @sdetweil So what you’re saying is that maybe I wanna start by upgrading? lol

                        I’m running on a Linux virtual guest, so I can easily snapshot it before I try and upgrade. What’s the best option for me to get current?

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

                          @ember1205 if it’s a virtual machine, not docker

                          You will have to upgrade the os too, so don’t touch the existing vm

                          Backup
                          Use my scripts, save to github

                          Create new Vm
                          Use my scripts to install MagicMirror
                          Use my restore to put back config

                          Backup/restore
                          https://github.com/sdetweil/MagicMirror-backup-restore

                          Install/upgrade
                          https://github.com/sdetweil/MagicMirror_scripts

                          Sam

                          How to add modules

                          learning how to use browser developers window for css changes

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