problem with a file copy (permissions)?

Get help. Get answers. Let others lend you a hand.

Moderator: Mr_Noodle

problem with a file copy (permissions)? Wed Apr 16, 2014 9:20 pm • by tik-tok
hello friendly noodlesoft forums!

(i searched and searched before sending this.)

so, i have two servers (both mavericks). on server-a, we have an excel file (excel-a) that a single user has access to, read-and-write. she works in it all day long. saving as she goes.

we want all the other users (about 10) to have read-only access. this does not seem to work using standard os x permissions and acl's. so i had the brilliant idea to buy hazel (just for this!) copy a copy (excel-b) over to server-b whenever the original (excel-a) was newer than the copy (excel-b).

this seems to work anywhere from 1-3 days until one of the following happens:
• hazel won't copy (excel-a)
• hazel copies a copy that is "corrupt" (generally a zero k file)
• no one can open what's on the target.

• occasionally, the connection will drop (but i think that's only happened once in a month).

does anyone have any advice?
i think this might be getting into applescript or shell land, where i don't do so hot. so, please talk slowly and help me keep my hands on the rail? :D

thanks!
tik-tok
 
Posts: 2
Joined: Wed Apr 16, 2014 9:08 pm

Re: problem with a file copy (permissions)? Thu Apr 17, 2014 12:32 pm • by Mr_Noodle
Does she have the file open when the copy is done? Also, are you using the copy or sync action? I suggest checking the logs and seeing if there are any errors. Post or email what you find.
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City

Re: problem with a file copy (permissions)? Thu Apr 17, 2014 2:08 pm • by tik-tok
thanks, mr_noodle!

➊ mostly?

➋ copy (not familiar with sync)


Code: Select all
2014-04-16 08:16:45.313 hazelworker[74812] ###main load address: 0x1055b8000
2014-04-16 08:16:45.394 hazelworker[74812] ###Noodle load address: 0x105691000
2014-04-16 08:16:45.394 hazelworker[74812] ###CK load address: 0x105654000
2014-04-16 08:16:47.364 hazelworker[74812] Processing folder This-is-the-Folder
2014-04-16 08:16:49.570 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:16:51.760 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:16:53.950 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:16:58.134 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:17:02.328 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:17:10.525 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:17:18.715 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:17:26.887 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:17:35.118 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:17:43.319 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:17:51.521 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:17:59.722 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:18:07.921 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:18:16.118 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:18:24.301 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:18:32.499 hazelworker[74812] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:18:32.500 hazelworker[74812] Done processing folder This-is-the-Folder
2014-04-16 08:19:07.442 hazelworker[74941] ###main load address: 0x1017d9000
2014-04-16 08:19:07.443 hazelworker[74941] ###Noodle load address: 0x1018b4000
2014-04-16 08:19:07.443 hazelworker[74941] ###CK load address: 0x101876000
2014-04-16 08:19:08.105 hazelworker[74941] Processing folder This-is-the-Folder
2014-04-16 08:19:10.496 hazelworker[74941] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:19:10.901 hazelworker[74941] Done processing folder This-is-the-Folder
2014-04-16 08:22:10.643 hazelworker[75089] ###main load address: 0x1073ac000
2014-04-16 08:22:10.694 hazelworker[75089] ###Noodle load address: 0x107487000
2014-04-16 08:22:10.694 hazelworker[75089] ###CK load address: 0x10744b000
2014-04-16 08:22:11.377 hazelworker[75089] Processing folder This-is-the-Folder
2014-04-16 08:22:14.822 hazelworker[75089] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:22:15.251 hazelworker[75089] Done processing folder This-is-the-Folder
2014-04-16 08:27:14.971 hazelworker[75352] ###main load address: 0x104e86000
2014-04-16 08:27:15.050 hazelworker[75352] ###Noodle load address: 0x104f5d000
2014-04-16 08:27:15.050 hazelworker[75352] ###CK load address: 0x104f24000
2014-04-16 08:27:15.721 hazelworker[75352] Processing folder This-is-the-Folder
2014-04-16 08:27:17.958 hazelworker[75352] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:27:17.977 hazelworker[75352] Done processing folder This-is-the-Folder
2014-04-16 08:27:55.074 hazelworker[75376] ###main load address: 0x100523000
2014-04-16 08:27:55.074 hazelworker[75376] ###Noodle load address: 0x100602000
2014-04-16 08:27:55.074 hazelworker[75376] ###CK load address: 0x1005c2000
2014-04-16 08:27:55.357 hazelworker[75376] Processing folder This-is-the-Folder
2014-04-16 08:27:57.560 hazelworker[75376] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:27:57.592 hazelworker[75376] Done processing folder This-is-the-Folder
2014-04-16 08:28:57.959 hazelworker[75414] ###main load address: 0x1010bc000
2014-04-16 08:28:57.960 hazelworker[75414] ###Noodle load address: 0x101197000
2014-04-16 08:28:57.960 hazelworker[75414] ###CK load address: 0x10115c000
2014-04-16 08:28:58.620 hazelworker[75414] Processing folder This-is-the-Folder
2014-04-16 08:29:00.784 hazelworker[75414] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:29:00.802 hazelworker[75414] Done processing folder This-is-the-Folder
2014-04-16 08:34:01.683 hazelworker[75674] ###main load address: 0x103efe000
2014-04-16 08:34:02.152 hazelworker[75674] ###Noodle load address: 0x103fd8000
2014-04-16 08:34:02.152 hazelworker[75674] ###CK load address: 0x103f99000
2014-04-16 08:34:05.181 hazelworker[75674] Processing folder This-is-the-Folder
2014-04-16 08:34:07.420 hazelworker[75674] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:34:07.487 hazelworker[75674] Done processing folder This-is-the-Folder
2014-04-16 08:36:05.547 hazelworker[75752] ###main load address: 0x10eb4e000
2014-04-16 08:36:05.549 hazelworker[75752] ###Noodle load address: 0x10ec28000
2014-04-16 08:36:05.549 hazelworker[75752] ###CK load address: 0x10ebee000
2014-04-16 08:36:05.980 hazelworker[75752] Processing folder This-is-the-Folder
2014-04-16 08:36:08.482 hazelworker[75752] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:36:08.888 hazelworker[75752] Done processing folder This-is-the-Folder
2014-04-16 08:41:08.620 hazelworker[75909] ###main load address: 0x10d02f000
2014-04-16 08:41:08.674 hazelworker[75909] ###Noodle load address: 0x10d108000
2014-04-16 08:41:08.674 hazelworker[75909] ###CK load address: 0x10d0cb000
2014-04-16 08:41:09.328 hazelworker[75909] Processing folder This-is-the-Folder
2014-04-16 08:41:11.560 hazelworker[75909] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:41:11.581 hazelworker[75909] Done processing folder This-is-the-Folder
2014-04-16 08:42:46.046 hazelworker[75963] ###main load address: 0x103df4000
2014-04-16 08:42:46.047 hazelworker[75963] ###Noodle load address: 0x103ecb000
2014-04-16 08:42:46.047 hazelworker[75963] ###CK load address: 0x103e92000
2014-04-16 08:42:46.480 hazelworker[75963] Processing folder This-is-the-Folder
2014-04-16 08:42:48.875 hazelworker[75963] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:42:49.070 hazelworker[75963] Done processing folder This-is-the-Folder
2014-04-16 08:43:24.700 hazelworker[75990] ###main load address: 0x1016af000
2014-04-16 08:43:24.701 hazelworker[75990] ###Noodle load address: 0x10178b000
2014-04-16 08:43:24.701 hazelworker[75990] ###CK load address: 0x10174e000
2014-04-16 08:43:25.122 hazelworker[75990] Processing folder This-is-the-Folder
2014-04-16 08:43:27.326 hazelworker[75990] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:43:27.329 hazelworker[75990] Done processing folder This-is-the-Folder
2014-04-16 08:53:27.427 hazelworker[76406] ###main load address: 0x106fac000
2014-04-16 08:53:27.480 hazelworker[76406] ###Noodle load address: 0x107086000
2014-04-16 08:53:27.480 hazelworker[76406] ###CK load address: 0x107049000
2014-04-16 08:53:27.988 hazelworker[76406] Processing folder This-is-the-Folder
2014-04-16 08:53:30.180 hazelworker[76406] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 08:53:30.276 hazelworker[76406] Done processing folder This-is-the-Folder
2014-04-16 09:08:30.278 hazelworker[77093] ###main load address: 0x10378b000
2014-04-16 09:08:30.329 hazelworker[77093] ###Noodle load address: 0x103867000
2014-04-16 09:08:30.329 hazelworker[77093] ###CK load address: 0x10382b000
2014-04-16 09:08:31.043 hazelworker[77093] Processing folder This-is-the-Folder
2014-04-16 09:08:33.272 hazelworker[77093] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 09:08:33.364 hazelworker[77093] Done processing folder This-is-the-Folder
2014-04-16 09:38:33.340 hazelworker[78465] ###main load address: 0x1061a8000
2014-04-16 09:38:33.393 hazelworker[78465] ###Noodle load address: 0x10627f000
2014-04-16 09:38:33.393 hazelworker[78465] ###CK load address: 0x106246000
2014-04-16 09:38:34.049 hazelworker[78465] Processing folder This-is-the-Folder
2014-04-16 09:38:36.290 hazelworker[78465] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 09:38:36.334 hazelworker[78465] Done processing folder This-is-the-Folder
2014-04-16 10:16:29.099 hazelworker[80265] ###main load address: 0x104c8a000
2014-04-16 10:16:29.151 hazelworker[80265] ###Noodle load address: 0x104d68000
2014-04-16 10:16:29.152 hazelworker[80265] ###CK load address: 0x104d29000
2014-04-16 10:16:29.922 hazelworker[80265] Processing folder This-is-the-Folder
2014-04-16 10:16:32.079 hazelworker[80265] File excel-a.xlsx is busy. Skipping for now.
2014-04-16 10:16:32.102 hazelworker[80265] Done processing folder This-is-the-Folder
2014-04-16 11:07:03.514 hazelworker[82828] ###main load address: 0x109de2000
2014-04-16 11:07:03.566 hazelworker[82828] ###Noodle load address: 0x109eb8000
2014-04-16 11:07:03.566 hazelworker[82828] ###CK load address: 0x109e7f000
2014-04-16 11:07:04.194 hazelworker[82828] Processing folder This-is-the-Folder
2014-04-16 11:07:08.624 hazelworker[82828] excel-a.xlsx: Rule copy This-is-the-Folder to server-b matched.
2014-04-16 11:07:12.626 hazelworker[82828] [File Event] File copied: excel-a.xlsx copied from folder /Volumes/PROMISE PEGASUS/This-is-the-Folder to folder /Volumes/This-is-the-Folder Read Only.
2014-04-16 11:07:12.808 hazelworker[82828] Done processing folder This-is-the-Folder


thanks again for your help!
tik-tok
 
Posts: 2
Joined: Wed Apr 16, 2014 9:08 pm

Re: problem with a file copy (permissions)? Fri Apr 18, 2014 3:15 pm • by Mr_Noodle
Well, it seems that most of the time, the file is open and Hazel won't process it. I'm only seeing it copy once and I don't see an error. I suggest keeping close tabs on it. If you experience a corrupt copy, open the logs and find the corresponding messages for it. Try and correlate which messages in the logs correspond to which outcomes (successful, corrupt, etc.).
Mr_Noodle
Site Admin
 
Posts: 11255
Joined: Sun Sep 03, 2006 1:30 am
Location: New York City


Return to Support