unsupportedClientType printed by op cli
I have upgraded 1password on my Gentoo Linux. After upgrade the op
cli command does not work. The command op vault list
prints the error
[ERROR] 2023/09/01 17:37:08 response: unsupportedClientType
I have installed 1password for Linux 8.10.13 and 1password-cli 2.20.0.
I set the group and file mode bits for required files:
/opt/1Password # ls -l total 239448 -rwxr-xr-x 1 root root 166345296 Aug 24 17:22 1password -rwxr-sr-x 1 root onepassword 9955344 Aug 24 17:22 1Password-BrowserSupport -rwxr-xr-x 1 root root 3065872 Aug 24 17:22 1Password-HIDHelper -rwsr-sr-x 1 root onepassword 3722896 Aug 24 17:22 1Password-KeyringHelper -rwxr-xr-x 1 root root 11548232 Aug 24 17:22 1Password-LastPass-Exporter -rwxr-xr-x 1 root root 4472 Aug 24 17:22 after-install.sh -rwxr-xr-x 1 root root 751 Aug 24 17:22 after-remove.sh -rw-r--r-- 1 root root 136579 Aug 24 17:22 chrome_100_percent.pak -rw-r--r-- 1 root root 197691 Aug 24 17:22 chrome_200_percent.pak -rwxr-xr-x 1 root root 1246464 Aug 24 17:22 chrome_crashpad_handler -rwsr-xr-x 1 root root 53840 Aug 24 17:22 chrome-sandbox -rw-r--r-- 1 root root 1508 Aug 24 17:22 com.1password.1Password.policy.tpl -rw-r--r-- 1 root root 10544880 Aug 24 17:22 icudtl.dat -rw-r--r-- 1 root root 1184 Aug 24 17:22 install_biometrics_policy.sh -rwxr-xr-x 1 root root 251064 Aug 24 17:22 libEGL.so -rwxr-xr-x 1 root root 2877488 Aug 24 17:22 libffmpeg.so -rwxr-xr-x 1 root root 6437608 Aug 24 17:22 libGLESv2.so -rwxr-xr-x 1 root root 4565640 Aug 24 17:22 libvk_swiftshader.so -rwxr-xr-x 1 root root 6396248 Aug 24 17:22 libvulkan.so.1 -rw-r--r-- 1 root root 1096 Aug 24 17:22 LICENSE.electron.txt -rw-r--r-- 1 root root 8247912 Aug 24 17:22 LICENSES.chromium.html drwxr-xr-x 2 root root 4096 Sep 1 17:34 locales -rwxr-xr-x 1 root root 3462408 Aug 24 17:22 op-ssh-sign drwxr-xr-x 4 root root 4096 Sep 1 17:34 resources -rw-r--r-- 1 root root 5214565 Aug 24 17:22 resources.pak -rw-r--r-- 1 root root 259202 Aug 24 17:22 snapshot_blob.bin -rw-r--r-- 1 root root 578034 Aug 24 17:22 v8_context_snapshot.bin -rw-r--r-- 1 root root 107 Aug 24 17:22 vk_swiftshader_icd.json
# ls -l /usr/bin/op -rwxr-sr-x 1 root onepassword 22716416 Sep 1 17:33 /usr/bin/op
1password desktop app is running and unlocked. When I run op
command, then I get error message. For example:
$ op --debug vault list 5:37PM | DEBUG | Session delegation enabled 5:37PM | DEBUG | NM request: NmRequestAccounts 5:37PM | DEBUG | NM response: Success 5:37PM | DEBUG | NM request: NmRequestAccounts 5:37PM | DEBUG | NM response: Success 5:37PM | DEBUG | account not signed in, filter= latest_signin_user= 5:37PM | DEBUG | NM request: NmRequestAccounts 5:37PM | DEBUG | NM response: Success 5:37PM | DEBUG | NM request: NmRequestAuthorization 5:37PM | DEBUG | NM response: Success [ERROR] 2023/09/01 17:37:08 response: unsupportedClientType
When I tried to downgrade back to previous versions (1password 8.10.7 and cli 2.14.0), then the problem persists (but before upgrade this versions worked for me). So it seems I missed something during the upgrade but I have no idea what is it.
Do you have an idea why op
cli command does work with installed desktop 1password
app? Any hint is appreciated.
1Password Version: 8.10.13
Extension Version: Not Provided
OS Version: Gentoo Linux
Browser: Not Provided
Comments
-
Here is log from 1password desktop app:
$ 1password INFO 2023-09-01T15:35:55.461 ThreadId(10) [client:typescript] Client starting. [13449:0901/173555.530590:ERROR:object_proxy.cc(590)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: No such interface “org.freedesktop.portal.FileChooser” [13449:0901/173555.530641:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property INFO 2023-09-01T15:35:55.547 ThreadId(10) [1P:op-localization/src/lib.rs:227] system locale detected as 'en-US' INFO 2023-09-01T15:35:55.547 ThreadId(10) [1P:op-localization/src/lib.rs:253] selected translations for EN_US based on detected locale en-US INFO 2023-09-01T15:35:55.547 ThreadId(10) [status:op-app/src/app.rs:532] App::new(1Password for Linux/81013005 (EN_US), /home/$USER/.config/1Password/1password.sqlite) INFO 2023-09-01T15:35:55.553 ThreadId(10) [1P:data/op-db/src/db.rs:446] Table Integrity Check Succeeded INFO 2023-09-01T15:35:55.555 ThreadId(10) [1P:data/op-db/src/db.rs:462] DB Integrity Check Succeeded INFO 2023-09-01T15:35:55.555 ThreadId(10) [1P:data/op-db/src/db.rs:137] Starting DB at version: 28 INFO 2023-09-01T15:35:55.629 ThreadId(10) [1P:data/op-db/src/db.rs:1137] Updated DB Schema to version 029 INFO 2023-09-01T15:35:55.635 ThreadId(10) [1P:ssh/op-ssh-config/src/lib.rs:246] agent configured INFO 2023-09-01T15:35:55.639 tokio-runtime-worker(ThreadId(3)) [1P:native-messaging/op-native-core-integration/src/lib.rs:329] Starting IPC listener on 1Password-BrowserSupport INFO 2023-09-01T15:35:55.639 tokio-runtime-worker(ThreadId(3)) [1P:native-messaging/op-native-core-integration/src/lib.rs:341] Active native core integration is awaiting messages INFO 2023-09-01T15:35:55.639 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.config/google-chrome/NativeMessagingHosts/com.1password.1password.json INFO 2023-09-01T15:35:55.639 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.config/google-chrome-beta/NativeMessagingHosts/com.1password.1password.json INFO 2023-09-01T15:35:55.639 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.config/google-chrome-unstable/NativeMessagingHosts/com.1password.1password.json INFO 2023-09-01T15:35:55.639 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.config/chromium/NativeMessagingHosts/com.1password.1password.json INFO 2023-09-01T15:35:55.640 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.config/microsoft-edge-dev/NativeMessagingHosts/com.1password.1password.json INFO 2023-09-01T15:35:55.640 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.config/BraveSoftware/Brave-Browser/NativeMessagingHosts/com.1password.1password.json INFO 2023-09-01T15:35:55.640 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.config/vivaldi/NativeMessagingHosts/com.1password.1password.json INFO 2023-09-01T15:35:55.640 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.config/vivaldi-snapshot/NativeMessagingHosts/com.1password.1password.json INFO 2023-09-01T15:35:55.640 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:68] Created NMH manifest at /home/$USER/.mozilla/native-messaging-hosts/com.1password.1password.json INFO 2023-09-01T15:35:55.640 invocation_loop(ThreadId(17)) [1P:native-messaging/op-nm-installer/src/nix_utils.rs:83] Successfully installed all native messaging manifests. INFO 2023-09-01T15:35:55.641 tokio-runtime-worker(ThreadId(5)) [1P:ssh/op-agent-controller/src/desktop.rs:609] SSH Agent has started. INFO 2023-09-01T15:35:55.641 tokio-runtime-worker(ThreadId(5)) [1P:ssh/op-agent-controller/src/desktop.rs:438] Starting filesystem watcher for SSH agent configuration directories... ERROR 2023-09-01T15:35:55.641 tokio-runtime-worker(ThreadId(5)) [1P:/builds/dev/core/core/ssh/op-agent-controller/src/desktop.rs:439] Io(Os { code: 2, kind: NotFound, message: "No such file or directory" }) INFO 2023-09-01T15:35:56.136 invocation_loop(ThreadId(17)) [1P:op-app/src/app/backend/lock_screen.rs:75] System unlock is enabled: true INFO 2023-09-01T15:35:56.142 tokio-runtime-worker(ThreadId(1)) [1P:op-app/src/app/backend/lock_screen.rs:91] Sys auth status NotSetup INFO 2023-09-01T15:36:04.546 invocation_loop(ThreadId(17)) [1P:op-app/src/app/backend/lock_screen.rs:75] System unlock is enabled: true INFO 2023-09-01T15:36:04.673 tokio-runtime-worker(ThreadId(3)) [1P:data/ext/op-account-ext-items/src/lib.rs:236] loaded 1093 items in 7 vaults for account: XXXXXXXX-REDACTED-XXXXXXXX INFO 2023-09-01T15:36:04.676 tokio-runtime-worker(ThreadId(4)) [1P:op-app/src/app/backend/unlock.rs:116] Lock state changed: Unlocked INFO 2023-09-01T15:36:04.676 tokio-runtime-worker(ThreadId(4)) [1P:op-app/src/app/backend/unlock.rs:167] Processing unlocked account XXXXXXXX-REDACTED-XXXXXXXX INFO 2023-09-01T15:36:04.834 tokio-runtime-worker(ThreadId(8)) [1P:data/op-account-system-unlock/src/lib.rs:520] Adding system unlock key. Verifying keysets can be decrypted. INFO 2023-09-01T15:36:04.841 tokio-runtime-worker(ThreadId(8)) [1P:data/op-account-system-unlock/src/lib.rs:526] Adding system unlock key. Encrypting muk. INFO 2023-09-01T15:36:04.841 ThreadId(14) [1P:data/op-account-system-unlock/src/lib.rs:532] Adding system unlock key. Updating account. INFO 2023-09-01T15:36:05.879 tokio-runtime-worker(ThreadId(5)) [1P:op-b5-client/src/internal/unauthorized_session.rs:1265] Verifying device secret (MFA) with server... INFO 2023-09-01T15:36:06.081 tokio-runtime-worker(ThreadId(4)) [1P:op-b5-client/src/internal/unauthorized_session.rs:921] Device secret was verified INFO 2023-09-01T15:36:06.082 tokio-runtime-worker(ThreadId(4)) [1P:op-b5-client/src/internal/unauthorized_session.rs:939] No new device secret was given as current one is still valid and verified INFO 2023-09-01T15:36:06.540 tokio-runtime-worker(ThreadId(4)) [1P:op-syncer/src/sync_job.rs:315] synced account XXXXXXXX-REDACTED-XXXXXXXX (0.456755833s) INFO 2023-09-01T15:36:06.540 tokio-runtime-worker(ThreadId(5)) [1P:data/op-file-transfer/src/lib.rs:563] find_and_complete_pending_uploads: 'XXXXXXXX-REDACTED-XXXXXXXX' INFO 2023-09-01T15:36:06.688 tokio-runtime-worker(ThreadId(5)) [1P:data/ext/op-account-ext-syncer/src/lib.rs:259] The B5 Notifier for (XXXXXXXX-REDACTED-XXXXXXXX) has connected, now monitoring for events. INFO 2023-09-01T15:36:52.890 tokio-runtime-worker(ThreadId(1)) [1P:native-messaging/op-native-core-integration/src/lib.rs:407] Extension connecting. INFO 2023-09-01T15:36:52.890 tokio-runtime-worker(ThreadId(1)) [1P:native-messaging/op-native-core-integration/src/lib.rs:409] Extension connection accepted. ERROR 2023-09-01T15:36:52.892 tokio-runtime-worker(ThreadId(1)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:62] message from b5x was None: EndConnection ERROR 2023-09-01T15:36:52.892 tokio-runtime-worker(ThreadId(1)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:31] Dropping connection with b5x due to error handling incoming message: EndConnection
0 -
What shell are you using? What if you try another shell, i.e. Bash?
0 -
I'm using bash 5.1.16
0 -
That can be ruled out then, using the exact same combination here and that works. And the
op
executable, does that one have the correct permissions?0 -
I think so. It is visible in my original post:
# ls -l /usr/bin/op -rwxr-sr-x 1 root onepassword 22716416 Sep 1 17:33 /usr/bin/op
0 -
Ha, overlooked that. On my system the group is different though:
$ ls -al $(which op) -rwxr-sr-x 1 root onepassword-cli 22761472 sep 6 12:01 /usr/bin/op
Not sure if you have a
onepassword-cli
group too though, I don't run Gentoo myself. If so try maybe chgrp'ing it to that group?0 -
Thanks @autostatic for your help. But changing the group name from
onepassword
toonepassword-cli
did not helped. After group renaming I also switched off the "Integrate with 1Password CLI" option in settings and then I switched it back to ON, but it did not helped either.0 -
Then I'm a bit out of options too.
0