Project

General

Profile

Bug #18334

katello-backup fails when called from cron

Added by Christine Fouant over 5 years ago. Updated almost 4 years ago.

Status:
Rejected
Priority:
High
Assignee:
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Bugzilla link:
Pull request:
Fixed in Releases:
Found in Releases:
Red Hat JIRA:

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`

History

#1 Updated by Christine Fouant over 5 years ago

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

#2 Updated by Eric Helms about 5 years ago

  • Project changed from Packaging to Katello

#3 Updated by Justin Sherrill about 5 years ago

  • Category set to Backup & Restore
  • Legacy Backlogs Release (now unused) set to 114

#4 Updated by Justin Sherrill about 5 years ago

  • Assignee changed from Christine Fouant to Andrew Kofink
  • Priority changed from Normal to High
  • Target version set to 178
  • Legacy Backlogs Release (now unused) changed from 114 to 211

#5 Updated by Andrew Kofink about 5 years ago

  • Status changed from New to Rejected
  • Legacy Backlogs Release (now unused) changed from 211 to 166

Also available in: Atom PDF