Satellite-installer fails with error Execution of '/usr/share/candlepin/cpdb --create --schema-only --dbhost=localhost --dbport=5432 --database=candlepin --user=candlepin --password=xxxxxx' on disconnected Red Hat Satellite 6.

Solution Verified - Updated -

Issue

  • Satellite installation fails with the below error on the disconnected Red Hat Satellite 6.

    # satellite-installer --scenario satellite \
    > --foreman-initial-organization "Organization" \
    > --foreman-initial-location "Location" \
    > --foreman-initial-admin-username username \
    > --foreman-initial-admin-password xyzpqr
    2024-04-24 06:31:10 [ERROR ] [configure] Execution of '/usr/share/candlepin/cpdb --create --schema-only -- 
    dbhost=localhost --dbport=5432 --database=candlepin --user=candlepin --password=FHBcAiKPmzg6jSiEE3kGdPf9cxhMrPXZ' 
    returned 1: ########## ERROR ############
    2024-04-24 06:31:10 [ERROR ] [configure] Error running command: /usr/share/candlepin/liquibase.sh -- 
    driver=org.postgresql.Driver --classpath=/var/lib/tomcat/webapps/candlepin/WEB-INF/lib/postgresql- 
    42.6.0.jar:/var/lib/tomcat/webapps/candlepin/WEB-INF/classes/ --changelog-file=db/changelog/changelog-create.xml 
    --url="jdbc:postgresql://localhost:5432/candlepin" --username=$DBUSERNAME             --headless=true --hub- 
    mode=OFF --password=$DBPASSWORD --log-level=severe update -Dcommunity=False
    2024-04-24 06:31:10 [ERROR ] [configure] Status code: 1
    

Environment

  • Red Hat Satellite 6

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