User cronjob can't access keyring/credentials

Hello all,

I’ve got duplicacy working great manually on my Arch Linux desktop, but when running from a cronjob duplicacy can’t seem to access the storage credentials. Running duplicacy backup manually works fine and doesn’t prompt for credentials, and I’ve verified that the credentials are in my gnome-keyring, but when the cronjob runs, duplicacy prompts for a password and b2 API keys. The cronjob is also set to run under my user’s crontab.

Has anyone run into this issue before? Thanks!

Actually, looks like I solved it. Had to set the dbus session bus address:

DBUS_SESSION_BUS_ADDRESS="unix:path=/run/user/1000/bus" duplicacy backup ...

2 Likes

There are two related topics regarding that issue:

However, one seems to have solved it: while the other concludes that: