Thanks for the updates @kausban! With the new systemd bridge service that doesn't use screen, I still have a problem after rebooting. At the first attempt to sync with protonmail, mbsync complains that the account myemail@protonmail.com cannot be found (for obvious reasons, I didn't post my actual email address here). I believe this is not a pass-related problem anymore, which I fixed, because if I read the error message right, protonmail-bridge is complaining that the email account cannot be found. What I need to do to make it work is as follows: Check status of bridge.service -- $systemctl --user status bridge.service, which reveals that the service is active Stop bridge.service -- $systemctl --user stop bridge.service Check account -- $protonmail-bridge -c, then >>info, which shows that the account is actually there with the right password and everything. Start bridge.service -- $systemctl --user start bridge.service After this seemingly unnecessary ritual, mbsync can login and sync with my protonmail account.
I wonder if the service is launched before it can read the protonmail credentials from pass somehow. Thank you again for troubleshooting this with me.
Pinned Comments
luoe commented on 2023-02-25 15:59 (UTC)
When using kwallet as provider for org.freedesktop.secrets and pass for key backend for the bridge, I've needed to add a delay before starting the systemd unit after login.
systemctl --user edit --full bridge.service
Else the starting of the bridge might fail because kwallet isn't unlocked instantly after login and the GPG key for the pass repo thus is locked (Editing the systemd unit file will skip the need for manual input of the passphrase for the GPG key)
mclancy commented on 2020-06-15 16:35 (UTC)
hakayova and grimfrenzy: I managed to solve the issue of "no account found" by providing the correct PASSWORD_STORE_DIR to the systemd service.
In my case I provided: Environment="PASSWORD_STORE_DIR=/home/mclancy/.local/share/pass"
Hope this helps!
kausban commented on 2020-04-21 14:37 (UTC) (edited on 2020-04-21 14:37 (UTC) by kausban)
Minimal fork of https://aur.archlinux.org/packages/protonmail-bridge/
Compiled with 'nogui' option
Included is a user systemd service. Try: systemctl status --user bridge.service
The following is an alternative way to run the bridge in interactive cli mode encapsulated within a named screen session. Can be added to bridge.service