Possible Snow Leopard problem - Extended Attributes

Questions regarding Mac OS X Specifically can be placed here, such as questions regarding TimeMachine, for example.
Forum rules
1) This is a user forum for Synology users to share experience/help out each other: if you need direct assistance from the Synology technical support team, please use the following form:
https://myds.synology.com/support/suppo ... p?lang=enu
2) To avoid putting users' DiskStation at risk, please don't paste links to any patches provided by our Support team as we will systematically remove them. Our Support team will provide the correct patch for your DiskStation model.

Possible Snow Leopard problem - Extended Attributes

Postby Cloudane » Sun Aug 30, 2009 12:50 am

Following is a copy of a message I posted to the Apple support forums. I'll post it here too, in case it's a problem with the Synology device's AFP implementation. Any thoughts?

For certain files that I copy from one of my drives to the NAS here (Synology 206j), ever since upgrading to Snow Leopard, Finder's behaviour has changed. It will simply refuse to copy the file, stating that "The operation can’t be completed because you don’t have permission to access some of the items."

The source is an external USB drive in Mac OS Extended format, I do have full permissions on the files and in any case the drive is set to ignore ownership.

The target is, like most NASes, in EXT3 format. It's sharing via its own AFP implementation.

I'd have tried repairing permissions, but for whatever reason, it's greyed out on my external drives. Since then I've figured that it was probably not that anyway, which will become apparent:

I tried copying the file via the terminal and it actually worked, but also gave an error: "cp: myfile: could not copy extended attributes to /Volumes/media backup/myfile: Operation not permitted"

This suggests to me that, as expected, the target volume doesn't support extended attributes. But rather than popping up with the message that Leopard did (something along the lines of "your target volume doesn't support extended attributes so your file's metadata may be lost, do you wish to continue") it just aborts instead.

I'm not sure if this is a Snow Leopard problem or a change that Synology need to catch up with. A workaround is to compress the file to ZIP first.

Thought I'd mention it here before trying to report it as a bug somewhere. Anyone else having similar issues, either with a NAS or some other storage, in which case please specify?
Cloudane
I'm New!
I'm New!
 
Posts: 8
Joined: Tue Aug 18, 2009 5:28 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby Sidekick » Sun Aug 30, 2009 10:14 am

Hi,

I have the same problem with my iMac and a Macbook Alu running Snow Leopard.

I found out, that the file attribute "com.apple.metadata:kMDItemWhereFroms" makes the problem.
It is easy to test. Just download a file from the internet with Safari. Safari will add the "com.apple.metadata:kMDItemWhereFroms" attribute to the file.
Now when you they to copy, you get the error: "The operation can’t be completed because you don’t have permission to access some of the items."

But if you download the same file with firefox, that the attribute is not set, and you can copy the file.

You can "repair" the files with following command in the terminal:

find * -type f -exec xattr -d com.apple.metadata:kMDItemWhereFroms {} \;

With this command, the attribute will be removed for all files the current folder.

I hope Apple oder Synology will find a solution for this problem very soon.

Bye Sidekick
Sidekick
I'm New!
I'm New!
 
Posts: 1
Joined: Sun Aug 30, 2009 10:06 am

Re: Possible Snow Leopard problem - Extended Attributes

Postby j.vangoch » Sun Aug 30, 2009 8:48 pm

I have the same problem when I copy diskimages (DMG) to my DS207+
j.vangoch
I'm New!
I'm New!
 
Posts: 1
Joined: Sun Aug 30, 2009 8:44 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby local.bin » Mon Aug 31, 2009 1:40 pm

Same problem here, cannot access any of my cs407's :(
local.bin
Student
Student
 
Posts: 71
Joined: Tue Aug 12, 2008 11:14 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby Cloudane » Mon Aug 31, 2009 5:35 pm

Hi again, been monitoring the Apple forum and Netatalk mailing list. It's looking like a netatalk problem.

I'm not an expert on the programming side of things, but there's a discussion currently going on netatalk-admin acknowledging that it's an issue with lack of support for more than 2 Extended Attributes. SL also adds a .AppleDouble directory.

They're thinking up various solutions, and I'm detecting a certain sense of urgency so I think they'll have it fixed fairly soon :) They're currently debating whether to do a temporary fix of 'pretending' to support the EAs if the proper implementation is going to take a while.

Once netatalk is updated, I'm sure Synology will be quick to implement it in an update.

For now, I would say use the Samba protocol instead, or compress the files first.
Cloudane
I'm New!
I'm New!
 
Posts: 8
Joined: Tue Aug 18, 2009 5:28 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby elishasessions » Tue Sep 01, 2009 9:56 pm

I guess I'll stick with NFS!
elishasessions
Rookie
Rookie
 
Posts: 35
Joined: Wed Mar 26, 2008 12:04 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby madgunde » Sun Sep 06, 2009 9:17 pm

Thanks Sidekick for pointing me towards the xattr. Thanks also to Cloudane for your research in the Apple forums, although I'm having problems with files that contain just a single extended attribute, so I think additional study is needed. I suspect it might be the contents of the extended attributes themselves, possibly unsupported characters or malformed data that might be the problem, but these are only educated guesses from what I've observed first hand.

So, for those who want to make it work through brute force, in Terminal, type:

xattr filename[return]

To list a file's extended attributes. Then delete all of them using this command (make a backup copy of the file first!):

xattr -d attributename filename[return]

