question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

spo disconnect freezes with error "Could not remove account from keychain" on macOS Mojave 10.14.1

See original GitHub issue

When 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 CLI the same error is returned

Is anyone else able to reproduce this?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:9 (9 by maintainers)

github_iconTop GitHub Comments

1reaction
mpowneycommented, Jan 5, 2019

Just a quick follow up for completeness, I was experiencing this issue when executing the command spo connect - the spo connect command is deprecated, and is replaced with spo login. Using spo login works as expected.

0reactions
waldekmastykarzcommented, Jan 6, 2019

Thanks for confirming @mpowney 👍

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found