error code -50 - unable to delete file

Discussion in 'Mac Apps and Mac App Store' started by dhartlen, Feb 6, 2012.

  1. dhartlen macrumors member

    Joined:
    Nov 27, 2010
    #1
    I placed an .mp3 into my "Automatically Add to iTunes" folder and it's now stuck. It won't remove itself after adding into the library and it keeps generating duplicates of the song in iTunes (were over 100 dupes earlier).

    When I try to manually delete it, I get the following error:

    The operation can’t be completed because an unexpected error occurred (error code -50).​

    It's not locked and I'm not sure how to solve this ... any suggestions?
     
  2. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
  3. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #3
    Tried that. No luck. Same error. Thanks though!
     
  4. Jolly Jimmy macrumors 65816

    Jolly Jimmy

    Joined:
    Dec 13, 2007
    #4
    This should do the trick. Follow the instructions to the letter though! Make a mistake with rm in Terminal and you'll be sorry...
     
  5. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #6
    Thanks everyone. Will be able to try this/these in a few hours. Much appreciated. Will update how it goes for future troubleshooters as well.
     
  6. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #7
    Here's the error I got when trying to move it to the terminal after running "sudo rm -R"


    /Volumes/Public/iTunes/Automatically\ Add\ to\ iTunes.localized/01\ Happy\ New\ Year.mp3
    -bash: /Volumes/Public/iTunes/Automatically Add to iTunes.localized/01 Happy New Year.mp3: cannot execute binary file​

    Any ideas?
     
  7. Sedulous macrumors 68000

    Sedulous

    Joined:
    Dec 10, 2002
  8. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #9
    My iTunes library is on a shared network drive and I'm not sure how to verify as it doesn't show up when I launch Disk Utility...
     
  9. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #10
    UPDATE: repaired disk and permissions (although I do not believe this ran on the network drive and I still can't figure out how to do this).

    Also created new admin account and tried deleting with it and still got the same error.

    :confused:
     
  10. Sedulous macrumors 68000

    Sedulous

    Joined:
    Dec 10, 2002
    #11
    Is the problem isolated to this particular file or any file?
     
  11. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #12
    Initially I thought it was just one .mp3 sitting in my "Automatically Add To ITunes" folder, but now realise it is also impacting some of the files in the "not added" folders as well.

    I have been able to rename the folder and create a new one that seems to be working, by the OCD in me would really like to delete the problem ones as well.
     
  12. Sedulous macrumors 68000

    Sedulous

    Joined:
    Dec 10, 2002
    #13
    My concern is that the disk is going bad. But if you say it verified then it may be something else. Perhaps some weird kind of problem with the troublesome files being marked as still being copied. Is it possible to change the name of any of the files in question? Can you connect to this disk from another computer?
     
  13. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #14
    Question about verifying: All of my iTunes library and media is located on a WD network drive. When I run disk verification on my MacBook Air, it doesn't see the network drive, just the HD in the MBA. How can I run a check on the WD drive? FWIW, I ran the verify already.

    I am able to connect to the drive via WB remote access on my iPad and as far as I can tell, just this one folder is affected.
     
  14. Sedulous macrumors 68000

    Sedulous

    Joined:
    Dec 10, 2002
    #15
    That would make it more difficult to verify the integrity of the disk. I am fairly sure only local drives (except for time capsule) can be verified. For now, just try to see if you can change the name of an affected file. Maybe it is something as simple as weird file ownership.
     
  15. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #16
    Here's a fun response: "Try using a name with fewer characters, or with no punctuation marks."

    But the thing is, I'm not. It says that no matter what I choose...
     
  16. Sedulous macrumors 68000

    Sedulous

    Joined:
    Dec 10, 2002
    #17
    Is the file playable with quick view? If not, then I would guess there are bad sectors on the disk.
     
  17. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #18
    Plays just fine!
     
  18. Sedulous macrumors 68000

    Sedulous

    Joined:
    Dec 10, 2002
    #19
    That is good. Well, then I am really at a loss for ways to sort it out. Maybe try connecting from a different computer or OS and maybe try deleting it from there.
     
  19. Oligarch macrumors newbie

    Joined:
    Nov 10, 2008
    #20
    Open Terminal, cd to where the file is, type ls -lo and report back with what it says (copy and paste the line corresponding to the offending file).
     
  20. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #21
    -rw-rw-r-- 1 dhartlen 2829072 29 Dec 14:06 01 Happy New Year.mp3
     
  21. JohnMantooth macrumors member

    Joined:
    Dec 19, 2011
    Location:
    New York, NY
    #22
    The music is on a shared network? Perhaps you don't have permission to delete files from it?
     
  22. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #23
    Network drive. The error is specific to this folder. I haven't had time to try accessing drive from another computer yet, but nothing else has worked. So weird.
     
  23. Oligarch macrumors newbie

    Joined:
    Nov 10, 2008
    #24
    Resuming where we left off. Type sudo rm -f 01\ Hap (that is zero, one, a backslash, a space, Hap) and immediately after the Hap, no space, hit the tab key, then the return key. If that fails, type ls -lod . (a dot) and report back with what it says.
     
  24. dhartlen thread starter macrumors member

    Joined:
    Nov 27, 2010
    #25
    rm: 01 Happy New Year.mp3: Invalid argument

    and

    -bash: -lod: command not found (think I am doing something wrong, but I copied it...
     

Share This Page