1 2 3 4 Previous Next 232 Replies Latest reply: Jan 21, 2014 2:54 AM by robertk1 Go to original post
  • 15. Re: symbolic links get corrupted by system process?
    barttenbrinke Level 1 Level 1 (0 points)

    Verifying permissions for “server”

    Permissions differ on “System/Library/Frameworks/CoreGraphics.framework/Headers”; should be lrwxrwxrwx ; they are lrwxr-xr-x .

    Permissions differ on “usr/include/arpa/nameser.h”; should be lrw-r--r-- ; they are lrwxr-xr-x .

    Group differs on “Library/Java”; should be 0; group is 80.

    Permissions differ on “Library/Java”; should be drwxr-xr-x ; they are drwxrwxr-x .

    Group differs on “Library/Preferences/com.apple.alf.plist”; should be 80; group is 0.

    Permissions differ on “System/Library/Frameworks/CoreGraphics.framework/CoreGraphics”; should be lrwxrwxrwx ; they are lrwxr-xr-x .

    Permissions differ on “System/Library/Frameworks/CoreGraphics.framework/Resources”; should be lrwxrwxrwx ; they are lrwxr-xr-x .

    Permissions differ on “System/Library/Frameworks/CoreGraphics.framework/Versions/Current”; should be lrwxrwxrwx ; they are lrwxr-xr-x .

    Permissions differ on “usr/bin/what”; should be -rwxr-xr-x ; they are -r-xr-xr-x .

    Permissions verification complete

     

    So nothing strange going on there either, so I just went ahead and fixed these permissions.

    My guess is that it there is some problemen somewhere in HFS+ / Kernel / Raid controller firmware combination.

     

    This is becomming a very expensive problem for us. We cant use our new Mac Pro server in production as it 'randomly' garbles it's symlinks.

  • 16. Re: symbolic links get corrupted by system process?
    barttenbrinke Level 1 Level 1 (0 points)

    And I found another one on the internet:

    https://plus.google.com/116110872881215510874/posts/4Nj2bYL4ffd

     

    As this person is using an imac with a thunderbold raid instance, the corruption appears to only take place on (mountain) lion if you are booting from a raid medium.

  • 17. Re: symbolic links get corrupted by system process?
    twtwtw Level 5 Level 5 (4,690 points)

    I wanted you to repair the disk too, not just repair the permissions.  As I said, a symlink is just a text file, so there's not a whole lot to go wrong there.  It's possible that Apple Raid is doing something funky with its file system (in which case you might want to try using aliases rather than symlinks) but I would suspect HFS corruption first.

  • 18. Re: symbolic links get corrupted by system process?
    dburr Level 1 Level 1 (15 points)

    twtwtw wrote:

     

    Just out of curiosity, have you booted into the recovery partition and run Disk Utility to verify the disk and its permissions?  Symkbolic links are just files (small files that contain a POSIX path to the target), so if a symlink is corrupted it suggests that the symlink file is corrupted, which in turn suggests some more pervasive HFS corruption.

     

    Yes, every time this has happened I have booted to recovery and done both a repair disk as well as a repair permissions.  The repair disk operation never found any errors, and while repair permissions does catch a few items, I would say it is no more so than one would usually see in a system that's been running for a while.

     

    I have also tried booting single user and running /sbin/fsck -fy, and that doesn't find any errors either.

  • 19. Re: symbolic links get corrupted by system process?
    Eurymachos Level 1 Level 1 (0 points)

    I'm the guy running with Thunderbolt RAID and Google+.

     

    My system is a Thunderbolt iMac with the single 1TB Western Digital Caviar Black internal disk and a Western Digital My Book Thunderbolt Duo upgraded with two 3TB Seagate Barracuda disks. I use Apple's software RAID to stripe the two disks in the Thunderbolt Duo.

     

    What I have seen is the following:

     

    1) Booting Snow Leopard and Lion off the internal disk does not lead to symlink corruption on the internal disk. Lion was installed by upgrading Snow Leopard.

    2) Booting Lion off the Thunderbolt disks does lead to symlink corruption on the Thunderbolt disks. Lion was installed directly from DVD onto clean Thunderbolt disks.

    3) Booting Mountain Lion off the Thunderbolt disks does not lead to symlink corruption on the Thunderbolt disks. Mountain Lion was installed directly from a USB disk onto clean Thunderbolt disks.

     

    I have not looked for anything else symlink related. I have noticed problems under Lion with hardlinks though. When the system was under load, the link(2) system call would fail with an error code that it isn't supposed to be able to return indicating that there was a logical error in a data structure passed as a parameter to it. link(2) doesn't take any data structures as parameters, only simple strings. Lion just doesn't work quite right.

     

    Cheers

  • 20. Re: symbolic links get corrupted by system process?
    Eurymachos Level 1 Level 1 (0 points)

    twtwtw wrote:

     

    As I said, a symlink is just a text file,

    I'm afraid that's not true. A symlink is a simple piece of text, but it is not a text file. I'm pretty sure that in many modern Unixes that short symlink texts are stored directly in the inode without any data space used in the file system at all.

     

    The other thing to remember is that the Mac file system is HFS+, not the Unix file system and everything you (and I) know is wrong. This all smells to me like Apple have added some features to HFS+ to emulate POSIX file systems (maybe that's the + in HFS+) and they have got some of their code very wrong in Lion.

     

    Cheers

  • 21. Re: symbolic links get corrupted by system process?
    twtwtw Level 5 Level 5 (4,690 points)

    point taken, but it doesn't really make much difference to my point.  there's clearly something odd going on with the directory structure, and the first step in such a case is always to run disk utility.

     

    and the '+' in HFS+ just refers to a file system revision they made a few years back (32-bit addressing, unicode support, etc.).  It's been around a good long while and has always played nicely with POSIX.

  • 22. Re: symbolic links get corrupted by system process?
    Keith Barkley Level 5 Level 5 (5,260 points)

    I would not assume that  "everything [twtwtw] knows is wrong".

     

    Please send feedback (or a bug report) to Apple.

  • 23. Re: symbolic links get corrupted by system process?
    Eurymachos Level 1 Level 1 (0 points)

    twtwtw wrote:

     

    It's been around a good long while and has always played nicely with POSIX.

    Yes it has, and so I was very disappointed with the bustedness I've seen in Lion.

     

    Cheers

  • 24. Re: symbolic links get corrupted by system process?
    Eurymachos Level 1 Level 1 (0 points)

    twtwtw wrote:

     

    point taken, but it doesn't really make much difference to my point.  there's clearly something odd going on with the directory structure, and the first step in such a case is always to run disk utility.

    True enough. I'm pretty sure I tried that and it didn't help, but like you say, it is the first thing you should try.

     

    Since only symlinks get corrupted, my guess is that they are stored somewhere special on the disk and they are getting overwritten. That is just a guess though.

     

    Cheers

  • 25. Re: symbolic links get corrupted by system process?
    jasonfloyd Level 1 Level 1 (0 points)

    I'm seeing similar issues with my java symlinks in getting corrupted.  At the same time Microsoft Office apps will stop launching (Symlinks somewhere causing that I'm guessing too).

     

    I've replaced the hard drive and clean installed, migrating nothing from my old drive and still continue to run into this issue every few weeks.

  • 26. Re: symbolic links get corrupted by system process?
    barttenbrinke Level 1 Level 1 (0 points)

    Yes, Java is always the first thing to go here as well. Probably because it uses a lot of symlinks chained together. If just one gets currupted, all of them stop working.

  • 27. Re: symbolic links get corrupted by system process?
    Jmanis Level 1 Level 1 (10 points)

    Glad to see I'm not alone.  I've noticed in the /usr/ directory more so than anywhere else.  Problem started with Mointain Lion upgrade.  I'm running an iMac early 2008.  Nothing fancy like RAID or JBOD.  I was compiling some code with Xcode Command Line Tools and in the next minute my system couldn't find the compiler any more.  Reinstalling the XCode Command Line tools fixes it temporarily but it keeps coming back.

     

    Jeff

  • 28. Re: symbolic links get corrupted by system process?
    dburr Level 1 Level 1 (15 points)

    Jmanis wrote:

     

    Glad to see I'm not alone.  I've noticed in the /usr/ directory more so than anywhere else.  Problem started with Mointain Lion upgrade.  I'm running an iMac early 2008.  Nothing fancy like RAID or JBOD.  I was compiling some code with Xcode Command Line Tools and in the next minute my system couldn't find the compiler any more.  Reinstalling the XCode Command Line tools fixes it temporarily but it keeps coming back.

     

    Jeff

     

    For me, the symlink corruption occurs in areas of the filesystem related to software that I use frequently.  Mail (which is probably my most-used application other than Finder) exhibits this symptom by having the Library/Containers/com.apple.mail/Data/Library/Mail and Library/Containers/com.apple.mail/Data/Library/Application Support/AddressBook links corrupt themselves. Also I see this happen a lot in the symlinks that live within Frameworks (/System/Library/Frameworks/*).  This definitely started happening with Lion, and continues to occur in Mountain Lion; I do not remember this happening at all in Snow Leopard or earlier.

  • 29. Re: symbolic links get corrupted by system process?
    dburr Level 1 Level 1 (15 points)

    Interesting.  I have SMARTreporter running and it popped up with a I/O error message.  I checked Console and saw the following:

     

    8/14/12 3:08:27.648 PM Mail[944]: [EGODatabase] sqlite3_step Failed: (10: disk I/O error) UNKNOWN_ERROR

    INSERT INTO tagdata (LibraryID, tags, priority, notes,messageID,serverTagState) VALUES (?, ?, ?, ?, ?, ?)

    8/14/12 3:08:27.648 PM Mail[944]: Err 10: disk I/O error

    messageID: 44734

    8/14/12 3:08:27.649 PM Mail[944]: [EGODatabase] sqlite3_step Failed: (1: cannot commit - no transaction is active) SQLITE_ERROR

    COMMIT TRANSACTION

     

    On a hunch I decided to see if Mail had corrupted its symlinks again, and sure enough, it had.

     

    I ran a thorough check of my disk and found no errors.  The drive is a few months old and I gave it a good long burn-in so I doubt that the actual drive is at fault.  More likely SQlite is (mis)reporting its inability to access the database as an "I/O error."

     

    I'm not sure what, if anything, this says, but it is another data point if nothing else.

1 2 3 4 Previous Next