You'll have to execute the command once for each attribute. I'd suggest you thoroughly test the file afterwards to make sure you haven't removed an attribute that is necessary for some application function to work properly. I'm no expert on extended file attributes, but the one's I've seen seem to be pretty disposable and exist simply to add functionality to Finder/Mac OS X, but aren't important for the file to function properly. Your mileage may vary, so proceed with caution and make a copy of your file before proceeding and thoroughly test your results.

For those who want to understand the xattr command better, type "xattr -h" at the terminal prompt to view the xattr instructions. The command doesn't have an actual man page (ie: man xattr brings up nothing).

For those who would rather not muck about in Terminal, I've found that you can use the FileStation web interface to upload the file to the NAS without issue. That's probably less work (and safer) than mucking about with xattr.

EDIT: I've also found that you can copy prolbem files containing extended attributes using the cp Terminal command which reports an error that the extended attributes could not be copied, but still copies the file only with problem extended attributes stripped.
madgunde
Trainee
Trainee
 
Posts: 16
Joined: Fri Feb 29, 2008 5:46 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby erion » Mon Sep 14, 2009 8:53 am

Hello,

it's ok for me with DSM 2.2 and Snow Leopard 10.6.1
erion
I'm New!
I'm New!
 
Posts: 2
Joined: Mon Sep 14, 2009 8:48 am

Re: Possible Snow Leopard problem - Extended Attributes

Postby johnnygrandis » Mon Sep 14, 2009 9:41 pm

Looks like its ok for me to 2.2DSM, havent tried all the file types but i have a problem file with DSM 2.1 but after upgrade the file copy on my Synology disk without a problem.
Snow Leopard 10.6.1. Thanks to erion.... :D
johnnygrandis
I'm New!
I'm New!
 
Posts: 2
Joined: Thu Jun 18, 2009 9:42 am

Re: Possible Snow Leopard problem - Extended Attributes

Postby guru75 » Tue Sep 15, 2009 9:20 pm

Hello,

I have updated my 107+ with the Firmware-Version DSM 2.2-0942. I use 10.6.1 and the system is connected go the synology by samba. But I have the problems withthe extended attributes again.

Some Ideas ?
guru75
I'm New!
I'm New!
 
Posts: 1
Joined: Tue Sep 15, 2009 9:02 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby raindelay » Thu Sep 17, 2009 1:37 am

It seems like a number of people are having issues with using the latest firmware and snow leopard. Has there been any official response from Synology on this?
raindelay
I'm New!
I'm New!
 
Posts: 9
Joined: Sun Sep 13, 2009 9:13 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby rootuid » Thu Sep 17, 2009 5:41 pm

raindelay wrote:It seems like a number of people are having issues with using the latest firmware and snow leopard. Has there been any official response from Synology on this?

I'm another "The operation can’t be completed because you don’t have permission to access some of the items" person using Snow Leopard and DS 2.2.

thanks SideKick for the workaround!
rootuid
Trainee
Trainee
 
Posts: 14
Joined: Wed Dec 03, 2008 1:20 pm

Re: Possible Snow Leopard problem - Extended Attributes

Postby Dan Gilbert » Sat Sep 19, 2009 10:00 am

I'm encountering a very similar, though not identical, issue since upgrading to Snow Leopard and DSM 2.2 recently. If I connect to my DS209 via SMB, and drag-and-drop a file into the share, it will copy over just fine but then appear "grayed-out" in the finder, making it so it can't be renamed. The file's permissions are odd (-rw-r--r--@ vs the normal -rwxrwxrwx) and it will have an xattr value named com.apple.FinderInfo. I'm able to chmod the file's permissions, but I can't seem to remove the xattr using the -d flag. Copying the same file using File Station works fine. I'm also able to copy the file using rsync or cp to attain a "clean" version of the file. Annoying issue; hope it's fixed very soon.
Dan Gilbert
I'm New!
I'm New!
 
Posts: 7
Joined: Tue Jul 28, 2009 12:54 am

Re: Possible Snow Leopard problem - Extended Attributes

Postby collinduncan » Wed Sep 23, 2009 6:24 am

Dan Gilbert wrote:... via SMB, and drag-and-drop a file into the share, it will copy over just fine but then appear "grayed-out" in the finder, making it so it can't be renamed. The file's permissions are odd (-rw-r--r--@ vs the normal -rwxrwxrwx) and it will have an xattr value named com.apple.FinderInfo. I'm able to chmod the file's permissions, but I can't seem to remove the xattr using the -d flag. Copying the same file using File Station works fine...

My problem exactly.
collinduncan
I'm New!
I'm New!
 
Posts: 1
Joined: Wed Sep 23, 2009 6:21 am

Re: Possible Snow Leopard problem - Extended Attributes

Postby pablito » Wed Sep 23, 2009 8:43 pm

collinduncan wrote:
Dan Gilbert wrote:... via SMB, and drag-and-drop a file into the share, it will copy over just fine but then appear "grayed-out" in the finder, making it so it can't be renamed. The file's permissions are odd (-rw-r--r--@ vs the normal -rwxrwxrwx) and it will have an xattr value named com.apple.FinderInfo. I'm able to chmod the file's permissions, but I can't seem to remove the xattr using the -d flag. Copying the same file using File Station works fine...

My problem exactly.


Me too but I have notice that if I put files in a directory on the mac and you copy the directory to the syno then it works.
I think this is a Synology problem because I did not have this issue before update to DSM 2.2 and I have tested with a SMB share on a MS Windows workstation and I don't have the problem.
pablito
I'm New!
I'm New!
 
Posts: 2
Joined: Fri Sep 11, 2009 9:32 am

Next

Return to Mac OS X

Who is online

Users browsing this forum: No registered users and 6 guests