Exception occurred while logging exception: Failed to connect to the database: An exception occured in driver: SQLSTATE[08006] [7] could not connect to server: Connection refused Is the server running on host "localhost" (::1) and accepting TCP/IP connections on port 5432? could not connect to server: Connection refused Is the server running on host "localhost" (127.0.0.1) and accepting TCP/IP connections on port 5432?
#0 /opt/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(992): OC\DB\Connection->connect()
#1 /opt/owncloud/lib/private/DB/Connection.php(207): Doctrine\DBAL\Connection->executeUpdate('SET SESSION CHA...', Array, Array)
#2 /opt/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): OC\DB\Connection->executeUpdate('SET SESSION CHA...')
#3 /opt/owncloud/lib/private/DB/Connection.php(144): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#4 /opt/owncloud/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOPgSql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#5 /opt/owncloud/lib/private/DB/ConnectionFactory.php(143): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /opt/owncloud/lib/private/Server.php(532): OC\DB\ConnectionFactory->getConnection('pgsql', Array)
#7 /opt/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#8 /opt/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet('DatabaseConnect...')
#9 /opt/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query('DatabaseConnect...')
#10 /opt/owncloud/lib/private/Server.php(1220): OC\ServerContainer->query('DatabaseConnect...')
#11 /opt/owncloud/lib/private/Server.php(406): OC\Server->getDatabaseConnection()
#12 /opt/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#13 /opt/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet('AppConfig')
#14 /opt/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query('AppConfig')
#15 /opt/owncloud/lib/private/Server.php(1150): OC\ServerContainer->query('AppConfig')
#16 /opt/owncloud/lib/private/Server.php(587): OC\Server->getAppConfig()
#17 /opt/owncloud/lib/composer/pimple/pimple/src/Pimple/Container.php(118): OC\Server->OC\{closure}(Object(OC\Server))
#18 /opt/owncloud/lib/private/AppFramework/Utility/SimpleContainer.php(108): Pimple\Container->offsetGet('AppManager')
#19 /opt/owncloud/lib/private/ServerContainer.php(86): OC\AppFramework\Utility\SimpleContainer->query('AppManager')
#20 /opt/owncloud/lib/private/Server.php(1418): OC\ServerContainer->query('AppManager')
#21 /opt/owncloud/lib/private/legacy/app.php(343): OC\Server->getAppManager()
#22 /opt/owncloud/lib/private/legacy/app.php(107): OC_App::getEnabledApps()
#23 /opt/owncloud/lib/base.php(585): OC_App::loadApps(Array)
#24 /opt/owncloud/lib/base.php(1005): OC::init()
#25 /opt/owncloud/index.php(53): require_once('/opt/owncloud/l...')
#26 {main}