V1.23.3-rc.1 and Received Encrypted

I have two Raspberry Pis that have for a long time separately and successfully received encrypted folders from either of two laptops.

As usual, when the latest RC became available I updated both RPis and both laptops. Soon after the laptops’ GUI were showing ‘Unexpected Items’ for the Received Encrypted folders and the laptop was reporting out-of-sync for those folders.

Reverting the unexpected items only resulted in them immediately reappearing and the out-of-sync folders remained. Curiously, there were no files shown in the out-of-sync modal only 3.6MB on both laptops.

I have since reverted all devices to V1.23.2 and after clearing the unexpected items all has returned to normal for the past 24 hours.

I’m wondering if others have notice this problem and if #8556 might be the culprit in V1.23.3-rc.1.

BTW, there was also a javascript error (yellow bar) appearing briefly after starting the GUI for each laptop. That has also gone after reverting to 23.2.

There’s been a change and a transition related to receive-encrypted folders, so this is 99% a problem with that.

I assume there’s nothing that looks out of the ordinary in the logs?

Could you make a backup of your config and db, and then collect information with the RC again? That would be very helpful.
Given the problem re-appears after doing a revert, I think the following would be the simplest to gain some first info:
Upgrade to the RC and wait until you are in that bad situation. Then take screenshots of the expanded folder and the (empty) list of unexpected items, just to get an overview. Then enable model and db error logging (going to be very noisy) and hit revert - wait until the you are back in the broken state. Then please share those sections of logs. If you don’t want to do it publicly but are comfortable with sharing it privately, you can send it by personal message here or to freisim93@gmail.com.

Actually that likely also goes beyond what I tested (simple setup of two devices, one encrypted one not): Could you describe the exact setup for the folder, i.e. what device shares with what other including encrypted or not.

Thanks @imsodin First the topography.

RPi4 and RPi3B+ are running Bullseye 24/7 and are both updated regularly. They are independent of each other and don’t share ST folders except with both laptops. Laptops are running Xubuntu 22.10 and are regularly updated.

Folders are unencrypted and synced between both laptops. Shared folder between laptops and Pis are a mix of unencrypted (borg, kopia, restic and fsarchiver, all independently encrypted) and ST encrypted, such as documents and Thunderbird profile. The Pis independently use rclone to send their unencrypted folders to rsync.net and Mega.

The encrypted documents folder is synced by the Pis to my Android phone, where it’s unencrypted by ST.

That’s probably over-complicated (I’m trialing kopia and restic) but it works successfully.

I’ll try and get to your tests later today or tomorrow being careful not to screw up my setup.

Thanks. To double check my understanding I’ll reiterate some bits that might be relevant:
No encrypted folder on any of the Pis is shared directly with the other Pis, only with unencrypted devices. And the problems occur on all folders, not just ones involving android.

On the first point: correct, no shares between Pis.

My Android phone (V1.23.1) is not continuously connected, I can’t recall if it was connected after the other four devices were upgraded to rc.1 and when I noticed the persistent ‘Unexpected Items’.

However, pausing and unpausing folders on RPi4 to try to isolate the problem, I did notice that pausing the Document folder (shared Pis to phone) on the RPi4 caused the ‘out-of sync’ on the laptops to change to ‘up-to-date’, suggesting that that folder was the only problematic one. Unpausing it caused ‘out-of-sync’ again. I think that reverting Unexpected Items on the Thunderbird folder (not shared Pis to phone) worked. So Android might be involved.

I will ensure the phone is not connected and upgrade the other devices and carefully check what happens.

Further test: I upgraded RPi4 to rc.1 and immediately this happened.

The modal show 3.6MB out-of-sync but no file is shown.

Then with Documents paused, this:

I thought I’ll revert to 1.23.2 and repeat the experiment with RPi3. However, unexpectedly, after downgrading RPi4 still had the same out-of-sync:

Again, pausing the Documents folder, all is well again:

Throughout this experiment, my laptop showed RPi4 as up-to-date.

I think I’ll now delete the RPi4 Document folder and re-share it to try and eliminate this problem.

EDIT: Removing and re-sharing both laptops from the RPi4 has resolved this anomaly.

Android phone not involved in any of the above!

I thought I would try a brute force solution on the Receive Encrypted devices (RPi4 and RPi3): stop Syncthing, delete the database, upgrade to rc.1 and then restart Syncthing. At the same time I upgraded the two laptops to rc.1.

That seemed to work initially (all green up-to-date) until files changed and Unexpected Items appeared on the encrypted devices. Reverting those items and restarting Syncthing only continued the cycle. Even stopping and restarting Syncthing on the Pis caused Unexpected Items without altering any files.

Frustratingly, I now back to 1.23.2 on all four devices and peace returns. But what of the future?