duplicity-talk
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Duplicity-talk] Problems with Hubic cron tasks


From: Tapio Sokura
Subject: [Duplicity-talk] Problems with Hubic cron tasks
Date: Wed, 28 Mar 2018 19:19:04 +0300
User-agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0

Hello,

I'm using duplicity 0.7.16 (epel packaged, I see 0.7.17 is also available there now) with Hubic on CentOS 7, with a cron task that runs a few times per month. The command line is something like this:

duplicity incr --name backup2018 --asynchronous-upload --encrypt-sign-key 0xAAAAAAAAAAAAAAAA --use-agent --exclude-device-files --exclude-other-filesystems --log-file /location/of/hubic-backup.log --volsize 900 --allow-source-mismatch --max-blocksize 8192 /mnt/sourcedir cf+hubic://backup2018

The problem is that mostly the cron tasks are not going through. Always the error seems to be related to authentication / connecting to hubic. Here are some typical error messages:

most common:
Connection failed, please check your credentials: KeyError 'error'

a few occasions:
Connection failed, please check your credentials: AuthenticationFailed Unable to authorize client_id, invalid login/password ?

The user home directory has a .hubic_credentials file with working Hubic credentials in it. I've tried both not touching .hubic_tokens and removing the .hubic_tokens file before backup to have it recreated with fresh tokens, but it doesn't seem to work reliably either way.

When manually running duplicity from command line as the same user I seem to have better luck. Is there something special that needs to be accounted for when using cron to run duplicity? Currently I'm just setting PATH and SHELL to match what the user running duplicity has natively in a login shell.

  Tapio



reply via email to

[Prev in Thread] Current Thread [Next in Thread]