Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

login.keychain-db gets renamed after OS update. iCloud sync then resets it each time.

Esteemed Apple community,


What is happening with the OS security updates that reset the Keychain login files to empty in the last 2 or 3 security updates???


I have been using Keychain Secure Notes to store passwords and secure info for years without any problems. I always follow the recommendations for OS updates. But the last few times I have noticed that when I do those, and then try to open Keychain Access, all my keychains and secure notes are gone.


I did some research here and found a real useful post which said that the system likely made a copy called login_renamed_1.keychain-db and created a new login.keychain-db. Sure enough, when I look in ~/Library/Keychains I do see that on the day I did the OS update, there was a new login file created and my existing one was moved to this _renamed file. Uhhh, why???


As was suggested, I went into Terminal and create a BACKUP of that renamed file, just for safety, and then did

mv login_renamed_1.keychain-db login.keychain-db

to return my original Keychain file where it belongs. When I then open Keychain access, all my logins are there and all seems well and good.


Except that when I then try to open my mail or open a Safari link I get a message saying "Can't open this due to an iCloud problem. Open Preferences to fix it" or something to that effect. When I go in Preferences, it asks me to re-enter my AppleID pwd. If Keychain Access is still opened, it comes back with an generic error message saying "There is a problem with this". and it won't let me enter my iCloud AppleID.


If on the other hand, I close Keychain Access and then go into Preferences and re-enter my AppleID, then it accepts it and it seems everything is fine... except that when I re-open Keychain Access, everything is empty again. So the two are playing ping pong to see who is going to make me go bananas first.


Bottom line: I can either have all my existing gKeychain information available OR my iCloud working but not both...


Does anyone have a solution for this? I have done a good amount of searching here but, apart from the method described above, I have not found any answer.


Thank you very much for any help.


Bo.

Posted on Feb 5, 2018 4:00 PM

Reply

Similar questions

6 replies

Feb 18, 2018 4:38 PM in response to Baudouin Struye

You wrote -


I did some research here and found a real useful post which said that the system likely made a copy called login_renamed_1.keychain-db and created a new login.keychain-db. Sure enough, when I look in ~/Library/Keychains I do see that on the day I did the OS update, there was a new login file created and my existing one was moved to this _renamed file. Uhhh, why???



If you have forgotten the password completely and you know iCloud verification code , all details ( mail addresses) of Apple ID , iCloud ID , webmail ID and respective passwords , base station or wireless network password for air port utility .


Shut down the system through apple logo , press command , R and power key simultaneously , release the keys when apple logo appears let the bar be completed , select the language as English .


Take cursor on top menu bar > click on utilities > click on terminal in the terminal window execute a command resetpassword and click on enter key .


Select your user account , you have to press forcefully on the trackpad to get it selected .

Some fields will appear .

New password ……

Verify password ……

Hint ……

Fill up the credentials ( enter a new password ) and click on next then you have to click on restart .


The Mac will restart but you will see pop ups as this Mac can’t connect to iCloud because a problem with your mail address open iCloud preferences for problem.

You will see two options ( a ) Later ( b) iCloud preferences

And on the top right corner web mail ( could be gmail ) pop up will be there stating google password required enter your password for gmail address and showing close and continue .


Open system preferences > click on iCloud you will see the box for keychain is unchecked, so check mark the box a small pop - up will come on the screen after a while to enter iCloud verification code so enter it .

Make sure your registered mobile is opened , after a while six digit code will come through sms on the mobile .Enter the six digit code on the next pop up .


You will see iCloud Keychain is setting up and a small circle is rotating the box for keychain is configured with iCloud server .


Now , on the top right corner of the desktop a google pop up is showing , click on continue a window will appear enter your gmail password so that is also configured .


Open airport utility through spotlight , click on base station you will see that password is empty , click on edit a pop up window will appear enter the base station or wireless network password .

Keep the box checked for remember this password in my keychain .


Open safari and you have to reset the homepage once again ( open safari preferences click on General , enter the search engine link and take cursor on history > click on home close safari a pop up window will appear change home page , click on it ) .

Open mail > window > connection doctor shows green dot in front of IMAP / SMTP both for gmail and iCloud account .


Lastly shut down the system when login window appears you can enter admin name and " new password " in the fields .

Note : If you enter in user library > keychains you will see login keychain is renamed and its a confirmation that login password has been changed and always be careful once login password is changed don’t delete login_rename …Keychain-db from user library > keychain folder , if it is deleted the keychain application will be corrupted .


User uploaded file

Mar 18, 2018 9:22 AM in response to Baudouin Struye

If you open keychain access and click on file > click on add keychain then an empty keychain is created and you can add some important data like passwords for any web sites in it .

But this has no connection with login.keychain.db and they can not be interchanged .In case if it is done keychain access application can get corrupt , sometimes the user has to install OS , so it is to be avoided .And if you send a feed back to apple that is well .

User uploaded file

Feb 11, 2018 1:50 AM in response to Baudouin Struye

By default, your keychain password is the same as your user password (the password you use to log in to the computer).

And you can login to the Mac but when you open system preferences > iCloud sign in with your Apple ID and there is a problem in iCloud Keychain .

See this article Get help with iCloud Keychain - Apple Support

See the last paragraph of this article If you enter your iCloud Security Code incorrectly too many times - Apple Support

Mar 12, 2018 9:56 PM in response to tygb

Thank you for the reply tygb. Again, I apologize for the delay but I don't get notified when an answer is posted anymore for some reason...


Anyway, you start out by saying "If you have forgotten your password completely...", I'm not sure where you got that impression. I never said anything about forgetting my password. I remember it well. My keychain file was renamed during an update without my requesting anything to that effect. It is really irritating because I keep many Secure notes on various web site passwords etc. But now this info can only be accessed when I copy that _renamed file on top of the new created blank login.keychain-db.


But as mentioned in the OP, when I do that, although I can now read my Secure notes, Mail and Safari ***** because "There is a problem with this".


Any help in restoring my original keychain file before it was moved to _renamed would be most appreciated.

login.keychain-db gets renamed after OS update. iCloud sync then resets it each time.

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple ID.