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.
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!
I may have found a solution, thanks to this (seemingly unrelated) post.
Bottom line: running the command below fixed the Location Services checkbox getting automatically unchecked.
/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -seed -r
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
Hi, I got working (at least for now), apparently the problem is with the client.plist file. I did the following steps:
- stop location service --> sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist
- chabge directory --> cd /var/db
- move the original locationd folder to locationd.old --> sudo mv -R ./locationd ./locationd.old
- copied back --> sudo cp -R ./locationd.old ./locationd
- change permision to locationd folder to delete client.plist file --> sudo chmod 755 ./locationd
- delete file --> sudo rm client.plist
- change permision back --> sudo chmod 750 ./locationd
- change ownership --> sudo chown -R _locationd:_locationd ./locationd
- start location services --> sudo launchctl unload -w /System/Library/LaunchDaemons/com.apple.locationd.plist
- enable location services
- restart Mac
- check that location service still enbled and monitor with console just to make sure that locationd is not crashing
I hope it helps.
Hey, after weeks of searching for weeks after El Capitan Beta upgrade, you've helped me fix the same problem of the location checkbox not staying checked for longer than 1/2-a-second! Thank you.
Step 1 & 2 were fine, but Step 3 said it didn't recognise the location of the folder. I ignored that and went through all the steps, to no avail. So, to reload everything I changed the command for Step 9 to:
sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locationd.plist
In other words, "unload" was changed to "load".
Now, it works...finally! Thank you!