New Zotero 7 Sync errors
Hi all,
I have a sync problem that seems to be related to the last few betas. I have attached a screenshot of the error. When I look at the log, it seems to be permission-related, but I'm not sure it is because the sync still goes ahead - I can see all the latest changes on the web version on another device, including all annotations.
I tried completely deleting the reference and re-adding it, which solved that problem for that reference, but it then found another to complain about, and so on. But there doesn't seem to be a pattern for why it does this on certain references. I have, of course, checked that the file isn't opened elsewhere, and Windows and Zotero have full access privileges. I have also uninstalled/reinstalled and freshly resynced from the web, which works for a while.
When I went back to Zotero 6, everything was fine, but I couldn't stay in 6 as I had ebooks and annotations that could only be seen in 7.
--------------------------------------------------------
Screenshot
https://s3.amazonaws.com/zotero.org/images/forums/u6662587/7nmiftg8o5npuc4n8bf2.png
----------------------------------------------------------
copy of log:
[unrelated errors removed — D.S.]
[JavaScript Error: "NotAllowedError: Access was denied to the target file" {file: "chrome://zotero/content/xpcom/file.js" line: 1399}]
Zotero.File</this.checkFileAccessError@chrome://zotero/content/xpcom/file.js:1399:22
Zotero.Sync.Storage.Local._checkForUpdatedFile<@chrome://zotero/content/xpcom/storage/storageLocal.js:375:23
[JavaScript Error: "The file 'C:\Users\kevin\Zotero\storage\EA4B6QB6\2022 - How Nature contributed to science’s discriminatory legacy.pdf' cannot be updated.
Check that the file is not currently in use, that its permissions allow write access, and that it has a valid filename.
Restarting your computer or disabling security software may also help."]
I have a sync problem that seems to be related to the last few betas. I have attached a screenshot of the error. When I look at the log, it seems to be permission-related, but I'm not sure it is because the sync still goes ahead - I can see all the latest changes on the web version on another device, including all annotations.
I tried completely deleting the reference and re-adding it, which solved that problem for that reference, but it then found another to complain about, and so on. But there doesn't seem to be a pattern for why it does this on certain references. I have, of course, checked that the file isn't opened elsewhere, and Windows and Zotero have full access privileges. I have also uninstalled/reinstalled and freshly resynced from the web, which works for a while.
When I went back to Zotero 6, everything was fine, but I couldn't stay in 6 as I had ebooks and annotations that could only be seen in 7.
--------------------------------------------------------
Screenshot
https://s3.amazonaws.com/zotero.org/images/forums/u6662587/7nmiftg8o5npuc4n8bf2.png
----------------------------------------------------------
copy of log:
[unrelated errors removed — D.S.]
[JavaScript Error: "NotAllowedError: Access was denied to the target file" {file: "chrome://zotero/content/xpcom/file.js" line: 1399}]
Zotero.File</this.checkFileAccessError@chrome://zotero/content/xpcom/file.js:1399:22
Zotero.Sync.Storage.Local._checkForUpdatedFile<@chrome://zotero/content/xpcom/storage/storageLocal.js:375:23
[JavaScript Error: "The file 'C:\Users\kevin\Zotero\storage\EA4B6QB6\2022 - How Nature contributed to science’s discriminatory legacy.pdf' cannot be updated.
Check that the file is not currently in use, that its permissions allow write access, and that it has a valid filename.
Restarting your computer or disabling security software may also help."]
This discussion has been closed.
That makes sense. Here is the debug ID: D1675284034
Thanks
@Kevin1980: If you temporarily disable auto-sync in the Sync tab of the settings, restart Zotero, and run this in Tools → Developer → Run JavaScript, what's the result?
return await IOUtils.setModificationTime(PathUtils.join(Zotero.Attachments.getStorageDirectoryByLibraryAndKey(1, 'EA4B6QB6').path, "2022 - How Nature contributed to science’s discriminatory legacy.pdf"), 1715440938022)
the result is:
===>1715440938022<=== (number)
If you sync now, do you get an error for a different item?
Let us know if you see it again.
Yes will do - I have since added and annotated a few more references which all appear to have synced fine with no other errors.
Thanks again.
https://s3.amazonaws.com/zotero.org/images/forums/u8911469/6s8owm7c7v52lse5ow9e.png
I have tried the following operation:
1. Delete the erroneous attachment and resynchronize Zotero, but it will report another attachment with a synchronization error, and so on.
2. Completely delete the cloud data files and synchronize again. This method can temporarily resolve the error, but it will reappear in a few days.
I use webDAV to synchronize attachments on Zotero, with the following settings:
https://s3.amazonaws.com/zotero.org/images/forums/u8911469/4m40ijsgg8b7ey9v1nc8.png
Here is my debug ID: D1141080381. Looking forward to your help, Thank you!