panic: non-increasing sequence

Hey hey

So both devices (PC and NAS) had Ignore Permissions disabled. I’ve just enabled that on both.

I’m now seeing a lot of Index update log lines - like scores and scores of them on the PC.

PC is Scanning main folder (I assume from Permissions update). Says 44,000 items out of sync. And says Remote Device NAS is Syncing 4% (714GiB)

NAS is also Scanning main folder (I assume from Permissions update). Says there’s 871,000 items out of sync. And says Remote Device PC is Syncing 86% (229GiB)

That’s weird, I wouldn’t expect enabling ignore permissions to result in index updates. Anyway, now you’ll just have to wait until it settles and then we can take it from there.

Just FYI: When you encounter a weird state that shouldn’t happen and want to get to the bottom of it, do not change settings. It might make things better or worse, in any case it will get you in a different state, so debugging the original bad state isn’t possible anymore. In this case you now don’t need to run stindex anymore, that would have been helpful on the original state, but now we first need to await what happens after ignoring permissions.

Oh boo, sorry, OK! Sure, I’ll report back in a day or so when the indexing has settled down, thank you :slight_smile:

This is not necessary on a Windows computer. Activation is only required on the NAS.

And, it is correct, now you have to wait until the processes are finished. This can take some hours. The high values startle, but they should decrease after a while. In the end, in the ideal state there is no longer any deviation.

However, that is my experience.

If the Ignore Permissions are not activated on a (Synology) NAS, this has always led to deviations occurring within a short time. That was already the case with v0.13 or v0.14.

That’s not correct, ignore permissions is specifically applicable on windows.

Being frank: Please consider if you are really sure about it before giving advice on technical matters regarding Syncthing, and if in doubt don’t.

I agree with you. But I also outline, with default conditions is no proper running of Syncthing on a Synology NAS possible.

Since years I know that problem. And in this case, it also seems to make a difference.

If I read the thread too, it seems there are more functions behind as only Windows or FAT related things.

OK, so since the permissions change it looks to be moving on at a pace (unless I’m reading this wrong) .

Before we had:

  • PC is Scanning main folder (I assume from Permissions update). Says 44,000 items out of sync. And says Remote Device NAS is Syncing 4% (714GiB)

  • NAS is also Scanning main folder (I assume from Permissions update). Says there’s 871,000 items out of sync. And says Remote Device PC is Syncing 86% (229GiB)

And now we have:

  • PC is Scanning main folder (I assume from Permissions update). Says 73,500 items out of sync. And says Remote Device NAS is Syncing 77% (168GiB)

  • NAS is also Scanning main folder (I assume from Permissions update). Says there’s 880,000 items out of sync. And says Remote Device PC is Syncing 92% (131GiB)

Woop!

OK, I’m out today so wanted to send the latest through. This says permissions was the reason that nothing was progressing - which, I think from a potential solution in future, it would’ve been good if Syncthing had been able to prompt me about this - without raising it on here, I would’ve likely deleted and moved to another app as there was no clues as to the issues, or any way to debug this easily.

Most recent (last night):

  • PC is Scanning main folder (I assume from Permissions update). Says 73,500 items out of sync. And says Remote Device NAS is Syncing 77% (168GiB)

  • NAS is also Scanning main folder (I assume from Permissions update). Says there’s 880,000 items out of sync. And says Remote Device PC is Syncing 92% (131GiB)

Now:

  • PC is Scanning main folder. Says 18 items out of sync. And says Remote Device NAS is Syncing 93% (49.4GiB)

  • NAS is also Scanning main folder. Says there’s 99 items out of sync. And says Remote Device PC is Syncing 99% (5.15GiB)

Hey @Andy

You said -

I can see a folder full of files on the PC. I can see the same folder but empty on the NAS. I can see permissions on the NAS folder as:

Is there a definitive for permissions? I seem to have had to reset permissions throughout all folders quite a few times over time

I want to know, in which way you installed Syncthing. If you also use the Synology SPK-Package by SynoCommunity like me, you have a group is called “sc-syncthing”. Maybe you have a user is called “syncthing” or anything like that

Syncthing-Perms

For any folder you must set such user or group. The best and easiest way to adjust this is via Control Panel > Groups, then select “sc-syncthing”, Edit > Permissions and then select all the shared folders with which Syncthing should be able to work.

I see also Resilio in your list of permissions. The main difference between Syncthing and Resilio is, that Resilio is running in the administrators group:

administrators:x:101:admin,xxxxx,yyyyy,rslsync,SynologyCMS

You find that entrance in the group definition file “/etc/group”. That means, such settings for Resilio is not needed as described for Syncthing above. So you could delete “rslsync” in your above list and Resilio will still run.

And there are sometimes problems with permissions at Resilio too, but they are easier to solve. That Resilio is a member of the admins, however, is maybe a bigger risk.

Permission for sc-syncthing was “custom” and I’ve changed this to read/write and inherited to all subfolders and files and it’s run its way.

AND I’M NOW UP TO DATE :slight_smile:

Ahh, apart from about 80K 0b items on the Remote side, in the .sync folder. Which I’ve already deleted from BOTH sides as real folders and files but still exist in the .sync folder. Shall I just delete them? Or will that screw up the DB?

“.sync” is not a name Syncthing knows/cares about, i.e. no connection to the database (unless Synology does black magic (like -home ~/.sync)).

Anyways if they are deleted on disk, Syncthing shouldn’t show them as out of sync anywhere. If it does, you’ve encountered a bug (screenshots please).

I bet that hidden folder .sync was created by Resilio Sync and needs deleting. I’ve stopped all their services when I tried in mad panic last week so if it would “just work” and solve my issues. Mea culpa. I’ll delete :slight_smile:

1 Like

The result is great :+1:. If you not longer use Resilio, you can delete all .sync folder completly, otherwise you must use a special set of Ignore patterns per peer for both Resilio and Syncthing.

What was your reason to change to Syncthing?

I know, I’m stoked. Bit annoyed about the permissions thing being such a huge blocker for using the product and it not being obvious, other than asking here - seems like a biggy and a potential UX improvement to keeping more people on Syncthing.

I always used Syncthing. I only tried out Resilio because I was fed up wih Syncthing last week and was getting nowhere - a stalled sync for days, and no clarity has you go hunting hey.

The problem I had with Resilio was it took me a while to work out what ports to open, and when I got them opened and routed/forawrded on both sides, the Resilio client on the Syno NAS crashed on load, telling me to reload each time. No warning, no log file entries, nothing. I just gave up.

There is usually failed items on the receiving side explaining what the issue is, together with lines in the logs.

If you expect to be able to check whats wrong with a remote device, then you are expecting too much. On the local device the issue should be fairly straight forward to find.

I’m laughing tears. Or is that cry tears? :slight_smile:

The NAS says the remote has 83,000 files out of sync. All are 0 bytes. And all are NOT ON THE FILE SYSTEM. Do I need to tell it to start something again? Me confused.com :slight_smile:

I’ve checked logs on both ends, and both don’t even mention the folders/files in question or show any particular errors that would help.

You seem to be looking at stuff on the wrong side. If you see a remote device is out of sync, you should check the UI of the remote device, not try to understand what is happening remotely.

If you are still confused, I suggest you post screenshots from both sides so we could understand why you are confused.

I am quite confident @marky_uk by now does check both sides, and there’s indeed an inconsistency (i.e. remote device reported as out-of-sync, but on that remote device the local folder is up-to-date) - please correct me if I am wrong. Otherwise this is now again an opportunity to run the stindex tool :wink: