File attachment sync error -- file permissions
I'm using ubuntu, and my zotero folder is on a separate NTFS partition. The problem is: Sync cannot download my attached files, and complains about file permissions. That doesn't make sense because (1) The file permissions are fine--They allow every user to create and delete files. (I just checked the exact file which zotero is complaining about. The permissions are "-rw-rw-rw-". The whole zotero folder is "drwxrwxrwx"). (2) I can successfully create files in my zotero folder via "Attach snapshot of current page". I can also successfully change the database by adding notes and tags. (4) The same partition has my Dropbox folder living on it, which has had no problems.
Here is my error message -- See Report ID 1065213038 for the whole thing.
[JavaScript Error: "bad script XDR magic number"]
[JavaScript Error: "[Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.lastModifiedTime]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://zotero/content/xpcom/storage.js :: Zotero.Sync.Storage</this.checkForUpdatedFiles/</checkItems/</</</< :: line 1053" data: no]" {file: "chrome://zotero/content/xpcom/file.js" line: 657}]
[JavaScript Error: "The file '/media/steve/213E2996268ED049/zotero/storage/62ISH6ZU/Yao et al. - blahblah.pdf' cannot be updated.
Thanks very much in advance!! :-D --Steve
Here is my error message -- See Report ID 1065213038 for the whole thing.
[JavaScript Error: "bad script XDR magic number"]
[JavaScript Error: "[Exception... "Component returned failure code: 0x80520015 (NS_ERROR_FILE_ACCESS_DENIED) [nsIFile.lastModifiedTime]" nsresult: "0x80520015 (NS_ERROR_FILE_ACCESS_DENIED)" location: "JS frame :: chrome://zotero/content/xpcom/storage.js :: Zotero.Sync.Storage</this.checkForUpdatedFiles/</checkItems/</</</< :: line 1053" data: no]" {file: "chrome://zotero/content/xpcom/file.js" line: 657}]
[JavaScript Error: "The file '/media/steve/213E2996268ED049/zotero/storage/62ISH6ZU/Yao et al. - blahblah.pdf' cannot be updated.
Thanks very much in advance!! :-D --Steve
But out of curiosity, did you actually set those things to 777/666, or is that just what all files on the NTFS show up as? (I'm guessing the latter, since it wouldn't necessarily have a place to store those.) What do you see for the 'storage' folder and the '62ISH6ZU' folder?
Apparently you can have NTFS mounts where it looks like you have full access but nevertheless there are permission problems. So it's not zotero's fault, like you say.
I will try messing around with the mount options as suggested at that link above. If I find something that works, then I will post it here for reference. :-D
To answer one of your questions, the only way to set NTFS permissions is while mounting the partition. (e.g., chmod doesn't work on NTFS files.)
UUID=blahblah /path/to/mountpoint ntfs-3g uid=steve,gid=steve,rw,auto,user,fmask=0111,dmask=0000\0400\0400,x-gvfs-show 0 0
Thanks again Dan and Adam for your help, --Steve