Weird Mac Problems

Discussion in 'Mac Basics and Help' started by rWatcher, Mar 9, 2006.

  1. rWatcher macrumors newbie

    Joined:
    Mar 9, 2006
    #1
    My mac's been acting weird lately, anyone have any suggestions on how to fix it?
    - Software update doesn't work - It downloads the file just fine, but then I get a message like: The Update "Name of Update" could not be verified and expanded correctly. Make sure you have permission to write to /private/tmp/501/TemporaryItems/com.apple.SoftwareUpdate, then try again.
    - NeoOffice can't open or create files. When trying to open an existing file I get "Error loading document FILENAME.swx: The file could not be created. I can create new documents, when when I try to save them I get "Error saving the document Untitled1: Write Error. The file could not be written." This happens regardless of where the file is being saved to (other programs can save documents just fine).
    - Print Preview doesn't work in any application. It just says "Error while printing". Print ->Save as PDF works just fine though.

    Suggestions anyone? I'm guessing there's some kind of issue with creating temporary files, but I can't figure out how to fix it. I tried the repair disk permissions button, it found and fixed a few things, but didn't do anything to fix my problems.
     
  2. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #2
    #1:
    Open Terminal.
    Type: sudo rm -rf /tmp/501
    Hit Return and enter your admin password.
    Restart
    Try Software Update again.

    I suspect this may also fix your NeoOffice problem.
     
  3. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #3
    Just tried it and rebooted the computer - it didn't fix anything. I also tried:
    sudo rm -rf /private/tmp/501
    also didn't fix anything.

     
  4. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #4
  5. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #5
    Software Update, NeoOffice and the Print Preview button are all still complaining.
    The 501 folder was removed although it reappeared after the system was rebooted.

    The solution in that link seems to be reinstalling XCode, which I never had installed to begin with, so I don't really see how that could be my problem :-\

     
  6. jamesmcd macrumors 6502a

    jamesmcd

    Joined:
    Feb 18, 2006
    Location:
    Wellington, New Zealand
    #6
    This may be a little obvious, but try repairing your permissions.
     
  7. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #7
    Um... Yea, that is an obvious idea, which is why I said in my first post that I already tried that. I just tried it again though, in the off chance that it might help - still having the same problems.
     
  8. jamesmcd macrumors 6502a

    jamesmcd

    Joined:
    Feb 18, 2006
    Location:
    Wellington, New Zealand
    #8
    oops sorry. Your first post was a little mushed together for me... plus I was in a hurry which didn't help.

    My bad.
     
  9. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #9
    No problem, I've done that a couple times before too.
     
  10. frankblundt macrumors 65816

    frankblundt

    Joined:
    Sep 19, 2005
    Location:
    South of the border
    #10
    In his absence,
    Mad Jew Standard Responses to General Unexplained Weirdness™ include:
     
  11. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #11
    Which version of OS X is this?

    I am curious what the permissions on /tmp/501 are. Can you please post the results of:

    ls -laF /tmp/501

    (note that /tmp and /private/tmp are the same thing. /tmp is a symlink to /private/tmp)

    I don't think a PRAM zap will help in this situation.

    The appropriate .plist is /Library/Preferences/com.apple.SoftwareUpdate.plist

    (note that the .plist is in the ROOT /Library, not the USER ~/Library).
     
  12. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #12
    Nope, 5.35 GB right now. I've been around 5 - 6 GB of free space for over a year though, so I doubt that would suddenly be a problem now :-\

    Tried it, nothing's changed.

    Tried it, reran software update afterwards - same error
     
  13. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #13
    Problem carries through

    No change.
     
  14. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #14
    OS X Version 10.3.9


    Erm... It looks like /tmp/501 no longer exists (probably because I deleted it)...
    Erics-Powerbook:/tmp eric$ ls -laF /tmp/501
    ls: /tmp/501: No such file or directory
    Erics-Powerbook:/tmp eric$ ls -laF /private/tmp/
    total 0
    drwxrwxrwt 4 root wheel 136 10 Mar 22:43 ./
    drwxr-xr-x 5 root wheel 170 10 Mar 22:36 ../
    drwx------ 3 eric wheel 102 10 Mar 22:39 501/
    Erics-Powerbook:/tmp eric$ ls -laF /private/tmp/501
    total 0
    drwx------ 3 eric wheel 102 10 Mar 22:43 ./
    drwxrwxrwt 4 root wheel 136 10 Mar 22:43 ../
    drwxr-xr-x 2 eric wheel 68 10 Mar 22:43 TemporaryItems/

    Tried the PRAM thing anyway - didn't effect anything. Tried delete the plist from both /Library and ~/Library - also didn't effect anything.
     
  15. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #15
    I find it odd that your /tmp is not pointing at your /private/tmp.

    Code:
    [null:/private/tmp] yellow% pwd
    /private/tmp
    [null:/private/tmp] yellow% cd /tmp
    [null:/tmp] yellow% pwd
    /private/tmp
    
    Code:
    [perrolle:/] yellow% lf /tmp
    lrwxr-xr-x   1 root  admin  11 Oct 13 10:40 /tmp@ -> private/tmp
    
    Can you please show us the results of ls -laF /tmp

    From your post it looks like you're still having the problem because /private/tmp/501/ still exists.

    Try:

    sudo rm -rf /private/tmp/501

    And restart and try Software Update again.
     
  16. simie macrumors 6502a

    simie

    Joined:
    Aug 26, 2004
    Location:
    Sitting
    #16
    Try the suggestions here - this appears to be a well known problem.

    http://www.cybmed.com/macinblog/2004/02/software_update.html

    The following is the manual way of doing the same job as Yellow describes by using terminal.

    Use finder under the GO menu use Go (Shift Apple key G) to folder and type in private.

    Using Getinfo you can view the details of the tmp folder.

    Owner & Permissions:

    You can: Read & Write

    Details
    Owner: System
    Access: Read & Write
    Group: Wheel
    Access: Read & Write
    Others: Read & Write

    If your permissions are different, then clicking on the padlock in Getinfo will allow you to change them to the above.

    Double Clicking on the TMP folder should now reveal the contents of the folder.
    You could Drag all the contents of this folder in to the trash or just to the desktop. To delete these you need to enter your admin password.

    My TMP folder has 4 files they are

    cs_cahe_lock_92
    objc_sharing_ppc_92
    objc_sharing_ppc_501
    objc_sharing_ppc_4294967294
    and any other file and folder

    Reboot the mac and OS X will recreate new versions of

    cs_cahe_lock_92
    objc_sharing_ppc_92
    objc_sharing_ppc_501
    objc_sharing_ppc_4294967294

    Now try software update
     
  17. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #17
    Sure...
    Code:
    [erics-powerbook:~] eric% cd /private/tmp
    [erics-powerbook:/private/tmp] eric% pwd
    /private/tmp
    [erics-powerbook:/private/tmp] eric% cd /tmp
    [erics-powerbook:/tmp] eric% pwd
    /tmp
    [erics-powerbook:/tmp] eric% ls -laF /tmp
    total 8
    drwxr-xr-x   6 root  wheel   204 13 Mar 03:15 ./
    drwxrwxr-t  51 root  admin  1734 10 Mar 22:55 ../
    srwxrwxrwx   1 eric  staff     0 13 Jun  2005 .modemOnHold=
    srw-rw-rw-   1 root  wheel     0 10 Mar 22:57 com.thursby.DAVE.cifsd.API=
    srw-------   1 root  wheel     0 10 Mar 22:56 com.thursby.DAVE.cifsd_dns_helper=
    -rw-r--r--   1 root  wheel   644 10 Mar 22:56 mcx_compositor

    I've done that a couple of times, it looks like the 501 directory is re-created when I run software update...
    Code:
    [erics-powerbook:/tmp] eric% cd /private/tmp
    [erics-powerbook:/private/tmp] eric% ls
    501
    [erics-powerbook:/private/tmp] eric% sudo rm -rf /private/tmp/501
    [erics-powerbook:/private/tmp] eric% ls
    And then right after software update gives me the same error as before and quits:
    Code:
    [erics-powerbook:/private/tmp] eric% ls
    501
     
  18. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #18
    It's going to take me a while to download XCode to see if installing it helps any... Until then...

    My permissions match those.

    Nothing appears in finder. From Terminal the only item is the 501 folder. Deleting it, rebooting the computer, and then running software update does not fix the problem.
     
  19. yellow Moderator emeritus

    yellow

    Joined:
    Oct 21, 2003
    Location:
    Portland, OR
    #19
    If you create a new admin used and log in as that user and run Software Update, does it break again?
     
  20. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #20
    Yes, software update still breaks under a newly created admin account. Same error as before, except 501 is now 504.
     
  21. mad jew Moderator emeritus

    mad jew

    Joined:
    Apr 3, 2004
    Location:
    Adelaide, Australia
    #21
    Have you added third party RAM to this machine? Test your RAM by taking individual chips out, one-by-one, if you haven't already. :)
     
  22. simie macrumors 6502a

    simie

    Joined:
    Aug 26, 2004
    Location:
    Sitting
    #22
    Check that you have not blocked Apples update server either in your router or in your firewall

    akamai.net

    And try this in terminal ln -s /private/tmp tmp - this has been known to cure the problem.
     
  23. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #23
    No third party RAM, just the one chip that it came with.
     
  24. mad jew Moderator emeritus

    mad jew

    Joined:
    Apr 3, 2004
    Location:
    Adelaide, Australia
    #24
    I've seen bad RAM do this exact same thing to a system, so is there any way you could borrow a stick of RAM from a friend and replace yours momentarily?
     
  25. rWatcher thread starter macrumors newbie

    Joined:
    Mar 9, 2006
    #25
    Um... So this is kinda weird. I think that fixed my problem... except now I can't get on the network or internet from my mac :-\ The exact commands I used where:
    Code:
    cd /tmp
    rm *.*
    cd /
    rmdir /tmp
    ln -s /private/tmp /tmp
    I was then able to use software update to download the latest version of itunes, but as soon as I rebooted the network (both wired and wireless) stopped working. According to system preferences, I'm being assigned an network IP address, I just can't access anything outside of the computer.
     

Share This Page