Failed to execute stage 'Environment setup': Cannot connect to Engine database using existing credentials: engine@localhost:5432
Issue
- engine-setup failed with the following error message while trying to install the rhevm-report:
2014-09-21 10:46:34 DEBUG otopi.ovirt_engine_setup.database database.execute:172 Creating own connection
2014-09-21 10:46:34 DEBUG otopi.ovirt_engine_setup.database database.tryDatabaseConnect:441 Connection failed
Traceback (most recent call last):
File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/database.py", line 437, in tryDatabaseConnect
transaction=False,
File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/database.py", line 181, in execute
database=database,
File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/database.py", line 115, in connect
sslmode=sslmode,
OperationalError: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
2014-09-21 10:46:34 DEBUG otopi.plugins.ovirt_engine_common.base.db.connection connection._setup:143 Existing credential use failed
Traceback (most recent call last):
File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/base/db/connection.py", line 135, in _setup
dbovirtutils.tryDatabaseConnect(dbenv)
File "/usr/share/ovirt-engine/setup/ovirt_engine_setup/database.py", line 444, in tryDatabaseConnect
error=e,
RuntimeError: Cannot connect to database: could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
could not connect to server: Connection refused
Is the server running on host "localhost" and accepting
TCP/IP connections on port 5432?
2014-09-21 10:46:34 DEBUG otopi.context context._executeMethod:152 method exception
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/otopi/context.py", line 142, in _executeMethod
method['method']()
File "/usr/share/ovirt-engine/setup/bin/../plugins/ovirt-engine-common/base/db/connection.py", line 159, in _setup
raise RuntimeError(msg)
RuntimeError: Cannot connect to Engine database using existing credentials: engine@localhost:5432
2014-09-21 10:46:34 ERROR otopi.context context._executeMethod:161 Failed to execute stage 'Environment setup': Cannot connect to Engine database using existing credentials: engine@localhost:5432
2014-09-21 10:46:34 DEBUG otopi.context context.dumpEnvironment:468 ENVIRONMENT DUMP - BEGIN
2014-09-21 10:46:34 DEBUG otopi.context context.dumpEnvironment:478 ENV BASE/error=bool:'True'
2014-09-21 10:46:34 DEBUG otopi.context context.dumpEnvironment:478 ENV BASE/exceptionInfo=list:'[(<type 'exceptions.RuntimeError'>, RuntimeError('Cannot connect to Engine database using existing credentials: engine@localhost:5432',), <traceback object at 0x2bd67e8>)]'
Environment
- Red Hat Enterprise Virtualization 3.4
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.