[MDEV-14150] mariabackup --prepare --plugin-load=aws_key_managment crashses Created: 2017-10-26 Updated: 2018-01-22 Resolved: 2018-01-22 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | Backup |
| Affects Version/s: | 10.2.8, 10.2.9 |
| Fix Version/s: | 10.1.31, 10.2.13, 10.3.5 |
| Type: | Bug | Priority: | Major |
| Reporter: | Dave Juntgen | Assignee: | Vladislav Vaintroub |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Centos 7 |
||
| Attachments: |
|
| Sprint: | 10.0.34 |
| Description |
|
mariabackup fails during prepare and aws_key_management plugin load to decrypt data. |
| Comments |
| Comment by Vladislav Vaintroub [ 2017-10-26 ] | |||
|
you pass plugin-load=aws_key_managment on the command line? This is not necessary, mariabackup already has corresponding option in my-backup.ini | |||
| Comment by Vladislav Vaintroub [ 2017-10-26 ] | |||
|
Could you provide the full output as text file, redirecting stdout of mariabackup to a file? | |||
| Comment by Dave Juntgen [ 2017-10-26 ] | |||
|
I'm in a secure environment, copy paste isn't accessible nor can I move data files in and out. (sorry its a pain) When removing the plugin-load=aws_key_management, the following error occurs:
| |||
| Comment by Vladislav Vaintroub [ 2017-10-26 ] | |||
|
Can you prepare backup on the same machine, as the same user where you took the backup first? if the .so is there, you can edit backup-my.cnf file to switch on the AWS KMS plugin trace logging to see what happens there. | |||
| Comment by Dave Juntgen [ 2017-10-26 ] | |||
|
Using mariabackup v10.2.9
| |||
| Comment by Vladislav Vaintroub [ 2017-10-26 ] | |||
|
well, then I guess you need to examine the contents of backup-my.cnf. | |||
| Comment by Dave Juntgen [ 2017-10-27 ] | |||
|
Please see the attached crash report, I've tried several attempts.
I am unable to get any sort of reasonable output with just a simple --prepare command like such:
| |||
| Comment by Vladislav Vaintroub [ 2017-10-27 ] | |||
|
--prepare does not need user, or password, it does not contact any server.. , it does not understand --innodb-encrypt-log either, it is not a server. Kudos on getting text output. I hope now you can send also the backup-my.cnf in the backup directory, or maybe even a picture of it would also suffice | |||
| Comment by Vladislav Vaintroub [ 2017-10-27 ] | |||
|
can you try all of this without ---rsync. We did not test it here, not (I suspect) percona had. | |||
| Comment by Dave Juntgen [ 2017-10-30 ] | |||
|
Great news, removing --rsync and adding --target-dir= produced a successful backup and prepare! | |||
| Comment by Vladislav Vaintroub [ 2018-01-22 ] | |||
|
I assume it failed because mariabackup had not found rsync utility. I'll now check it earlier before starting the backup. |