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 about 7 years ago. Updated almost 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 #1

Updated by The Foreman Bot about 7 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/Katello/katello-packaging/pull/427 added
Actions #2

Updated by John Mitsch almost 7 years ago

  • translation missing: en.field_release set to 211
Actions #3

Updated by Justin Sherrill almost 7 years ago

  • translation missing: en.field_release changed from 211 to 228
Actions #4

Updated by Eric Helms almost 7 years ago

  • translation missing: en.field_release changed from 228 to 258
Actions #5

Updated by John Mitsch almost 7 years ago

We've agreed to fix this in the spec file by adding these scripts to /usr/sbin

Actions #6

Updated by Eric Helms almost 7 years ago

  • translation missing: en.field_release changed from 258 to 267
Actions #7

Updated by Eric Helms almost 7 years ago

  • Status changed from Ready For Testing to Assigned
  • Pull request deleted (https://github.com/Katello/katello-packaging/pull/427)
Actions #8

Updated by Justin Sherrill almost 7 years ago

  • translation missing: en.field_release changed from 267 to 281
Actions #9

Updated by The Foreman Bot over 6 years ago

  • Status changed from Assigned to Ready For Testing
  • Assignee set to John Mitsch
  • Pull request https://github.com/Katello/katello-packaging/pull/488 added
Actions #10

Updated by John Mitsch over 6 years ago

  • Status changed from Ready For Testing to Closed
  • % Done changed from 0 to 100
Actions #11

Updated by Brad Buckingham over 6 years ago

  • Target version set to 205
Actions

Also available in: Atom PDF