Project

General

Profile

Bug #22551

sudo requires a tty while running katello-backup from cron

Added by Evgeni Golov over 3 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Bugzilla link:
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

History

#1 Updated by Evgeni Golov over 3 years ago

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

#2 Updated by The Foreman Bot over 3 years ago

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

#3 Updated by Justin Sherrill over 3 years ago

  • Legacy Backlogs Release (now unused) set to 338

#4 Updated by Evgeni Golov about 3 years ago

  • Status changed from Ready For Testing to Closed

Closing as the PR has been merged

Also available in: Atom PDF