Actions
Bug #17834
closedsupport running candlepin database on a seperate host
Description
I migrated my postgres db off of the main server and updated all the necessary configs, however it appears that cpdb does not read from /etc/candlepin/candlepin.conf. Therefore to run this step I had to run
/usr/share/candlepin/cpdb --update --password <pass> -d"//<myhost>:5432/candlepin"
Upgrade Step: migrate_candlepin... ########## 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=<redacted> migrate -Dcommunity=False Status code: 65280 Command output: Liquibase update Failed: liquibase.exception.DatabaseException: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections. 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 Upgrade step migrate_candlepin failed. Check logs for more information.
Actions