Bug #18137
closedThe Script katello-backup reports Permission denied messages
Description
Hi!
The Script katello-backup reports Permission denied messages.
Details:
CentOS 7
Katello 3.2.2
root# rpm
katello-3.2.2-1.el7.noarch
root# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
root# /usr/bin/katello-backup --online-backup --skip-pulp-content /data/backup/katellobackup ; echo $?
Starting backup: 2017-01-18 16:34:09 +0100
Creating backup folder /data/backup/katellobackup/katello-backup-2017-01-18T16:34:09+01:00
Backing up config files...
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
Done.
Backing up postgres db...
-bash: /data/backup/katellobackup/katello-backup-2017-01-18T16:34:09+01:00/foreman.dump: Permission denied
-bash: /data/backup/katellobackup/katello-backup-2017-01-18T16:34:09+01:00/candlepin.dump: Permission denied
Done.
Backing up mongo db...
Done.
Done with backup: 2017-01-18 16:47:29 +0100
- BACKUP Complete, contents can be found in: /data/backup/katellobackup/katello-backup-2017-01-18T16:34:09+01:00 **
0
root#
sincerely yours
Mario
Updated by Mario K almost 8 years ago
- Subject changed from Permission denied Permission denied to The Script katello-backup reports Permission denied messages
Updated by Eric Helms almost 8 years ago
- Status changed from New to Assigned
- Assignee set to Christine Fouant
Updated by Eric Helms almost 8 years ago
- Translation missing: en.field_release set to 211
Updated by Christine Fouant almost 8 years ago
- Status changed from Assigned to Closed
I am unable to reproduce this. If you feel that this has been closed in error, or you have additional details, please comment below. Thanks!
[root@centos7-katello-3-2 vagrant]# cat /etc/centos-release
CentOS Linux release 7.3.1611 (Core)
[root@centos7-katello-3-2 vagrant]# rpm qa | grep '^katello[0-9]'
katello-3.2.2-1.el7.noarch
Starting backup: 2017-03-01 19:59:23 +0000
Creating backup folder /tmp/backup/katello-backup-2017-03-01T19:59:23+00:00
Backing up config files...
tar: /etc/puppet: Cannot stat: No such file or directory
tar: /var/lib/puppet/foreman_cache_data: Cannot stat: No such file or directory
tar: /var/lib/puppet/ssl: Cannot stat: No such file or directory
tar: Removing leading `/' from member names
tar: /etc/puppet: Cannot stat: No such file or directory
tar: /var/lib/puppet/foreman_cache_data: Cannot stat: No such file or directory
tar: /var/lib/puppet/ssl: Cannot stat: No such file or directory
tar: Removing leading `/' from hard link targets
tar: Exiting with failure status due to previous errors
Done.
Backing up postgres db...
Done.
Backing up mongo db...
Done.
Done with backup: 2017-03-01 19:59:24 +0000
- BACKUP Complete, contents can be found in: /tmp/backup/katello-backup-2017-03-01T19:59:23+00:00 **
0
[root@centos7-katello-3-2 vagrant]# ls al /tmp/backup/katello-backup-2017-03-01T19\:59\:23+00\:00/. 3 root postgres 4096 Mar 1 19:59 .
total 1292
drwxrwx--
drwxr-xr-x. 3 root root 53 Mar 1 19:59 ..rw-r--r-. 1 postgres postgres 182460 Mar 1 19:59 candlepin.dumprw-r--r-. 1 root root 570579 Mar 1 19:59 config_files.tar.gzrw-r--r-. 1 root root 14156 Mar 1 19:59 .config.snarrw-r--r-. 1 postgres postgres 544073 Mar 1 19:59 foreman.dump
drwxr-xr-x. 4 root root 38 Mar 1 19:59 mongo_dump