Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

desktop.ini file in .lock folder prevents sync #3381

Closed
harrisra opened this issue Jun 18, 2020 · 0 comments
Closed

desktop.ini file in .lock folder prevents sync #3381

harrisra opened this issue Jun 18, 2020 · 0 comments
Labels
bug It's a bug high High priority issues sync sync related issue

Comments

@harrisra
Copy link

I am using google drive (locally synced using google file stream app) to synchronise a Jopin 'File system' target folder across multiple computers (all windows 10).

Windows 10 has a tendency to auto create hidden 'desktop.ini' files within folders (these files store meta data for the folder - i.e. which icon show). I think in my case google drive is using the desktop.ini file to tell windows to show a 'shared folder icon' instead of the normal folder icon but you would these files if you changed how a folder should order/sort show files etc.

It looks like Joplin's sync process makes use of a '.lock' folder within the 'File system' target folder.

When this '.lock' folder contains a hidden 'desktop.ini' file the sync process fails with the following error:

Completed: 2020-06-18 08:24
Last error: Error: Sync target appears to be locked but lock filename is invalid: .lock/desktop.ini. Please delete it on the sync target to continue.

Deleting the desktop.ini file from this folder allows sync to continue (so there is a workaround). However since windows will recreate it again can a future build of Joplin be set to ignore the presence of this file.

Environment

Joplin version: 1.0.218 (prod, win32)
Platform: Windows
OS specifics: Windows 10

Steps to reproduce

  1. Create a desktop.ini file in the .lock folder of a Jopin 'File system' target
  2. Initiated Synchronisation
  3. The sync process fails with the following error:

Completed: 2020-06-18 08:24
Last error: Error: Sync target appears to be locked but lock filename is invalid: .lock/desktop.ini. Please delete it on the sync target to continue.

Describe what you expected to happen

Synchronisation completes as normal

@harrisra harrisra added the bug It's a bug label Jun 18, 2020
@laurent22 laurent22 added high High priority issues sync sync related issue labels Jun 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug It's a bug high High priority issues sync sync related issue
Projects
None yet
Development

No branches or pull requests

2 participants