Unable to add Apple Pay wallet after restoring a Time Machine Backup

I had a new 2016 MacBook Pro with Touchbar that had ApplePay on it and was being backed up via TimeMachine. 1 month after I had it (December 23rd), it completely died and Apple issued a full refund. I placed a new order and received a new 2016 MacBook Pro with Touchbar. After I restored the TimeMachine backup, I went to ApplePay to add my cards again (via system preferences). I got a message stating "Apple Pay is already configured on this disk for another Mac." It gives the option to "Reset Apple Pay and Add Card...". After I click that and authenticate with my password or fingerprint (tried both ways many times), it goes back to the same popup so it looks like it's not fully resetting ApplePay.


Basically, I need to kill the existing ApplePay data and reset it so I can use it on the new Mac. This is a bug and I had a ticket opened but the senior technician has stopped responding to me because he does not have a solution.

The Apple ticket is *******

<Personal Information edited by Host>

MacBook Pro (15-inch, Late 2016), macOS Sierra (10.12.4)

Posted on Apr 21, 2017 1:13 PM

Reply
Question marked as Top-ranking reply

Posted on Jan 28, 2018 4:14 PM

To resolve this issue, it requires a little bit of playing with the filesystem so here's the obligatory warning: THIS IS MESSING WITH SYSTEM FILES. DO NOT EXECUTE ANY OF THIS IF YOU ARE NOT SURE WHAT YOU ARE DOING AND DO NOT HAVE A BACKUP OF YOUR DATA. TYPING THE COMMANDS WRONG MAY CAUSE SERIOUS ISSUES WITH YOUR MAC.

If you recently had your Macbook Pro (Touch Bar) repaired (possibly with a logic board replacement), and restored from Time Machine backup, you might find yourself unable to use Apple Pay on Mac. The system will report “Apple Pay is already configured on this disk for another Mac” and ask you to “Reset Apple Pay and Add Card”. If you try to do so by authorizing it using fingerprint or password, it will immediately drop you back to the original “Apple Pay is already configured on this disk for another Mac” prompt, going back into this cycle ad infinitum.

The issue is that there is an Apple Pay cache at /private/var/db/applepay/ on the system that has been invalidated, but it seems to be unable to delete this cache properly. It will keep trying to refresh this cached data, and fail to do so.

To fix this endless loop, you need to first clear out all the files (but not the folders) inside /private/var/db/applepay/. Open Terminal.app and enter the following commands:

In the terminal app, type the following commands:

sudo -s

