Project

General

Profile

Actions

Bug #19281

closed

While running online backup tasks as a root user via cron fails with error " sh: runuser: command not found "

Added by Ashish Humbe over 7 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Fixed in Releases:
Found in Releases:

Description

Description of problem:

Online backup does not work via cronjob.

Backup log:

Creating backup folder /shared/data/satellite-backup/
Backing up config files...
tar: Removing leading `/' from member names
Done.
Backing up postgres db...
sh: runuser: command not found
sh: runuser: command not found
Done.
Backing up mongo db...
Done.
Backing up Pulp data...
tar: Removing leading `/' from member names
Done.
  • BACKUP Complete, contents can be found in: /shared/data/satellite-backup/ **

Steps to Reproduce:

1. Setup a cronjob for online backup using below steps:

As a root user

  1. crontab -e

Add the cron entry as below:

00 23 * * * /usr/bin/katello-backup --online-backup /backup/ >> /backup/backup.log 2>&1

2. Monitor the backup.log file.

Actual results:

While backing up foreman and candlepin database fail with errors:

Backing up postgres db...
sh: runuser: command not found
sh: runuser: command not found
Done.

Expected results:
The katello-backup script should work via cron job too.

Actions

Also available in: Atom PDF