Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
2 years agoCLI hangs when requesting items
the cli had been working without issues for a while but about a day ago it began to indefinitely hang when fetching an item.
When I run: op item get XXX --otp --debug I get:
9:35AM | DEBUG | Session delegation enabled
9:35AM | DEBUG | NM request: NmRequestAccounts
9:35AM | DEBUG | NM response: Success
9:35AM | DEBUG | NM request: NmRequestAccounts
9:35AM | DEBUG | NM response: Success
9:35AM | DEBUG | account not signed in, filter=XXXX latest_signin_user=XXXXXXXXXX
9:35AM | DEBUG | not signed in reason: session file not found
9:35AM | DEBUG | NM request: NmRequestAccounts
9:35AM | DEBUG | NM response: Success
9:35AM | DEBUG | NM request: NmRequestAuthorization
9:35AM | DEBUG | NM response: Success
9:35AM | DEBUG | NM request: NmRequestAccounts
9:35AM | DEBUG | NM response: Success
9:35AM | DEBUG | NM request: NmRequestDelegatedSession
and it just hangs there. Any idea of what could be wrong here?
1Password Version: 8.10.3 (81003012)
Extension Version: 2.15.0
OS Version: macOS 13.2.1 (22D68)
Browser:_ zsh
41 Replies
- Joshua_ag
1Password Team
Hi @sagmor, wonnage, @iwehrman, @teacy123, JKnockaert, dewe, @tannerellen, jeb1138, @tamrid, ecerulm, sebastianreload, MimerPlusPlus,
I have an update to share for the original reported issue of the CLI hanging when the 1Password app is locked. The latest nightly version of the 1Password app has a fix for this issue!
If anyone is willing to test it out that would be really helpful to confirm we have fully resolved the issue.
Please make sure you are running:
- 1Password 8.10.32 (81032006) or later - Learn how to Use 1Password nightly releases
-op --version2.26.1 or later, learn how to Update to the latest version of 1Password CLIIf you are still experiencing the same issue with the CLI hanging when trying to authenticate with a locked copy of the 1Password app (or new issues) please let me know.
If you are not able to switch the nightly version of the 1Password app the fix should make it to the beta version and then eventually production version barring any potential regressions or issues (hopefully there are none).
- MimerPlusPlusNew Contributor
Hi there,
I'm experiencing the same issue with all plugin commands, but one thing that hasn't been mentioned, is that the failing op read does prompt me for a login (put up a unlock screen and accept my fingerprint) before i hangs, and if i break the command with ctrl+c and run the exact same op command again, everything works just fine, since i'm already logged in to 1Password - which also might explain why running 1Password in the menu helps in some cases, since it might keep the login session running a bit longer...
Update: Just updated to latest CLI version (2.26.1), and so far it seems to be working quite a lot better
- sebastianreloadOccasional Contributor
- What command(s) are failing? "op --account https://companyname.1password.eu signin" but also every other command which requires re-authentication
- Do you have 1Password set to appear in your menu bar / notification area / task bar? yes
- Is 1Password running but locked, running and unlocked, or not running at all when you run the command(s)? running, and i guess locked because of the re-authentication
- What operating system are you running? MacOS Sonoma 14.3 (23D56)
- What shell are you running? bash script within zsh
- What version of 1Password the app and op are you running? 1Password for Mac 8.10.28 (81028034) + op 2.24.0
- Do you have biometrics enabled to unlock 1Password? yes
- tamirdNew Contributor
Hello, it's been a few months now. Any progress?
- ecerulmNew Contributor
I'm also experiencing this.
Im on macOS Sonoma 14.3.1
I can reproduce 100% of the time, by
- Closing down both 1Password app and 1Password in the menu bar
- Start 1Password again (that opens both the app and the 1password menu bar. I leave it locked
- From kitty or iTerm or Terminal , I run op --debug --cache=false read "op://Personal/xxxx"
- It will pop up the "1Password Access Requested" I use the Autorize with Touch ID
- I see the 1Password desktop app unlocking
- But the op read hangs forever
- If I kill it and run it again it will works (presumably because 1Password is already unlocked)
Responses to your questions Joshua_ag
- What command(s) are failing?
- op --debug --cache=false read "op://Personal/xxxx"
- Do you have 1Password set to appear in your menu bar / notification area / task bar? yes
- Is 1Password running but locked, running and unlocked, or not running at all when you run the command(s)?
- Is running locked (both the app and the icon menu bar are visible)
- when the app is unlocked then op read won't hang for me.
- What operating system are you running? macOS Sonoma 14.3.1
- What shell are you running?
- I tried both zsh and bash, in macOS Terminal, kitty and iTerm2
- What version of 1Password the app and op are you running?
- op --version 2.25.0
- 1Password for Mac 8.10.27 (81027003)
- Do you have biometrics enabled to unlock 1Password?
- yes, I use TouchID
```
op --debug --cache=false read "op://Personal/xxxx"
9:19AM | DEBUG | Session delegation enabled
9:19AM | DEBUG | NM request: NmRequestAccounts
9:19AM | DEBUG | NM response: Success
9:19AM | DEBUG | NM request: NmRequestAccounts
9:19AM | DEBUG | NM response: Success
9:19AM | DEBUG | account not signed in, filter= latest_signin_user=xxxxx
9:19AM | DEBUG | NM request: NmRequestAccounts
9:19AM | DEBUG | NM response: Success
9:19AM | DEBUG | NM request: NmRequestAuthorization
9:19AM | DEBUG | NM response: Success
9:19AM | DEBUG | NM request: NmRequestAccounts
9:19AM | DEBUG | NM response: Success
9:19AM | DEBUG | NM request: NmRequestDelegatedSession```
- Joshua_ag
1Password Team
Thank you @tannerellen and @iwehrman,
I have passed along these details to the development team. We really appreciate the help!