Task 'BKP' failed with exit code '30'
Hello
I have an issue after update to Centos 7 x64, this is the error on the ssh session where you run the backup command:
root@s1 [~]# /usr/bin/duply cpanel_s3 backup 2>&1 >> /var/log/
Traceback (most recent call last):
File "/usr/bin/
with_
File "/usr/bin/
fn()
File "/usr/bin/
action = commandline.
File "/usr/lib64/
backup, local_pathname = set_backend(
File "/usr/lib64/
globals.backend = backend.
File "/usr/lib64/
obj = get_backend_
File "/usr/lib64/
return factory(pu)
File "/usr/lib64/
self.
File "/usr/lib64/
self.conn = get_connection(
File "/usr/lib64/
is_secure=(not globals.
File "/usr/lib/
**connectio
File "/usr/lib/
validate_
File "/usr/lib/
host, config, self.provider, self._required_
File "/usr/lib/
'Check your credentials' % (len(names), str(names)))
NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were checked. ['HmacAuthV1Han
09:36:59.434 Task 'BKP' failed with exit code '30'.
this is the result on the log file:
Start duply v1.11.3, time is 2016-10-10 09:39:19.
Using profile '/etc/duply/
Using installed duplicity version 0.7.10, python 2.7.5, gpg 2.0.22 (Home: ~/.gnupg), awk 'GNU Awk 4.0.2', grep 'grep (GNU grep) 2.20', bash '4.2.46(1)-release (x86_64-
Autoset found secret key of first GPG_KEY entry 'XXXXXXXX' for signing.
Checking TEMP_DIR '/tmp' is a folder and writable (OK)
Test - Encrypt to 'XXXXXXXX'
Test - Decrypt (OK)
Test - Compare (OK)
Cleanup - Delete '/tmp/duply.
--- Start running command PRE at 09:39:20.309 ---
Running '/etc/duply/
Output: Comenzando el respaldo de las bases de datos
Puedes revisar el log en /root/SK-
Se respaldaron 69 Bases de datos
--- Finished state OK at 09:39:42.424 - Runtime 00:00:22.114 ---
--- Start running command BKP at 09:39:42.439 ---
Using archive dir: /root/.
Using backup name: duply_cpanel_s3
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Import of duplicity.
Using temporary directory /tmp/duplicity-
--- Finished state FAILED 'code 30' at 09:39:43.748 - Runtime 00:00:01.309 ---
--- Start running command POST at 09:39:43.773 ---
Running '/etc/duply/
--- Finished state OK at 09:39:43.791 - Runtime 00:00:00.018 ---
The amazon S3 bucket is clean, no previous backup on it, could you help me please?
regards
Question information
- Language:
- English Edit question
- Status:
- Solved
- For:
- Duplicity Edit question
- Assignee:
- No assignee Edit question
- Solved by:
- juniorfga
- Solved:
- 2016-11-01
- Last query:
- 2016-11-01
- Last reply:
- 2016-10-11
Could you verify which version of boto you are using?
Also, what is the full command line you are using?
On Mon, Oct 10, 2016 at 9:08 AM, juniorfga <
<email address hidden>> wrote:
> New question #402905 on Duplicity:
> https:/
>
> Hello
>
> I have an issue after update to Centos 7 x64, this is the error on the ssh
> session where you run the backup command:
>
> root@s1 [~]# /usr/bin/duply cpanel_s3 backup 2>&1 >>
> /var/log/
> Traceback (most recent call last):
> File "/usr/bin/
> with_tempdir(main)
> File "/usr/bin/
> fn()
> File "/usr/bin/
> action = commandline.
> File "/usr/lib64/
> line 1117, in ProcessCommandLine
> backup, local_pathname = set_backend(
> File "/usr/lib64/
> line 1006, in set_backend
> globals.backend = backend.
> File "/usr/lib64/
> 223, in get_backend
> obj = get_backend_
> File "/usr/lib64/
> 209, in get_backend_object
> return factory(pu)
> File "/usr/lib64/
> line 166, in __init__
> self.resetConne
> File "/usr/lib64/
> line 188, in resetConnection
> self.conn = get_connection(
> self.storage_uri)
> File "/usr/lib64/
> line 99, in get_connection
> is_secure=(not globals.
> File "/usr/lib/
> in connect
> **connection_args)
> File "/usr/lib/
> 191, in __init__
> validate_
> File "/usr/lib/
> in __init__
> host, config, self.provider, self._required_
> File "/usr/lib/
> get_auth_handler
> 'Check your credentials' % (len(names), str(names)))
> NoAuthHandlerFound: No handler was ready to authenticate. 1 handlers were
> checked. ['HmacAuthV1Han
>
> 09:36:59.434 Task 'BKP' failed with exit code '30'.
>
> this is the result on the log file:
>
> Start duply v1.11.3, time is 2016-10-10 09:39:19.
> Using profile '/etc/duply/
> Using installed duplicity version 0.7.10, python 2.7.5, gpg 2.0.22 (Home:
> ~/.gnupg), awk 'GNU Awk 4.0.2', grep 'grep (GNU grep) 2.20', bash
> '4.2.46(1)-release (x86_64-
> Autoset found secret key of first GPG_KEY entry 'XXXXXXXX' for signing.
> Checking TEMP_DIR '/tmp' is a folder and writable (OK)
> Test - Encrypt to 'XXXXXXXX'
> (OK)
> Test - Decrypt (OK)
> Test - Compare (OK)
> Cleanup - Delete '/tmp/duply.
>
> --- Start running command PRE at 09:39:20.309 ---
> Running '/etc/duply/
> Output: Comenzando el respaldo de las bases de datos
> Puedes revisar el log en /root/SK-
> /tmp/skdump_
> Se respaldaron 69 Bases de datos
> --- Finished state OK at 09:39:42.424 - Runtime 00:00:22.114 ---
>
> --- Start running command BKP at 09:39:42.439 ---
> Using archive dir: /root/.
> Using backup name: duply_cpanel_s3
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Import of duplicity.
> Using temporary directory /tmp/duplicity-
> --- Finished state FAILED 'code 30' at 09:39:43.748 - Runtime 00:00:01.309
> ---
>
> --- Start running command POST at 09:39:43.773 ---
> Running '/etc/duply/
> --- Finished state OK at 09:39:43.791 - Runtime 00:00:00.018 ---
>
> The amazon S3 bucket is clean, no previous backup on it, could you help me
> please?
>
> regards
>
> --
> You received this question notification because your team duplicity-team
> is an answer contact for Duplicity.
>
> _______
> Mailing list: https:/
> Post to : <email address hidden>
> Unsubscribe : https:/
> More help : https:/
>
juniorfga (juniorfga) said : | #2 |
This are the versions of the packages
root@s1 [~]# yum install duply duplicity ncftp python-boto -y;
Loaded plugins: fastestmirror
MariaDB100 | 2.9 kB 00:00:00
base | 3.6 kB 00:00:00
epel/x86_
extras | 3.4 kB 00:00:00
updates | 3.4 kB 00:00:00
vz-base | 951 B 00:00:00
vz-updates | 951 B 00:00:00
Loading mirror speeds from cached hostfile
* base: mirror.tzulo.com
* epel: mirror.oss.ou.edu
* extras: centos.
* updates: pubmirrors.
Package duply-1.
Package duplicity-
Package 2:ncftp-
Package python-
Nothing to do
I'm using duply to run duplicity, do you need the config?
regards
juniorfga (juniorfga) said : | #3 |
Hello Keneth
the command I execute is this /usr/bin/duply cpanel_s3 backup 2>&1 >> /var/log/
do you need my duply config?
regards
edso (ed.so) said : | #4 |
hey Junior,
Kenneth probably needs the full duplicity command line. you can see it via
/usr/bin/duply cpanel_s3 backup --preview
. take care to obfuscate infos you deem private before you send it!
..ede/duply.net
On 11.10.2016 20:52, juniorfga wrote:
> Question #402905 on Duplicity changed:
> https:/
>
> juniorfga posted a new comment:
> Hello Keneth
> the command I execute is this /usr/bin/duply cpanel_s3 backup 2>&1 >> /var/log/
> do you need my duply config?
> regards
>
juniorfga (juniorfga) said : | #5 |
Thanks Ede
This is the output of the command
root@s1 [~]# /usr/bin/duply cpanel_s3 backup --preview
Start duply v1.11.3, time is 2016-10-11 16:58:40.
Using profile '/etc/duply/
Using installed duplicity version 0.7.10, python 2.7.5, gpg 2.0.22 (Home: ~/.gnupg), awk 'GNU Awk 4.0.2', grep 'grep (GNU grep) 2.20', bash '4.2.46(1)-release (x86_64-
Autoset found secret key of first GPG_KEY entry 'XXXXXX' for signing.
-- Run cmd -- Checking TEMP_DIR '/tmp' is a folder and writable --
test -d '/tmp' && test -w '/tmp' 2>&1
-- Run cmd -- Test - Encrypt to 'XXXXXX'
echo YYYYYYYYYYY | gpg --sign --default-key XXXXXX --passphrase-fd 0 --batch -r XXXXXX -r XXXXXX -r XXXXXX --status-fd 1 -o '/tmp/duply.
-- Run cmd -- Test - Decrypt --
echo YYYYYYYYYYY | gpg --passphrase-fd 0 --batch -o '/tmp/duply.
-- Run cmd -- Test - Compare --
test "$(cat '/usr/bin/duply')" = "$(cat '/tmp/duply.
Cleanup - Delete '/tmp/duply.
--- Start running command PRE at 16:58:41.169 ---
. /etc/duply/
--- Finished state OK at 16:58:41.183 - Runtime 00:00:00.013 ---
--- Start running command BKP at 16:58:41.193 ---
TMPDIR='/tmp' PASSPHRASE=
--- Finished state OK at 16:58:41.235 - Runtime 00:00:00.041 ---
--- Start running command POST at 16:58:41.246 ---
. /etc/duply/
--- Finished state OK at 16:58:41.259 - Runtime 00:00:00.013 ---
If you need anything else please don't hesitate in telling me
regards
juniorfga (juniorfga) said : | #6 |
Hello ede, keneth
could you help me please? some ideas?
regards
Take a look here: https:/
I suspect you are missing a config file for S3, or the environment vars are not set properly.
juniorfga (juniorfga) said : | #8 |
I've found the solution on this page
http://
under the "Configuring Boto Credentials" topic, it seems that Duply/Duplicity is not updating the environment variables (e.g. AWS_ACCESS_KEY_ID, AWS_SECRET_
[Credentials]
aws_access_key_id = YOURACCESSKEY
aws_secret_
and it start working
edso (ed.so) said : | #9 |
On 01.11.2016 13:38, juniorfga wrote:
> Question #402905 on Duplicity changed:
> https:/
>
> Status: Open => Solved
>
> juniorfga confirmed that the question is solved:
> I've found the solution on this page
>
> http://
>
> under the "Configuring Boto Credentials" topic, it seems that
> Duply/Duplicity is not updating the environment variables (e.g.
> AWS_ACCESS_KEY_ID, AWS_SECRET_
> AWS_PROFILE). so I've created a ~/.boto file with these contents:
>
> [Credentials]
> aws_access_key_id = YOURACCESSKEY
> aws_secret_
>
> and it start working
>
Junior,
why would you expect duply/duplicity to generate the file for you?
the boto backend sources say
"""
Backend for Amazon's Simple Storage System, (aka Amazon S3), though
the use of the boto module, (http://
To make use of this backend you must set aws_access_key_id
and aws_secret_
with your Amazon Web Services key id and secret respectively.
Alternatively you can export the environment variables
AWS_
"""
did you export the AWS_* env vars beforehand at all?
note to self: the manpage is missing the infos above about amazon s3 access auth completely. have to update manpage accordingly.
..ede/duply.net