Read the statement by Michael Teeuw here.
Non-Typical Setup, MM Stops Showing New Pictures (ImagesPhotos module)
-
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).
-
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.
-
@ember1205 try this test fix for losing the connection between the browser and the server side
-
@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.
-
@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 issueI 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
-
@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…
-
@ember1205 what version are you using?
look at the top of package.json -
@sdetweil Version of MM? 2.13
-
@ember1205 ok, this fix doesn’t apply all the way back there… 32-13 19 releases/4 = one short of 5 years… wow!
-
@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?
-
@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 githubCreate new Vm
Use my scripts to install MagicMirror
Use my restore to put back configBackup/restore
https://github.com/sdetweil/MagicMirror-backup-restoreInstall/upgrade
https://github.com/sdetweil/MagicMirror_scripts