Project

General

Profile

Actions

Bug #22551

closed

sudo requires a tty while running katello-backup from cron

Added by Evgeni Golov about 6 years ago. Updated over 5 years ago.

Status:
Closed
Priority:
Normal
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=1540382

Description of problem:
If you run katello-backup from cron then it fails with

'sorry, you must have a tty to run sudo'

Version-Release number of selected component (if applicable):
Satellite 6.2.13

How reproducible:
100%

Steps to Reproduce:

Put this line to crontab

33 15 * * * root /usr/bin/katello-backup /var/sat-content --online-backup --skip-pulp-content >> /var/log/satellite/backups.log 2>&1

Actual results:
Starting backup: 2018-01-27 15:33:02 +1100
Creating backup folder /var/sat-content/katello-backup-20180127153302
sudo: sorry, you must have a tty to run sudo
*cancelled*

Expected results:
Completed backup

Actions #1

Updated by Evgeni Golov about 6 years ago

  • Subject changed from sudo requires a tty while running katello-backup from cron to sudo requires a tty while running katello-backup from cron
  • Assignee changed from Christine Fouant to Evgeni Golov
Actions #2

Updated by The Foreman Bot about 6 years ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/foreman-packaging/pull/2194 added
Actions #3

Updated by Justin Sherrill about 6 years ago

  • translation missing: en.field_release set to 338
Actions #4

Updated by Evgeni Golov almost 6 years ago

  • Status changed from Ready For Testing to Closed

Closing as the PR has been merged

Actions

Also available in: Atom PDF