spo disconnect freezes with error "Could not remove account from keychain" on macOS Mojave 10.14.1
See original GitHub issueWhen I execute the following:
o365$ spo disconnect --debug
or
o365$ spo connect https://tenant.sharepoint.com/sites/Fabrikam20181117 --debug
I get the following output:
Disconnecting from SharePoint Online...
Error: Could not remove account from keychain: Command failed: /usr/bin/security delete-generic-password -a SPO -s SPO -D Office 365 CLI
security: SecKeychainSearchCopyNext: The specified item could not be found in the keychain.
- Running the latest macOS Mojave 10.14.1 here, but not sure if that’s related or not
- Built from the latest dev branch
- Tried running
sudo /usr/bin/security delete-generic-password -a SPO -s SPO -D Office 365 CLIthe same error is returned
Is anyone else able to reproduce this?
Issue Analytics
- State:
- Created 5 years ago
- Comments:9 (9 by maintainers)
Top Results From Across the Web
Delete a keychain in Keychain Access on Mac - Apple Support
In the Keychain Access app on your Mac, choose File > Add Keychain. Select the deleted keychain file. You can also open the...
Read more >How to Resolve Mac OS X Keychain Problems
Open Keychain Access, which is in the Utilities folder within the Applications folder. · From the Keychain Access menu, choose Preferences.
Read more >I'm getting a Keychain error message when signing in
Sign out from your VPN Tracker account on your Mac, open Keychain Access, and delete the entry "Connection Safe Master Key." Then sign...
Read more >How to fix or remove Mac OS X Keychain password Error pop ...
This quick Fix tutorial shows you how to remove the Keychain pop up Errors - Local Items asking for password for good causing...
Read more >Mac problem-solving - The Eclectic Light Company
A list of articles to help you solve problems on Macs running Big Sur and Monterey (11-12). For older articles about previous versions...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found

Just a quick follow up for completeness, I was experiencing this issue when executing the command
spo connect- thespo connectcommand is deprecated, and is replaced withspo login. Usingspo loginworks as expected.Thanks for confirming @mpowney 👍