Protect what matters – even after you're gone. Make a plan for your digital legacy today.
Forum Discussion
Former Member
4 years agoRunning op under WSL with systemd turned on gives error message
Running op under WSL when having the new https://devblogs.microsoft.com/commandline/systemd-support-is-now-available-in-wsl/ will give the following error message:
❯ op whoami
couldn't start daemon: open /run/user/1000/op-daemon.pid: permission denied
Shorthand: my
URL: https://my.1password.com
<info removed>
I have XDG_RUNTIME_DIR=/run/user/1000/ in my environment and the uid of the running user is 1000.
Any idea if this message can be fixed? I tried just as a temp fix setting OP_CACHE=false but that still produces the message
EDIT: Specifically it's Debian 11 under WSL
1Password Version: Not Provided
Extension Version: Not Provided
OS Version: Not Provided
Browser:_ Not Provided
7 Replies
- Former Member
Perfect, we are happy to hear that! Thank you for letting us know!
Amanda
- Former Member
So I had
systemdturned on off on mywslinstance until now, I turned it on to test if I had access/run/user/1000/op-daemon.pidbut first just quickly ranop whoamito see if it was still not working, well surprisingly no error is now showing up. So something was fixed either on 1Password's end or on Microsoft's end. Either way, it works now! - andi_t_1P
1Password Team
Hi @thisdevdane and oliverroos ! This is usually an error that users who would run the cli on another machine would get because their user (who owns the cli process) would lack permissions to most files on the host filesystem. Since WSL uses a VM behind the scenes, could you double check that the process running the cli has permissions to access
run/user/1000/op-daemon.pid? - Jack_P_1P
1Password Team
- oliverroosOccasional Contributor
Hey Jack_P_1P any updates on this? I got the same error using RockyLinux 8 under WSL.
- Former Member
Great to hear!
- Jack_P_1P
1Password Team
Hi @thisdevdane:
Thanks for letting us know about this! I've filed an issue internally to see if we can sort this out.
Jack
ref: dev/b5/op#3299