[MCOL-2188] non-root columnstoreBackup requires root ssh-keys - Problem for certain users Created: 2019-02-21  Updated: 2023-10-26  Resolved: 2019-02-22

Status: Closed
Project: MariaDB ColumnStore
Component/s: None
Affects Version/s: 1.1.6
Fix Version/s: 1.1.7

Type: New Feature Priority: Major
Reporter: David Hill (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Environment:

non-root single-server


Issue Links:
Relates
relates to MCOL-1584 columnstoreBackup/Restore should not ... Closed
relates to MCOL-2030 backup fails if remote host not in kn... Closed
relates to MCOL-2031 columnstoreBackup fails silently if n... Closed
relates to MCOL-2032 columnstore backup / restore do not n... Closed

 Description   

Reported by a customer..

We have done non root installation of MariaDB 1.1.6 ( user: mariabkp) , we want to take backup using script "columnstoreBackup"
We have generated ssh keys for password less login for user "mariabkp"

When we take backup using below command, it fails with error -

./columnstoreBackup -zv localhost /db-poc/mariadb_official_bkp/columnstoreBackupData
[2019-02-21 14:50:26] ERROR: This script must be run as root or with sudo
[2019-02-21 14:50:26] Backup Status: Failed

It seems even though installation is done as non root user it still requires sudo permission + password less ssh keys for "root"

After providing sudo permission to user mariabkp and generating passsword less ssh keys for "root" backup command works as below -

sudo ./columnstoreBackup -zv localhost /db-poc/mariadb_official_bkp/columnstoreBackupData

Our concern is we can't provide password less ssh authentication to "root" user.
That is the reason we have done non root installation.

Kindly let us know how to take backup for a non root installation without generating password less ssh authentication for "root" user.

I reproduced the same issue

sudo ./columnstoreBackup -zv localhost /mnt
[2019-02-21 15:44:21] [root] ./columnstoreBackup -zv localhost /mnt
[2019-02-21 15:44:21] ERROR: Cannot connect to root@localhost
[2019-02-21 15:44:21] Check that ssh and passwordless login are available.
[2019-02-21 15:44:21] Backup Status: Failed
[2019-02-21 15:44:21] Runtime: 00:00:00

Need to be able to do non-root ColumnStore backup without requiring root user ssh-keys. This is not possible for certain customers.



 Comments   
Comment by David Hill (Inactive) [ 2019-02-22 ]

MCOL-1584

Generated at Thu Feb 08 02:34:23 UTC 2024 using Jira 8.20.16#820016-sha1:9d11dbea5f4be3d4cc21f03a88dd11d8c8687422.