Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
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
- 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
- tamirdOccasional 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!
- Former Member
Thanks Joshua_ag. One thing I've noticed is that this failure started happening much less frequently after enabling 1Password in the menu bar. To your other questions:
- op item get
- I do now, and it still occasionally fails. Before I enabled this, it failed on the initial request most of the time.
- Typically running and locked. But failures sometimes happened when running and unlocked.
- Mac OS 14.2.1
- fish 3.1.2
- 1Password 8.10.23 and op 2.23.0
- Yes, Apple Watch is set to unlock.