Project

General

Profile

Actions

Bug #22551

closed

sudo requires a tty while running katello-backup from cron

Added by Evgeni Golov over 6 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

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

Also available in: Atom PDF