What is accountsd and why does it want to use the "login" keychain? Periodically, I'm seeing this keychain dialog pop up:



I click 'Cancel', then it pops up again, then I click 'Cancel' again, and it goes away for a while.  (Maybe an hour or two, I haven't timed it.)  I haven't noticed anything not working right.

What's going on here?

If it matters, this is OS X 10.8.2.
Open Keychain Access, which can be found in /Applications/Utilities. 

Then select Keychain First Aid under Keychain Access.

Enter your password and click to Verify (this is important to find out how is making the problem just in case it comes up again).

If it shows Errors use the Repair function.

In my case it looked like this before the repair.

It found one error and it was fixed after the repair.