NS_ERROR_FILE_ACCESS_DENIED
Hi, just got this error on my partner's machine
[JavaScript Error: "[Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.remove]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://zotero/content/xpcom/storage.js :: _deleteExistingAttachmentFiles :: line 862" data: no]" {file: "chrome://zotero/content/xpcom/storage.js" line: 862}]
report id 801562064
windows xp, firefox 3.5.3 zotero r5085
Regards, Jon.
[JavaScript Error: "[Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.remove]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://zotero/content/xpcom/storage.js :: _deleteExistingAttachmentFiles :: line 862" data: no]" {file: "chrome://zotero/content/xpcom/storage.js" line: 862}]
report id 801562064
windows xp, firefox 3.5.3 zotero r5085
Regards, Jon.
If you enable debug output from the Advanced pane of the prefs you should be able to see what file it's trying to overwrite.
We can add a nicer error message.
The error report (337823779) is full of errors like "[JavaScript Error: "[Exception... "'Trying to update finished request null/7KEERTKU in Zotero.Sync.Storage.Request.onProgress()' when calling method: [nsIProgressEventSink::onProgress]" nsresult: "0x8057001e (NS_ERROR_XPC_JS_THREW_STRING)" location: "<unknown>" data: no]"]"
To check if there are any locks on the 7KEERTKU files on the webdav, I opened zotero directory on the server with explorer and tried to copy the two files (prop and zip) to my desktop, deleted them on the server and re-copied the files from my desktop to the server. The error persisted.
Error report: 337823779
Debug report: D804524438
Are you still getting this in 2.0b7.1 and after a computer restart?
Error message:
Component returned failure code: 0x80520012 (NS_ERROR_FILE_NOT_FOUND) [nsIFile.create]
Report ID 1995888376
Computer restart did not help.
(Win XP professional/ FF 3.0.4 / Z 2.0b7.1 )
(Win 7 RTM / FF 3.5.3 / Z 2.0b7.1 )
madsjensen: Which error? Please provide a Report ID from Report Errors under the gear menu.
Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.remove]
Box.net webdav is used for file storage.
Report ID: 173857697
After a week without proper syncing, I decided to try to resolve the problem. I tried the following:
- yesterday I purged the deleted and orphaned storage files: at first the error didn't show up, but today (after restarting FF) it was back
- I resetted the sync history, but the error persited
- I resetted the local database with the online version, but things got even worse: got some kind of Itemid = null error, after which an empty sync confict resolution window appeared and automagically disappeared again after a second or two, and after which the original error appeared again. (a pity I din't bother to make error or debug reports at this point)
- as the latest information is certainly online and not in my local copy, I removed the sqlite files and the storage directory locally (well, actually moved it, to be able to revert to the actual state)and restored the local version again with the online data. A drastic solution, but it resolved the problem...
The next version of Zotero (and the current dev builds) will display a more helpful message identifying the file in question, but that's pretty much the only thing we can do about it.
This applies to the "(NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.remove]" error only. If you get this exact error and don't think you have a file open, and the error persists even after restarting your computer, let us know and provide a Debug ID. If you get any different error, please start a new thread.
Debug ID is D1102339107 (hopefully, it the corresponding one)
As I mentioned, number of files to be downloaded gets smaller. The number of files to upload gets higher though, and no extra sources have been added to the library.
Report ID: 1385810900
Debug ID: D47730819
Meanwhile, I have successfully synchronized from scratch my laptop running Windows XP. The problematic Windows 7 machine still struggles after all this time, but only 22 files are left unsynchronized now.
D149895055
I appreciate all the support (and, indeed, Zotero itself is a superb piece of software), and if I can help in any other fashion, please let me know.