Getting started with 1Password for your growing team, or refining your setup? Our Secured Success quickstart guide is for you.
Forum Discussion
Former Member
4 years agoBiometric not working when executing the CLI from java
Hello
I'm building a java CLI that wraps op for some operations.
The issue was first observed when running a native binary compiled with Graalvm, but after investigation it is perfectly reproduc...
Former Member
4 years agoHello @"Horia.Culea_1P"
Thanks for your answer. Sadly none of the proposed workarounds seem to change a thing:
- Modifying the java code like this:
List<String> commands = Arrays.asList("/bin/bash", "-c", "op vault ls");
I observe the same error message and the same log injournalctl
. - Modifying the binary permission, I observe the same error message and the same log in
journalctl
.
Error message:
[ERROR] 2022/07/21 09:16:04 connecting to desktop app: connection reset, make sure the CLI is correctly installed and CLI Biometric Unlock is enabled in the 1Password app
Log:
Jul 21 09:16:04 *** 1password.desktop[4511]: WARN 2022-07-21T09:16:04.984 tokio-runtime-worker(ThreadId(1)) [1P:foundation/op-sys-info/src/process_information/linux.rs:247] binary permission verification failed for /home/$USER/.asdf/installs/java/temurin-11.0.15+10/bin/java
Just to be aligned on the permissions:
$ ls -al /home/$USER/.asdf/installs/java/temurin-11.0.15+10/bin/java
-rwxr-xr-x 1 root root 12768 Apr 19 21:38 /home/***/.asdf/installs/java/temurin-11.0.15+10/bin/java
And for the sake of completeness, I even ran chmod 777 /home/$USER/.asdf/installs/java/temurin-11.0.15+10/bin/java
to make sure I wasn't missing another linux permission. This resulted in the exact same error and log.
I must admit I'm getting curious about this line src/process_information/linux.rs:247
:)
Regards