[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Duplicity-talk] Duplicity (GPG) fails in crontab only
From: |
Will McCown |
Subject: |
Re: [Duplicity-talk] Duplicity (GPG) fails in crontab only |
Date: |
Tue, 06 May 2014 09:20:22 -0700 |
User-agent: |
Mozilla/5.0 (Windows NT 6.1; WOW64; rv:24.0) Gecko/20100101 Thunderbird/24.5.0 |
Typically things fail in cron due to the relatively sterile
environment that cron jobs inherit, although this failure
sounds like gpg is unable to find the key rings. Are
the key files in ~root/.gnupg/?
My idiom for testing cron script manually is to become
root (or whatever other user the cron job is to run as)
with su. then "env -i bash -norc".
On 5/6/2014 8:55 AM, Grant wrote:
> Duplicity works fine if I run it manually as root, but the exact same
> command run via cron as root fails with:
>
> GPGError: GPG Failed, see log below:
> ===== Begin GnuPG log =====
> gpg: encrypted with RSA key, ID *MASKED*
> gpg: decryption failed: No secret key
> ===== End GnuPG log =====
>
> Does anyone know why this happens?
>
> - Grant
>
> _______________________________________________
> Duplicity-talk mailing list
> address@hidden
> https://lists.nongnu.org/mailman/listinfo/duplicity-talk
>
--
Will McCown, Rolling Hills Estates, CA
address@hidden
Re: [Duplicity-talk] Duplicity (GPG) fails in crontab only, edgar . soldin, 2014/05/06