Biometric unlock for CLI on WSLg + Ubuntu

slo
slo
Community Member
edited August 2022 in CLI

I have installed and I am able to run both CLI and GUI.
I think I have managed to start dbus, which is not running by default on Ubuntu on top of WSLg.
But I still can not use the GUI to unlock CLI.

I am not sure if another service is missing on my installation.
Also I noticed an error regarding auto-lock. I am not sure if system authentication service is running probably, and if this is related to my problem.

Can someone tell be what services are required to make unlock for CLI working?
Am I missing something else?

If running op signin I get a "authorization prompt dismissed" error from the CLI and a "message from b5x was None" error from the GUI:

slo@NB202126:~$ sudo service dbus start
[sudo] password for slo:
 * Starting system message bus dbus                                                                                                                                                             [ OK ]
slo@NB202126:~$ eval $(dbus-launch --sh-syntax)
slo@NB202126:~$ 1password &
[1] 177
slo@NB202126:~$ INFO  2022-08-12T11:31:26.540 ThreadId(10) [client:typescript] Client starting.
INFO  2022-08-12T11:31:27.680 tokio-runtime-worker(ThreadId(6)) [1P:native-messaging/op-native-core-integration/src/lib.rs:281] Starting IPC listener on 1Password-BrowserSupport
INFO  2022-08-12T11:31:27.681 ThreadId(10) [1P:op-localization/src/lib.rs:236] system locale detected as 'C'
INFO  2022-08-12T11:31:27.681 tokio-runtime-worker(ThreadId(6)) [1P:native-messaging/op-native-core-integration/src/lib.rs:293] Active native core integration is awaiting messages
INFO  2022-08-12T11:31:27.681 ThreadId(10) [1P:op-localization/src/lib.rs:251] C isn't directly supported; falling back to en-US
INFO  2022-08-12T11:31:27.681 ThreadId(10) [1P:op-localization/src/lib.rs:262] selected translations for EN_US based on detected locale en-US
INFO  2022-08-12T11:31:27.681 ThreadId(10) [status:op-app/src/app.rs:357] App::new(1Password for Linux/80800203 (EN_US), /home/$USER/.config/1Password/1password.sqlite)
INFO  2022-08-12T11:31:27.689 ThreadId(10) [1P:op-db/src/db.rs:120] Starting DB at version: 25
[216:0812/113127.690924:ERROR:sandbox_linux.cc(377)] InitializeSandbox() called with multiple threads in process gpu-process.
[216:0812/113127.698591:ERROR:gpu_memory_buffer_support_x11.cc(44)] dri3 extension not supported.
INFO  2022-08-12T11:31:27.780 ThreadId(10) [1P:ssh/op-ssh-config/src/lib.rs:231] agent not configured
ERROR 2022-08-12T11:31:27.780 ThreadId(10) [1P:ffi/core-node/src/lib.rs:65] Attempted to notify uninitialized App
WARN  2022-08-12T11:31:28.028 tokio-runtime-worker(ThreadId(16)) [1P:foundation/op-linux/src/kernel_keyring.rs:827] failed to initialize keyring helper, its functionality will be unavailable: Io(Error { kind: UnexpectedEof, message: "failed to fill whole buffer" })
INFO  2022-08-12T11:31:40.964 tokio-runtime-worker(ThreadId(2)) [1P:op-data-layer/src/load.rs:136] loaded 61 items in 8 vaults for account: YSWK3GVFKNBBXAX7IK5VVIPEHU
ERROR 2022-08-12T11:31:40.970 op_executor:invocation_loop(ThreadId(15)) [1P:op-auto-lock/src/linux.rs:167] Could not connect to the X server: XcbEventError
INFO  2022-08-12T11:31:40.970 op_executor:invocation_loop(ThreadId(15)) [1P:op-app/src/app/backend/unlock.rs:82] Lock state changed: Unlocked
INFO  2022-08-12T11:31:42.105 tokio-runtime-worker(ThreadId(3)) [1P:op-syncer/src/sync_job.rs:284] synced account YSWK3GVFKNBBXAX7IK5VVIPEHU (0.17253665s)
INFO  2022-08-12T11:31:42.236 tokio-runtime-worker(ThreadId(2)) [1P:op-data-layer/src/file.rs:607] find_and_complete_pending_uploads: 'YSWK3GVFKNBBXAX7IK5VVIPEHU'
INFO  2022-08-12T11:31:42.473 tokio-runtime-worker(ThreadId(2)) [1P:op-data-layer/src/sync.rs:522] The B5 Notifier for (YSWK3GVFKNBBXAX7IK5VVIPEHU) has connected, now monitoring for events.

slo@NB202126:~$ op signin --force
INFO  2022-08-12T11:31:56.484 tokio-runtime-worker(ThreadId(2)) [1P:native-messaging/op-native-core-integration/src/lib.rs:305] Extension connecting.
INFO  2022-08-12T11:31:56.484 tokio-runtime-worker(ThreadId(2)) [1P:native-messaging/op-native-core-integration/src/lib.rs:307] Extension connection accepted.
INFO  2022-08-12T11:31:57.486 tokio-runtime-worker(ThreadId(2)) [1P:native-messaging/op-native-core-integration/src/lib.rs:305] Extension connecting.
INFO  2022-08-12T11:31:57.486 tokio-runtime-worker(ThreadId(2)) [1P:native-messaging/op-native-core-integration/src/lib.rs:307] Extension connection accepted.
INFO  2022-08-12T11:31:57.545 op_executor:invocation_loop(ThreadId(15)) [1P:foundation/op-sys-info/src/process_information/linux.rs:367] no GUI info available to determine top level parent
WARN  2022-08-12T11:31:57.545 op_executor:invocation_loop(ThreadId(15)) [1P:op-app/src/app/backend.rs:192] operation blocking event loop invoke Invocation(External(NativeMessaging { invocation: NmRequestAuthorization(<NmRequestAuthorizationRequest>), client_info: NmClientInfo { pid: Some(308), session: Cli(Tty { session_id: 54, session_start_time: <U53> }) } })) took more than 50 ms (57 ms)
[ERROR] 2022/08/12 11:31:57 authorization prompt dismissed, please try again
ERROR 2022-08-12T11:31:57.585 tokio-runtime-worker(ThreadId(1)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:60] message from b5x was None: EndConnection
ERROR 2022-08-12T11:31:57.585 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
ERROR 2022-08-12T11:31:57.586 tokio-runtime-worker(ThreadId(1)) [1P:native-messaging/op-native-core-integration/src/connection_handler.rs:63] failed to receive message from b5x: Io(Os { code: 104, kind: ConnectionReset, message: "Connection reset by peer" })
slo@NB202126:~$ ERROR 2022-08-12T11:31:57.586 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

1Password Version: 8.8.0, CLI 2.6.0
Extension Version: Not Provided
OS Version: Ubuntu 22.04 on top of WSLg
Browser:_ Not Provided

This discussion has been closed.