Project

General

Profile

Actions

Bug #18334

closed

katello-backup fails when called from cron

Added by Christine Fouant about 7 years ago. Updated almost 6 years ago.

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

Description

Cloned from https://bugzilla.redhat.com/show_bug.cgi?id=1330757

Description of problem:
katello-backup fails when called from within a wrapper script triggered by cron

Version-Release number of selected component (if applicable):
katello-common-2.2.0.19-1.el7sat

How reproducible:
Every single time

Steps to Reproduce:
1. katello-backup fails when called from within a wrapper script triggered by cron

Actual results:
The "service" alias doesn't work when attempting to stop the postgresql service. Instead of a backup being created the script fails with the following error:

/usr/bin/katello-backup:25:in ``': No such file or directory - service pos
tgresql stop (Errno::ENOENT)
from /usr/bin/katello-backup.small:25:in `<main>'

Expected results:
Execute katello-backup without error resulting in a satellite backup

Additional info:

Line 25 of /usr/share/katello/script/katello-backup :

`service postgresql stop`
Actions #1

Updated by Christine Fouant about 7 years ago

  • Project changed from Katello to Packaging
  • Category deleted (Backup & Restore)
Actions #2

Updated by Eric Helms about 7 years ago

  • Project changed from Packaging to Katello
Actions #3

Updated by Justin Sherrill about 7 years ago

  • Category set to Backup & Restore
  • translation missing: en.field_release set to 114
Actions #4

Updated by Justin Sherrill about 7 years ago

  • Assignee changed from Christine Fouant to Andrew Kofink
  • Priority changed from Normal to High
  • Target version set to 178
  • translation missing: en.field_release changed from 114 to 211
Actions #5

Updated by Andrew Kofink about 7 years ago

  • Status changed from New to Rejected
  • translation missing: en.field_release changed from 211 to 166
Actions

Also available in: Atom PDF