About once per day, TextEdit starts showing dialogs like this when I try to open any file:
The document “test.txt” could not be opened. You don’t have permission.
To view or change permissions, select the item in the Finder and choose File > Get Info.
There's usually messages like this in system.log:
9/13/12 10:41:42.952 PM sandboxd[21081]: ([357]) TextEdit(357) deny file-read-data /Users/lauri/Desktop/test.txt
9/13/12 10:41:55.118 PM TextEdit[357]: NSFileVersion tried to tried to add a new generation and failed. Versioned file URL: file://localhost/Users/lauri/Notes/temp.txt, contents URL: file://localhost/Users/lauri/Notes/temp.txt.sb-de6477ff-BhVNrq, error: Error Domain=GSLibraryErrorDomain Code=1 "The operation couldn’t be completed. (GSLibraryErrorDomain error 1.)"
9/13/12 10:41:55.118 PM TextEdit[357]: NSDocument failed to preserve the old version of a document. Here's the error:
Error Domain=GSLibraryErrorDomain Code=1 "The operation couldn’t be completed. (GSLibraryErrorDomain error 1.)"
9/13/12 10:41:55.119 PM TextEdit[357]: <Document: 0x7f971d00a510>: An error occurred while attempting to preserve the backup file at file://localhost/Users/lauri/Notes/temp.txt.sb-de6477ff-BhVNrq: Error Domain=GSLibraryErrorDomain Code=1 "The operation couldn’t be completed. (GSLibraryErrorDomain error 1.)"
I can't open any files until I quit and reopen TextEdit. I also have to delete the backup files (like temp.txt.sb-de6477ff-BhVNrq
) manually.
I've had the issue on two different installations. I have tried deleting the sandbox container and repairing permissions from the recovery partition. Does anyone know what's going on?
ls -lt
? – paulgrav Jan 02 '13 at 07:36deny mach-lookup com.apple.ls.boxd
anddeny mach-lookup com.apple.coresymbolicationd
. I haven't worked with files on other volumes. – Lri Jan 02 '13 at 15:40ps -ef | grep TextEdit
, and use the second number. (the first is your UID).Then you can use
– Tim B Jan 02 '13 at 15:48dtruss -p <pid>
to see the system call fail. Then you should be able to tell if the filesystem is correct, and if so, perhaps TextEdit has the wrong perms.lsboxd
errors in my system.log too. I think they’re mostly harmless. – paulgrav Jan 02 '13 at 20:07