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

Upload fails with "Error writing metadata to the database" when using VFS #8754

Closed
dragotin opened this issue Jun 18, 2021 · 4 comments
Closed

Comments

@dragotin
Copy link
Contributor

On Windows with a sync running VFS, a user relatively often sees the error message "Error writing metadata to the database" when uploading files from the local machine.

It turns out that in the updateMetadata() method, which is actually triggering the error message, returns false in two cases:

  1. If the sync journal file record can not be written for whatever reason.
  2. If the vfs.convertToPlaceholder() method returns false.

The latter looks like the source of the problem. The suspicion is that the call to CfOpenFileWithOplock in convertToPlaceholder fails because the target file is locked, for example by an external app or because it is just in use.

The client must be able to deal with that situation as it can not be avoided.

Also see a related post here:

https://central.owncloud.org/t/windows-2-7-6-error-writing-metadata-when-using-virtual-files-ubuntu-server/31888/3

@TheOneRing
Copy link
Member

Fixed in 2.9

@MichaKersloot
Copy link

Hi,

I've got a question on this. Is this change only for virtual files? As we now seem to have files that are not syncing when op by the application and we are not using virtual files.

@TheOneRing
Copy link
Member

The described error only occurred with windows virtual files.
However 2.9 also improved the handling of locked files on Windows.

@michaelstingl
Copy link
Contributor

michaelstingl commented Sep 23, 2021

As we now seem to have files that are not syncing when op by the application and we are not using virtual files.

@MichaKersloot please check again with latest 2.9-daily builds:

In case you still experience problems, please open new issue and provide the required information.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants