February 4, 2010

Clean up your mac caches

This is an aggressive fix, but one I had to take after numerous ( thousands ) or syslog errors :

2/3/10 6:08:50 PM   com.apple.launchd.peruser.502[407]  (com.akamai.client.plist) Throttling respawn: Will start in 10 seconds 2/3/10 6:08:59 PM   [0x0-0x12012].com.adiumX.adiumX[452]    (process:452): Json-CRITICAL **: json_node_get_int: assertion `node != NULL' failed 2/3/10 6:09:00 PM   com.apple.launchd.peruser.502[407]  (com.akamai.client.plist[6584]) Bug: launchd_core_logic.c:4103 (23932):13 2/3/10 6:09:00 PM   com.apple.launchd.peruser.502[407]  (com.akamai.client.plist[6584]) posix_spawn("/Applications/Akamai/loader.pl", ...): No such file or directory 2/3/10 6:09:00 PM   com.apple.launchd.peruser.502[407]  (com.akamai.client.plist[6584]) Exited with exit code: 1
I followed this process ( found in mac forums ):

WARNING: “rm -rf” IS A DANGEROUS COMMAND, MAKE SURE YOU KNOW WHAT YOU ARE ERASING !!!

boot to single user : (CMD+Option+S) and run the following commands :

fsck -fy rm -rf /Library/Caches rm -rf /Users/YOURUSERNAME/Library/Caches rm -rf /.Spotlight-V100
reboot