Skip navigation

locationd keeps crashing every 3 seconds

3144 Views 43 Replies Latest reply: Jan 5, 2014 2:39 PM by yorgerson RSS
  • Topher Kessler Level 6 Level 6 (9,295 points)
    Currently Being Moderated
    Dec 17, 2012 12:49 AM (in response to Jerome Meyer)

    What type of Mac do you have (Model and year issued)?

  • Topher Kessler Level 6 Level 6 (9,295 points)
    Currently Being Moderated
    Dec 17, 2012 12:59 AM (in response to Jerome Meyer)

    Jerome Meyer wrote:

     

    It's a MacBook Air 13-inch, Mid 2012 (MacBookAir5,2).

     

    Ok that suggests one other possibility. If the 10.8.2 combo update you have was downloaded before November 30 then you will have a version that will not run on some Mac models, so try re-downloading it to get a more updated build.

     

    Apple did issue a separate update for some of these systems (http://support.apple.com/kb/DL1603), but yours is not included in this list. You can try installing this one, but the installer may prevent you from doing so.

     

    Additionally, Apple has a supplemental update for OS X 10.8.2 that addresses some keychain accessibility issues, which while I do not suspect is at play here, could be involved. This update is available here: http://support.apple.com/kb/DL1611, and is separate from the main OS X 10.8.2 update.

  • rhangelxs Calculating status...
    Currently Being Moderated
    Dec 19, 2012 12:33 PM (in response to Jerome Meyer)

    I have the same issue. My logs may be usefull?

  • bassham Calculating status...
    Currently Being Moderated
    Dec 30, 2012 12:26 PM (in response to Jerome Meyer)

    Anyone find a solution to this? I have the same problem.

     

    I did - sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist

     

    that stopped it for now, but it would be nice if location services would work too.

  • saringer Calculating status...
    Currently Being Moderated
    Feb 1, 2013 1:45 AM (in response to bassham)

    After running into the same problem on a 2012 rMBP upgraded to 10.8.2 I seem to have found a solution. First, do not touch the /var/db/locationd folder or its contents. It only seems to store the System Preferences settings i.e. which apps are allowed to use locationd.

     

    I first stopped the service with: sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist

     

    Then, I did: sudo rm -Rf /var/folders/zz/zyxvpxvq6csfxvn_n00000sm00006d

     

    (I got the path from the Console entries and ls -la showed it was owned by _locationd. I'm not certain this path is the same for everyone but it did match Jerome's log post above)

     

    Finally start the service: sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locationd.plist

     

    This got rid of the errors in my logs and location services now seems to be working fine.

     

    Now just have to figure out all the "Unable to talk to lsboxd" errors!

  • Bertg Level 1 Level 1 (5 points)
    Currently Being Moderated
    Apr 22, 2013 3:10 AM (in response to saringer)

    I can confirm that deleting /var/folders/zz/zyxvpxvq6csfxvn_n00000sm00006d fixes this problem. Do note that a reboot afterwards is also needed.

  • Bertg Level 1 Level 1 (5 points)
    Currently Being Moderated
    Apr 23, 2013 12:54 AM (in response to Bertg)

    I need to retract my statement.

    After an other reboot the "Enable location services" keeps getting unchecked. I'll post back if i figure something out.

  • Bertg Level 1 Level 1 (5 points)
    Currently Being Moderated
    May 13, 2013 6:05 AM (in response to Bertg)

    I finally got it working. After applying the fixes suggested in this thread I did 2 more things:

     

    • Install the latest combo update of the os
    • After seeing the message "could not open write stream for /var/db/locationd/clients.plist" I also fixed the permissions of the "/var/db/locationd/" fodler using the following command: "sudo chown -R _locationd:_locationd  /var/db/locationd/" (this command will ask for your administartor password)

     

    Has been running smooth for the last few hours

  • yorgerson Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 4, 2014 7:00 AM (in response to Jerome Meyer)

    Hi, I got working (at least for now), apparently the problem is with the client.plist file.  I did the following steps:

     

    1. stop location service --> sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist
    2. chabge directory --> cd /var/db
    3. move the original locationd folder to locationd.old --> sudo mv -R ./locationd ./locationd.old
    4. copied back --> sudo cp -R ./locationd.old ./locationd
    5. change permision to locationd folder to delete client.plist file --> sudo chmod 755 ./locationd
    6. delete file --> sudo rm client.plist
    7. change permision back --> sudo chmod 750 ./locationd
    8. change ownership --> sudo chown -R _locationd:_locationd ./locationd
    9. start location services --> sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist
    10. enable location services
    11. restart Mac
    12. check that location service still enbled and monitor with console just to make sure that locationd is not crashing

     

    I hope it helps.

  • yorgerson Level 1 Level 1 (0 points)
    Currently Being Moderated
    Jan 5, 2014 2:39 PM (in response to yorgerson)

    It's been 3 days and everythin still working... No more locationd error message repeating every few seconds and location service is working properly. 

1 2 3 Previous Next

Actions

More Like This

  • Retrieving data ...

Bookmarked By (1)

Legend

  • This solved my question - 10 points
  • This helped me - 5 points
This site contains user submitted content, comments and opinions and is for informational purposes only. Apple disclaims any and all liability for the acts, omissions and conduct of any third parties in connection with or related to your use of the site. All postings and use of the content on this site are subject to the Apple Support Communities Terms of Use.