I’m probably missing something very obvious - I’ve just installed syncthing on my Android phone and Linux computer and I can’t get folders to sync.
I’ve added a folder on the phone, which has some content it. I then added a folder on the computer with the same folder ID and set it to share with the phone. I can see on the phone that the folder is shared with the computer. But the folder does not sync.
The phone says “Idle (100%)” and “114 / 114 Files”, while the computer says “Idle 100%” and “Global State: 0 items”; “Out Of Sync: 0 items”.
On the computer I have v0.10.3, while the phone has 0.5.2 which claims to be Syncthing Version v0.10.3.
I’m not sure if what I did is correct - I’m familiar with btsync that has a key for each folder. What I did in Syncthing is to create a folder with a specified Folder ID, and then create the same folder with the same Folder ID in the other node.
We have an additional step unfortunately. If you pull up the editor for the folder you’ll see a checkbox at the bottom for which devices to share the folder with. Make sure the other side is checked there, on both devices.
Thanks for the response, but as I’ve mentioned on the first post - I’ve also completed that: the phone has the computer name checked under “Devices” for the folder, and the same on the computer.
I guess it could be that you’re NAT’ed out on both ends without an ability to communicate directly between the devices.
I assume both ends show the other device as offline?
Can you check the rescan interval on the phone?
I have a feeling that the files on the phone haven’t been picked up… Which might be due to 0 rescan interval…
Alternatively, add a new empty file to perhaps trigger an update and version bump.
The rescan interval on the phone is 60. I’ve added a small file, and the UI on the phone has increased the file count - but the computer’s debug outptu still says
"mobile-downloads": 0 files
Opening the web UI on the phone, I see a notice:
"Unexpected folder ID “mobile-downloads” send tfom device "
Check for spelling and typos, it seems that you might have misspelled the folder name somewhere?
I guess you should be getting same type of messages on the other node?
If not, perhaps the folder is shared on one device but not the other?
I guess you could post screenshots which would help us debug the situation.
Ok, interesting - now I noticed that in the web interface on the phone you can see that the folder is only shared with “localhost” (which, if I understand correctly, the phone itself) while in the phone UI both external nodes are checked.
From more testing, it looks like when you create a new folder from the phone UI, it has all external nodes selected by default, but it does not actually enable sharing with them - as can be seen in the web UI. I can unselect all nodes, exit from editing, get back in to select the nodes again and only then it works.
I can confirm this issue on a Galaxy S4. The share checkbox was automatically checked in the app GUI but when I switched to Web GUI the folders were not shared. Checking them in the Web GUI appears to have fixed the sync issue. However, I keep seeing an error in the Web GUI (on the phone) that says:
Global discovery: stat /etc/resolv.conf: no such file of directory; trying again in 1m0s
Can you check what’s the value of the global announce server in the config?
It should be an IP and not a hostname, if it’s a hostname, change it to 194.126.249.5
@Nutomic mentioned that shouldn’t happen, so I smell a bug somewhere.
Same goes with the ‘Share with’ selection, I suggest you raise an issue on his tracker.