Actions
Bug #19281
closedWhile running online backup tasks as a root user via cron fails with error " sh: runuser: command not found "
Status:
Closed
Priority:
Normal
Assignee:
Category:
Backup & Restore
Target version:
Difficulty:
Triaged:
Bugzilla link:
Description
Description of problem:
Online backup does not work via cronjob.
Backup log:
Creating backup folder /shared/data/satellite-backup/Backing up config files...
tar: Removing leading `/' from member names
Done.
Backing up postgres db...
sh: runuser: command not found
sh: runuser: command not found
Done.
Backing up mongo db...
Done.
Backing up Pulp data...
tar: Removing leading `/' from member names
Done.
- BACKUP Complete, contents can be found in: /shared/data/satellite-backup/ **
Steps to Reproduce:
1. Setup a cronjob for online backup using below steps:
As a root user
- crontab -e
Add the cron entry as below:
00 23 * * * /usr/bin/katello-backup --online-backup /backup/ >> /backup/backup.log 2>&1
2. Monitor the backup.log file.
Actual results:
While backing up foreman and candlepin database fail with errors:
Backing up postgres db...
sh: runuser: command not found
sh: runuser: command not found
Done.
Expected results:
The katello-backup script should work via cron job too.
Updated by The Foreman Bot over 7 years ago
- Status changed from New to Ready For Testing
- Pull request https://github.com/Katello/katello-packaging/pull/427 added
Updated by John Mitsch over 7 years ago
- Translation missing: en.field_release set to 211
Updated by Justin Sherrill over 7 years ago
- Translation missing: en.field_release changed from 211 to 228
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 228 to 258
Updated by John Mitsch over 7 years ago
We've agreed to fix this in the spec file by adding these scripts to /usr/sbin
Updated by Eric Helms over 7 years ago
- Translation missing: en.field_release changed from 258 to 267
Updated by Eric Helms over 7 years ago
- Status changed from Ready For Testing to Assigned
- Pull request deleted (
https://github.com/Katello/katello-packaging/pull/427)
Updated by Justin Sherrill over 7 years ago
- Translation missing: en.field_release changed from 267 to 281
Updated by The Foreman Bot over 7 years ago
- Status changed from Assigned to Ready For Testing
- Assignee set to John Mitsch
- Pull request https://github.com/Katello/katello-packaging/pull/488 added
Updated by John Mitsch over 7 years ago
- Status changed from Ready For Testing to Closed
- % Done changed from 0 to 100
Applied in changeset katello-packaging|afcd91670f9a11debb85dca3e2258559787cdc57.
Actions