mv /private/var/db/applepay/Library/Caches/* ~/.Trash/

mv /private/var/db/applepay/Library/Preferences/* ~/.Trash/

pkill seld; pkill nfcd;

Explanation of the commands:

sudo -s (will actually get you to a root shell - note that the password is the same as your system)

mv commands (will moves the staled files in the trash)

pkil commands (will kill the related cache servers)

Then:

– Wait a few seconds for the relevant servers to boot themselves up again. Then, go back to System Preferences, hit Add Card…

– It will fail the first time with a mysterious error. That’s fine. Hit Add Card again…

– On this second try, it will say “Apple Pay is already configured on this disk for another Mac”.

– When you hit “Reset Apple Pay and Add Card” for the final time, it will actually break past the loop, and you will get to re-enter your Apple Pay card information without further issue.

It’s a relatively easy fix. Let's hope that Apple will fix this in an upcoming MacOS release.

45 replies

May 9, 2017 5:42 PM in response to rumpadunk

From viewing the console output when this happens, it seems like some record of Apple pay is stored on disk which is triggering the message, but the secure enclave hardware is empty (as it's a new machine) so fails to remove it, so the process fails. If we could determine where the Apple pay configuration is stored we might be able to remove it manually and it would work. I've not got that far yet though.

May 9, 2017 6:35 PM in response to philimanjaro

Also, just to be clear on what I have tried so far...


- An Apple employee had be sign out of my iCloud account on my computer (System Preferences > iCloud > Sign Out, then once signed out, try to see if i encountered the same Apple Wallet/Pay Issue. It didn't make a difference.


- They had me boot into safe mode and try the same steps as the first method. It didn't make a difference.


- They had me verify that i was running the latest stable MacOS version. (10.12.4 at the time of this writing)

May 14, 2017 5:47 PM in response to rumpadunk

Any luck yet? My progress with the Apple Care support guys has been halted. It doesn't look like any progress is being made, even though I've encouraged them to look at this thread and figure out the correlation between my issues and the others that have posted here.


I'm not about to wipe my Mac clean and start fresh just to get a built-in Apple function to work...especially when the only reason I am in the position is because the new Macbooks had hardware issues that required repair. I even used Apple's Time Machine for backup and restoring my system (doing everything by the book!)


Definitely frustrating.

May 28, 2017 4:43 PM in response to rumpadunk

I still have an active ticket open with a senior engineer. He has called me back a few times now with some random things to try, but none of them have worked. It sounds like they don't know the cause of the issue. Fortunately, he said that they are looking at "a few other cases" of people having similar issues, so hopefully, they are all working on ours together to determine the cause.


I'll keep you posted if I hear back with any new news. Thanks everyone for chiming in and keeping us updated.

May 31, 2017 6:52 PM in response to rumpadunk

Okay all, I have some unfortunate news.


Apple's engineer got back to me and told me that there were TWO options left to try:


- Contact my bank that the credit card for Apple Pay was issued through and have them manually revoke all of my Apple Pay tokens across all my devices.


OR


- Wipe the machine, DO NOT restore from a time machine back. Clean install.



My bank revoked all of the tokens for my Apple Wallet, and that did not make a difference with the error message on my computer. I restarted the computer, I signed out of iCloud and back in, etc...it didn't make a difference.


So now, the only way to fix this after all of this time going back and forth with Apple is by performing a clean install and NOT using Time Machine to assist me. So I can't use Time Machine (Apple Product) to restore functionality of Apple Pay (Apple Product), and I only had to take this Macbook in for repair because of a faulty logic board (Apple's fault).


Wow. Thanks Apple.


Apparently... Logic board replacement == Not being able to use Time Machine to restore your data if you want to maintain use of Apple Pay.


My advice to you guys...if you need a repair on your Macbook, but your Macbook is still functional enough to manually remove the Apple Pay/Apple Wallet settings using System Preferences and Apple ID's website...do that FIRST before creating your time machine backup and before taking it into Apple. My guess is that this would prevent this issue from reoccurring under similar circumstances.


I'm not going to have the time to wipe this system for quite a long time due to my work schedule, either.


I hope the rest of you have better luck with a resolution from the Apple's engineers than I did!

May 31, 2017 11:03 PM in response to philimanjaro

This is not really acceptable.

I can't see how this is the only solution?


Can you confirm with them that since all new MacBooks (except MBP13 without touchbar) have the SSD attached to the logic board, there is no situation where you could lose your data and not have the logic board replaced?

Not like previously where my HDD could fail and I use time machine to save the day.

If time machine / time capsule product is not compatible with this, would it not create a legal issue of being mis-sold the item.

I understand you can't use time machine on a brand new machine (I.e. After an upgrade), but if all incidents of data recovery equal "new machine", then it renders the product useless.


Where is the Apple Pay data stored? I had my finger print sensor replaced at the same time as the logic board for comparability apparently??


I used third party software to restore as well (carbon copy cloner). There MUST be a file somewhere which is causing the issue - the engineer simply hasn't looked hard enough!

Jun 1, 2017 9:21 PM in response to philimanjaro

Yeah that is a really horrible answer. It seems like a software issue to me, one that needs to be fixed soon. I'm going to contact Apple sometime soon as I have the same issue. I just got my 15 inch MBPt back yesterday from repair (logic board was replaced). Hopefully I can get a better answer - something needs to be done. I do not want to manually set my computer up. TimeMachine works so well (except for this issue).

Jun 11, 2017 9:58 AM in response to rumpadunk

If you have a backup of the "applepay" folder before before you set up, maybe that would work. I'm not sure how easy it would be to copy across while keeping the permissions as carbon copy cloner does.

I didn't have that option as I had Apple Pay set up before my logic board packed in and didn't backup the "applepay" folder before restoring from my pre-failure backup.


I actually tried to perform a non-fresh re-install of macOS. It didn't work. I assume you'd have to format your partition and re-install a completely fresh copy, and then manually install and bring everything across from a backup. That would be a nightmare!

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.

Unable to add Apple Pay wallet after restoring a Time Machine Backup

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