Red Hat Satellite server update fails with `liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: FATAL: password authentication failed for user candlepin` error.

Solution Verified - Updated -

Issue

  • Updating the Red Hat Satellite server fails with the below error while performing the candlepin migration.

    [ INFO 2018-01-09 11:00:31 main] Upgrade Step: migrate_candlepin...
    [ERROR 2018-01-09 11:00:37 main] 
    ########## ERROR ############
    Error running command: liquibase --driver=org.postgresql.Driver --classpath=/usr/share/java/postgresql-jdbc.jar:/var/lib/tomcat/webapps/candlepin/WEB-INF/classes/ --changeLogFile=db/changelog/changelog-update.xml --url=jdbc:postgresql:candlepin --username=candlepin  --password=test migrate -Dcommunity=False
    Status code: 65280
    Command output: Liquibase update Failed: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: FATAL: password authentication failed for user "candlepin"
    Migrating candlepin database
    Traceback (most recent call last):
        File "/usr/share/candlepin/cpdb", line 245, in <module>
            dbsetup.update()
        File "/usr/share/candlepin/cpdb", line 69, in update
            self._run_liquibase("db/changelog/changelog-update.xml")
        File "/usr/share/candlepin/cpdb", line 92, in _run_liquibase
            self.community))
        File "/usr/share/candlepin/cpdb", line 38, in run_command
            error_out(command, status, output)
        File "/usr/share/candlepin/cpdb", line 46, in error_out
            raise Exception("Error running command")
    Exception: Error running command
    

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