-
-
Notifications
You must be signed in to change notification settings - Fork 14.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
1password op commandline no longer works since desktop app integration was introduced #258139
Comments
Could also reproduce on my system after upgrading to v8.10.16 (#256365). Could 1Password be attempting to communicate via some channel that's just broken on Nix? |
Hey, y'all. Unfortunately, I've never used the CLI, so I don't know how the CLI communications work. I suspect that it is different from integration with the browser extension, though I'm only guessing on that. I only did work to make the browser extension work in Nix. I think it likely that we will need to add on to the Nix module for the CLI as well, but I cannot give you any advice at the moment on how to do that. I'd suggest filing a support request. Even though I'm on vacation this week, there are a few other Nix users who may be able to help, and it is something that I can work on when I return next week. |
Versions:
If you disable the |
Can repro! Looks like the new approval prompt is just broken on Nix, then? |
I don't seem to have the "Use rich approval prompt" option. My 1Password GUI's This seems as though there's a hidden dependency on an external prompt program I don't have. |
FWIW, the same on osx with latest everything. OS: Sonoma 14.2.1 (23C71) 1password app: 1Password for Mac 8.9.11 (80911019)
op command line: 2.24.0
|
Not that I'm very knowledgeable about NIx but to me it seems to be a permissions error (see https://1password.community/discussion/128029/can-not-connect-to-desktop-app)
The 1Password docs say the Unfortunately I'm not really familiar with how nix handles |
Huh... this is definitely not trivial. Currently all files in /nix/store are owned by root, and there's no way for nixpkgs to make the group by itself. Best way forward would probably be to make a NixOS module for the CLI, add the group to the system, and give root the group. The user then has to add the group to themself manually unless we find a way to automagically do so. |
Oh, there already is a CLI module. You can enable it with In fact, reviewing the thread, it looks like you're not using the module in either case. You can add these lines to
And, if you want to unlock 1Password with the system unlock:
|
I am using the module for it but evidently I forgot about that 🤦♀️ Seems like I couldn't reproduce it now ( |
I got the same error on macOS
I'm on latest 1Password app and 1Password CLI. In order to get around this error all I had done was reseting the "Integrate with 1Password CLI" checkbox in 1Password app developer setting. |
I'm running into the same problem on nixos, unfortunately toggling on/off through settings does not fix the problem for me. Strangely, it does seem like the initial connection works, as I can turn off the integration in the GUI, then, attempt to enable through the CLI (which, in turn, launches the GUI). Toggling the settings at that point produces a success message, immediately followed by the original error message
|
This is never going to work. The integration requires some tools be installed with suid and owned by particular users. You just can't do that outside modules installed via NixOS. |
Very much sounds like he got it to work. FWIW I also have 1password + cli on MacOS working, managed through Nix (nix-homebrew in the case of the GUI). The problems I have are on my NixOS desktop. |
This turned out to be my problem. Enabling these has fixed my |
For NixOS-WSL users, see nix-community/NixOS-WSL#346 |
Describe the bug
When running any
op
command the error[ERROR] 2023/09/30 12:23:42 connecting to desktop app: read: connection reset, make sure the CLI is correctly installed and Connect with 1Password CLI is enabled in the 1Password app
is displayed.
Steps To Reproduce
Steps to reproduce the behavior:
_1password
and_1password-gui
packages1password
to launch the GUIop
command such asop signin
Expected behavior
I expect the CLI to correctly integrate with the GUI and perform my required commands
Additional context
I've included the failing portion of the strace. It seems to be returning 133 (ENOSPC) when attempting to write to the GUI socket:
However the
/run/user/1000
tmpfs volume is at 1% usage with 2.4G available and no other disks are full either.Notify maintainers
@joelburget
@marsam
@savannidgerinel
@matthewpi
Metadata
Please run
nix-shell -p nix-info --run "nix-info -m"
and paste the result.(I don't install via nix channels. I currently have installed the version at https://github.com/NixOS/nixpkgs/archive/5cfafa12d57374f48bcc36fda3274ada276cf69e.tar.gz)
The text was updated successfully, but these errors were encountered: