Announcement

Collapse
No announcement yet.

Unable to copy/delete ... Access is denied?

Collapse
X
  • Filter
  • Time
  • Show
Clear All
new posts

  • bcoldtimer
    started a topic Unable to copy/delete ... Access is denied?

    Unable to copy/delete ... Access is denied?

    I am setting up a new laptop running Win 7 Pro 64 bit and BC Version 3.3.3 (build 14128).

    I connected an external USB hard drive to sync some files and got errors such as this:

    "2012-01-15 00:47:17 Unable to delete f:\d\Home\Computer\SONY VGN-NS130E\N360S200.exe: Access is denied"

    The files intended to be deleted or overwritten are not read-only. What prevents BC from deleting or overwriting the files on the external USB hard drive?

    Please help. Thanks!

  • Aaron
    replied
    Hello,

    I've only recently added a Mac Mini to my testing hardware suite. It currently runs 1.8.3, and I enabled sharing in a similar method as you described (Sharing Settings, enabling Samba, and my similarly named user).

    Unfortunately, I'm not seeing the same issues you are running into. The sync seems to work as expected between Windows 7 and the Mini. I also noticed in an earlier screenshot that at least one .docx file was included in your error list. I would guess that it isn't doc vs. docx that is the problem, but once you hit the issue something gets cached and converting the file gets avoids this.

    Are you still running a version of OSX 10.7? Are you testing with the latest BC 3.3.7?

    Are there any other pointers you can think of to help replicate the environment of your sync?

    Leave a comment:


  • andrew_t
    replied
    I continue to have the problem as I previously described it, but I realised at some point that it only seems to affect .doc files. The solution has thus been to open the offending files in Word and then save them as (XML-based) .docx files.

    I don't know if the voodoo (data corruption?) goes away simply because the file has been saved as a fresh one or if it is the XML-based format that somehow makes the difference. In any case, I have so far never had problems copying .docx files.

    Leave a comment:


  • andrew_t
    replied
    I am continuing to have this problem with great frequency when using BC3 to copy directly over the network between Win7 and my Mac Mini. Have you been able to determine anything further about it or can you suggest other things to try?

    I have come up with a temporary, if very unsatisfactory workaround that involves mounting the PC folders via the network on my Mac, then running BC3 under XP in a virtual machine (using VirtualBox). Updates and copies that are not possible from BC3 on the Win7 machine proceed here without difficulty (just as they do in Windows Explorer and in the Mac Finder), but I have to go back through and "touch" every copied file thereafter, since this roundabout way of getting it to work seems to mess up the timestamps.

    Leave a comment:


  • andrew_t
    replied
    M: points to \\MINI\andrew, the user folder which is automatically shared; it is not separately configured in the Preferences Panel for Sharing. SMB sharing is enabled for the user "andrew", who has the same password on the Laptop (\\HAMBURG) and on the Mac (\\MINI). (M: accesses the share \\MINI\andrew with saved credentials for the user MINI\andrew.)

    For the purposes of testing, I tried setting up a separate share for the "Uni" folder and doing a new folder compare between C:\Users\andrew\Documents\Uni and \\MINI\Uni. This did not fix anything.
    Last edited by andrew_t; 27-Feb-2012, 11:54 AM.

    Leave a comment:


  • Aaron
    replied
    Hello,

    Where does M:\Documents bind to on your Mac system? Did you use the built-in Preferences to share it? http://support.apple.com/kb/HT1549

    Leave a comment:


  • andrew_t
    replied
    Perhaps the "Access is denied" message is a red herring.

    I just had (reproducible, persistent) errors trying to update/copy in BOTH directions with my Mac (mounted as a network volume on M: ), but they report different errors. (See attached screenshots.)

    Copying TO the Mac leads to the "Access is denied" error I have previously described.

    Copying FROM the Mac causes BC3 to report "The filename, directory name, or volume label syntax is incorrect".

    I was able to successfully copy the files in both directions using Explorer, no errors were reported.

    Leave a comment:


  • andrew_t
    replied
    Yes, that is correct. The problem was occurring persistently in BC3 with this one file being copied to this specific destination - even after trying repeatedly in BC3, restarting BC3 and restarting both of the computers in question. I verified again that BC3 would not copy the file before going into Explorer (using the contextual menu) and copying it there, which succeeded without any problems.

    Leave a comment:


  • Aaron
    replied
    Hello Andrew,

    To clarify, you performed the copy on a file pair that was reproducibly throwing the error in BC3? The test workflow I am hoping to check:
    1) Attempt the copy and hit an error
    2) Re-attempt the copy on a single file that threw the error when attempting to overwrite the other side. Perhaps try it two or three times in a row to make sure it is sticking.
    3) Immediately open up Explorer and perform the copy of that file from the same source, to the same destination and attempt the overwrite.

    Leave a comment:


  • andrew_t
    replied
    Just copied successfully with Explorer. As in the past, it gave no errors.

    Leave a comment:


  • Aaron
    replied
    BC3's copy method uses a standard Windows method to perform the copy. It would be important to know if Explorer exhibits similar behavior. That would help let us know if there's a problem with the method we are using or if there is somehow another factor.

    Leave a comment:


  • andrew_t
    replied
    Just a quick note: there seems to be a problem with the screenshot showing the file's security properties, which shows no checkmarks indicating permissions. This is a problem with the screenshot, not with the file: when I view security properties for the file that cannot be copied due to "Access is denied" errors, there are checkmarks under "Allow" for all items except "Special permissions". The users SYSTEM, andrew and Administrators all have Full Control, Modify, Read & Execute, Read and Write permissions for the file.

    Leave a comment:


  • andrew_t
    replied
    OK, this evening I tried to use BC3's "update" function to copy new versions of several files from my PC over the network to my Mac, where older versions of the files are stored. One file did not update successfully; BC3 reported "Access is denied" while trying to overwrite the old file on the Mac and apparently deleted the old file while doing so: it no longer appears in BC3, Win7 Explorer or the Mac Finder.

    Even though the file to be overwritten is gone, I continue to receive "Access is denied" errors when attempting to copy this particular file to that one location using BC3. Attempting to "update" or "copy" a second time returns the same error. The file does not appear to have any strange permissions set (see screenshot). Restarting BC3, running BC3 as administrator, restarting the Win7 machine and restarting the Mac also do not help: "Access is denied" keeps coming up.

    Oddly though, I was able to use BC3 to copy the same newer file from the PC to a backup USB stick, where it successfully overwrote the old version of the file without reporting any errors.

    In the interest of figuring out what is going on, I have not yet tried to copy using Windows Explorer as you described. However, on the many occasions when this error has come up in the past, I have never had any problem using Windows Explorer or the Mac Finder to copy the files in question. Only BC3 seems to think that "Access is denied"

    What could be going on here?

    Leave a comment:


  • Aaron
    replied
    Next time it happens, one good test would be to try the same copy on just one file a couple of times (to see if it is reproducible), and then try the exact same copy of that one file with Windows Explorer. You should be able to open two Explorer windows, and copy/paste the folder paths from BC3 into Explorer and open the two locations; then select the file and try to copy from the same source to the same destination. Does this work or throw additional errors?

    Leave a comment:


  • andrew_t
    replied
    Hi,

    Thanks for the reply. Once it decides that "Access is denied" for a file, the error recurs more or less consistently with that file -- even after I delete the Mac file that is to be replaced and usually after I restart BC3. It is therefore probably not "random" in the sense that BC is being arbitrary, but there is no noticeable pattern as to which files are affected or what I can do to prevent it. It does not occur with every overwrite, but it seems to happen only to updated files, not new ones.

    Is there any particular information I should look for the next time this happens?

    Leave a comment:

Working...
X