Keychain error -25299 occurred

When trying to use Time Machine to back up my computer to my WDMyCloud Server I get the following error message:

Keychain error -25299 occurred while creating a System Keychain entry for the username “Bruce Phillips” and URL “afp://Bruce%20Phillips@WDMyCloud._afpovertcp._tcp.local./TimeMachineBackup”.

I saw some older posts vaguely dealing with this error, but all dated from 2010 and didn't seem quite applicable. Any ideas?

MacBook Pro, macOS Sierra (10.12.2), MacBook Pro (15-inch, Mid 2012)

Posted on Jan 19, 2017 2:18 AM

Reply
7 replies

Feb 2, 2017 2:16 PM in response to ChicagoBruce

Keychain errors have popped up a lot more often since Sierra hit the fan. These are all post Sierra fixes.


The standard solution is this one.


Trying to set up Time Machine and I am getting this error; Keychain error 100001 occurred while creating a System Keychain entry for the username “JGarrett” and URL “afp://JGarrett@JPG AirPort Time Capsule._afpovertcp._tcp.local./Data”.

The fact that it is a different error.. is irrelevant.


People have found slight variations on this work .. but usually they just did not follow the original instructions correctly.


This one might be clearer though.

http://www.hillenius.com/blog/2016/02/fixing-the-el-capitan-keychain-error-10000 1/index.html


It seemed to be fixed with patch but your on the latest.


Re: Sierra Time Machine / Time Capsule problem


There are lots of variations on the theme.

Feb 2, 2017 2:21 PM in response to LaPastenague

This did absolutely nothing. No idea what I did, but I followed the step-by-step directions in "Trying to set up Time Machine and I am getting this error; Keychain error 100001 occurred while creating a System Keychain entry for the username “JGarrett” and URL “afp://JGarrett@JPG AirPort Time Capsule._afpovertcp._tcp.local./Data”." and nothing happened.


The other article is very confusing. It starts by saying:

"At this point, check - in the terminal - if your access to the keychain is restricted:

ls -l @Oaen /L*/Keyc*

If so, this might help..."

....what does entering that into Terminal tell me if my keychain is restricted? I entered it. Something happened. Am I restricted or not?!


So...no. Nothing is working yet. I attempted to connect to my WDMyCloud device with TimeMachine and still get:

Keychain error -25299 occurred while creating a System Keychain entry for the username “Bruce Phillips” and URL “afp://Bruce%20Phillips@WDMyCloud._afpovertcp._tcp.local./TimeMachineBackup”.

Feb 22, 2017 4:16 AM in response to ChicagoBruce

Hi Chicago Bruce.


I have the same problem, hooking up to a TimeMachine drive on my QNAP NAS. It was working fine for a couple of years, then has stopped once I switched to a new MacBook.

I have tried the suggestions online related to Keychain error 100001:


Re: Unable to set up Time Machine


With no success.


I spotted this suggestion, which relates directly to our error message:


https://github.com/phusion/passenger/issues/1922


But I am not clever enough to test it. Maybe you'll find it helpful. I hope so.


james

Feb 2, 2017 1:05 PM in response to LaPastenague

I had the same problem setting up a new iMac to backup to a NAS. The old iMac (same OS version) worked fine so I was perplexed.


I found a lot of nonsense on the internet, but eventually the following worked for me. I went into Keychain Access and found the relevant entry in the System keychain. I then edited this entry and changed the URL (Where: field) so that it exactly matched the error message. The point is that in the Keychain, the URL appeared with a space, but the error message has the space replaced with %20. So, replace each with %20 and it may work for you too.


I Think what is happening is the Time Machine widget is encoding the remote drive location as a URL at some point in a way that the Keychain is being accessed inconsistently. I noticed that in the login Keychain, entries were appearing with no username or password set, which presumably happens when the error occurs.


I'd be interested to know if this works for anyone else, as it's a very frustrating problem and if the fix is as easy as this, then I suspect the bug will be straightforward for Apple to fix too.

Feb 4, 2017 1:06 AM in response to ChicagoBruce

That's a shame.


I think it's the System one that's relevant to Time Machine; the login keychain is used when you access the disk in the Finder.


Your setup is a bit different to mine. My afp://... location had a space in it, and it was that space that I replaced with %20. In your case it's the username that has a space in it. So perhaps if you edit the Time Machine keychain entry in the System keychain so that the account reads "Bruce%20Phillips" it might work, but I am not feeling very hopeful about this.


Edit: Actually, looking at your error in more detail it might be that the appropriate combination is:

Account: Bruce Phillips

Where: afp://Bruce%20Phillips@WDMyCloud._afpovertcp._tcp.local./TimeMachineBackup


I am still not feeling very hopeful about this, but if you do get it to work please let us know what you did!

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Keychain error -25299 occurred

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