Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
paulpharr
4 years agoOccasional Contributor
CLI 2.0 file permissions recommendations
in looking at our server logs after switching some access to go through CLI 2.0, I see the following error output on most calls:
couldn't start daemon: open /run/user/0/op-daemon.pid: permission d...
1P_Simon
1Password Team
4 years agoHi paulpharr, thanks for reaching out!
The most common use case for the daemon is caching. Are you passing --cache to your commands?
does not affect the functionality - all calls are working afaict
When the daemon cannot be reached for caching purposes, the CLI continues without using the cache (re-fetching the items from 1Password servers).
im sure this is related to some installation/execution permissions differences yet to be investigated
There are some installation differences between 1Password CLI version 1 and 2. Most notably, version 2 is/should be owned by the onepassword-cli group. You can validate this using ls -l $(which op).
I realize it has been a month since you reached out about this. Have you been able to investigate and possibly remediate your installation? I'm curious if you have any findings, as I think we should improve the error message we're providing in case there's installation changes you should be making to remediate this.
Cheers,
Simon
Developer, Developer Products