Signing back into the Community for the first time? You'll need to reset your password to access your account. Find out more.
Forum Discussion
Former Member
3 years agoI get an error every time I run `op`.
System Information
Macbook Pro 2021 (M1)
op version: 2.5.1
Every time I run op , I receive the following error:
couldn't start daemon: open /var/run/user/501/op-daemon.pid: no such file ...
Former Member
3 years agoHey there @TheSocialRecluse
I could create the directory /var/run/user but that seems like a hack. How should I go about fixing this?
Good call, it will certainly help us debug this issue in case it comes up for anyone else.
Our cache opens a socket uses a file (op-daemon.pid
) to determine whether the in-memory cache process that holds encrypted items (if the cache is enabled) is already running or not.
The error message you are encountering pops up when that file cannot be located, but as you noticed, it does not affect the functionality of the command as the CLI can still run without a cache process attached to it.
If you do not have $XDG_RUNTIME_DIR
set, then the CLI should be using the following directory to locate the op-daemon.pid
file in: $TMPDIR/com.agilebits.op.$USER_ID
where user ID is the terminal user ID.
I am curious how the directory in your error message does not contain the com.agilebits.op.$USER_ID
portion of the directory path - that is likely the cause of the bug.
Do you mind sharing what your $TMPDIR
variable resolves to? If so, please redact any sensitive info by replacing them with var names, such as $USER_ID.
Thanks!