Restoring Red Hat Satellite Server from existing backup fails with permission error

Solution Verified - Updated -

Issue

  • Restoring backup of Red Hat Satellite server fails with below error:

    # satellite-maintain restore /var/backup_directory
    Restore candlepin postgresql dump from backup: 
    \ Restoring candlepin dump                                            [FAIL]    
    Failed executing runuser - postgres -c 'pg_restore -C -d postgres /var/satellite-backup-path/candlepin.dump', exit status 1:
    pg_restore: '[archiver]' could not open input file "/var/satellite-backup-path/candlepin.dump": Permission denied
    
    Scenario [Restore backup] failed.
    
    The following steps ended up in failing state:
    
     [restore-candlepin-dump]
    
    Resolve the failed steps and rerun
    the command. In case the failures are false positives,
    use --whitelist="restore-candlepin-dump"
    

Environment

  • Red Hat Satellite 6.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content