I’m getting sort of sick of this.
I’m trying to sync my 8GB diary between my laptop and my home server. I’m using the same folder pair that I use with my phone.
What I did was set my home server as one of the shared clients, and accepted it in my home server. After lots of issues with permissions (It’s a mounted drive), I finally set the permissions to be that of my own user soham
and made a folder pair. At first, sync was going great, but it keeps hanging up in the last 3GiB, claiming that the folder marker is gone.
Usually, i’d make a temp directory and restart the syncthing, and then move everything to the directory I wanted, but the issue is that it starts by claiming that the marker is missing. So, I manually made a blank .stfolder
in that directory. Sync continued, but then it failed again, in the last 3GiB. This time, it claims again that the marker is missing, but it isn’t. I can see the marker in the folder its syncing too. It has the permissions of my user as well. Note that this isn’t a file name issue (as I experience on Android) as both the sender and the recipient are Linux machines.
As I was writing this, I noticed that the global/local state between the two places differ. How on earth could this be possible? I’m confident that all the folder paths are right.
Also, the directory listing of both USB-Storage/Vaults
and Public Files/Diary
are (respectively)
soham:~> ls -la ~/Documents/USB-Storage/Vaults/
total 56
drwxr-xr-x 11 soham soham 4096 May 11 22:28 .
drwx------ 7 soham soham 4096 Mar 30 11:39 ..
drwxrwxrwx 5 soham soham 4096 Apr 14 16:03 Bharatyam-Vasyam
-rw------- 1 soham soham 34 May 7 11:37 .directory
drwxrwxrwx 11 soham soham 4096 Jul 11 17:56 'My Site'
-rw-r--r-- 1 soham soham 1784 May 8 21:36 README.md
drwxr-xr-x 8 soham soham 4096 Jul 11 16:41 School
drwxrwxrwx 7 soham soham 4096 Jul 7 10:31 "Soda's Guitar Speaks"
drwxrwxrwx 9 soham soham 4096 Jul 11 13:46 "Soda's Story Stash"
drwxr-xr-x 2 soham soham 4096 Dec 31 2024 .stfolder
-rw------- 1 soham soham 26 Feb 14 13:23 .stignore
drwxr-xr-x 6 soham soham 4096 Mar 28 13:36 .stversions
drwxrwxrwx 7 soham soham 4096 Jul 11 21:57 'The Adventures of Soda'
drwxrwxrwx 8 soham soham 4096 Jul 9 22:48 'The Japanese Notebook of Soda (ソダの日本語ノート)'
[soham@thinkcenter temp]$>>> ls -la
total 52
drwxr-xr-x 10 soham soham 4096 Jul 12 20:26 .
drwxr-xr-x 5 soham soham 4096 Jul 12 20:11 ..
-rw-r--r-- 1 soham soham 34 May 7 11:37 .directory
drwxr-xr-x 2 soham soham 4096 Jul 12 20:17 .stfolder
-rw------- 1 soham soham 26 Jul 12 20:26 .stignore
drwxr-xr-x 5 soham soham 4096 Jul 12 20:13 Bharatyam-Vasyam
drwxr-xr-x 11 soham soham 4096 Jul 12 20:13 'My Site'
-rw-r--r-- 1 soham soham 1784 May 8 21:36 README.md
drwxr-xr-x 8 soham soham 4096 Jul 12 20:13 School
drwxr-xr-x 7 soham soham 4096 Jul 12 20:13 "Soda's Guitar Speaks"
drwxr-xr-x 9 soham soham 4096 Jul 12 20:13 "Soda's Story Stash"
drwxr-xr-x 7 soham soham 4096 Jul 12 20:13 'The Adventures of Soda'
drwxr-xr-x 8 soham soham 4096 Jul 12 20:13 'The Japanese Notebook of Soda (ソダの日本語ノート)'
If the .stfolder
was missing on the server, I would’ve understood the error, but it IS present.
Also, Syncthing is running via systemd on the home server. Here’s the unit file I made, at /etc/systemd/system/syncthing.service
[Unit]
Description=Syncthing service for the entire network
After=network.target
StartLimitIntervalSec=0
[Service]
Type=simple
Restart=always
RestartSec=1
User=soham
ExecStart=syncthing
[Install]
WantedBy=multi-user.target
EDIT : Checked out the local state on the server via the file manager, and the contents seem identical to what it is in my laptop (1.1GiB, equal amounts of files). Ignore rules only filter out 60KiB.