I attempted to open some of my documents and received this message:
‘Document file ‘XXX.odt’ is locked for editing by:
Unknown User
Open document read-only or open a copy of the document for editing.’
This problem seems to occur intermittently. I am unsure why. It seems not to occur on my android device, however it occurs on both my Lenovo Z570 and my other Lenovo machine which is a different model, both running the same version of Debian. I have tried closing Syncthing and powering off both of my other machines. I still cannot access the file.
Version Information
Syncthing Version: v0.14.18, Linux (64 bit)
OS Version: Debian 8.6 Jessie
Or rather your document is open on some other machine, and syncthing syncs the lock files across. You should probably check what are the names of the lock files and add them to ignore list.
I would be careful ignoring lock files unless the connection between peers are transient or you don’t mind dealing with sync conflicts when multiple people edit files at once.
I don’t think this is the problem because I’ve never had an issue like this before installing Syncthing. I also do not use Syncthing for anything but my 2 personal computers and my phone. I turn off my other machines and the file still remains locked. I shut down Syncthing and the file is still locked. This only happens on the computers and not the phone.
I found the file lock! It was a hidden file in the syncing folder. I deleted the lock and now I can use the file. What causes the file to lock? Will I still need to worry about syncing issues if I am working on the files alone?
Is it likely that this will continue to happen every time now? I deleted the lock file, however now there is a new lock file and it is appearing on my phone, so this is not just happening with my linux computers anymore.