Help, this happens when I click the home directory

Odd Error in OwnCloud, this seems to happen when I click the Home Directory

Exception occurred while logging exception: Failed to connect to the database: An exception occured in driver: SQLSTATE[HY000] [2002] Connection refused
#0 /opt/bitnami/apps/owncloud/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(429): OC\DB\Connection->connect()
#1 /opt/bitnami/apps/owncloud/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(389): Doctrine\DBAL\Connection->getDatabasePlatformVersion()
#2 /opt/bitnami/apps/owncloud/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(328): Doctrine\DBAL\Connection->detectDatabasePlatform()
#3 /opt/bitnami/apps/owncloud/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/Connection.php(623): Doctrine\DBAL\Connection->getDatabasePlatform()
#4 /opt/bitnami/apps/owncloud/htdocs/lib/private/DB/Connection.php(146): Doctrine\DBAL\Connection->setTransactionIsolation(2)
#5 /opt/bitnami/apps/owncloud/htdocs/lib/composer/doctrine/dbal/lib/Doctrine/DBAL/DriverManager.php(172): OC\DB\Connection->__construct(Array, Object(Doctrine\DBAL\Driver\PDOMySql\Driver), Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#6 /opt/bitnami/apps/owncloud/htdocs/lib/private/DB/ConnectionFactory.php(138): Doctrine\DBAL\DriverManager::getConnection(Array, Object(Doctrine\DBAL\Configuration), Object(Doctrine\Common\EventManager))
#7 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(464): OC\DB\ConnectionFactory->getConnection(‘mysql’, Array)
#8 /opt/bitnami/apps/owncloud/htdocs/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#9 /opt/bitnami/apps/owncloud/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘DatabaseConnect…’)
#10 /opt/bitnami/apps/owncloud/htdocs/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘DatabaseConnect…’)
#11 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(1111): OC\ServerContainer->query(‘DatabaseConnect…’)
#12 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(225): OC\Server->getDatabaseConnection()
#13 /opt/bitnami/apps/owncloud/htdocs/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#14 /opt/bitnami/apps/owncloud/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘AccountMapper’)
#15 /opt/bitnami/apps/owncloud/htdocs/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘AccountMapper’)
#16 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(963): OC\ServerContainer->query(‘AccountMapper’)
#17 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(230): OC\Server->getAccountMapper()
#18 /opt/bitnami/apps/owncloud/htdocs/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#19 /opt/bitnami/apps/owncloud/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘UserManager’)
#20 /opt/bitnami/apps/owncloud/htdocs/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘UserManager’)
#21 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(956): OC\ServerContainer->query(‘UserManager’)
#22 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(270): OC\Server->getUserManager()
#23 /opt/bitnami/apps/owncloud/htdocs/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#24 /opt/bitnami/apps/owncloud/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘UserSession’)
#25 /opt/bitnami/apps/owncloud/htdocs/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘UserSession’)
#26 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(980): OC\ServerContainer->query(‘UserSession’)
#27 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(510): OC\Server->getUserSession()
#28 /opt/bitnami/apps/owncloud/htdocs/lib/composer/pimple/pimple/src/Pimple/Container.php(113): OC\Server->OC{closure}(Object(OC\Server))
#29 /opt/bitnami/apps/owncloud/htdocs/lib/private/AppFramework/Utility/SimpleContainer.php(111): Pimple\Container->offsetGet(‘AppManager’)
#30 /opt/bitnami/apps/owncloud/htdocs/lib/private/ServerContainer.php(87): OC\AppFramework\Utility\SimpleContainer->query(‘AppManager’)
#31 /opt/bitnami/apps/owncloud/htdocs/lib/private/Server.php(1298): OC\ServerContainer->query(‘AppManager’)
#32 /opt/bitnami/apps/owncloud/htdocs/lib/private/legacy/app.php(313): OC\Server->getAppManager()
#33 /opt/bitnami/apps/owncloud/htdocs/lib/private/legacy/app.php(107): OC_App::getEnabledApps()
#34 /opt/bitnami/apps/owncloud/htdocs/lib/base.php(579): OC_App::loadApps(Array)
#35 /opt/bitnami/apps/owncloud/htdocs/lib/base.php(1003): OC::init()
#36 /opt/bitnami/apps/owncloud/htdocs/index.php(47): require_once(’/opt/bitnami/ap…’)
#37 {main}

Hi,

Could you please provide us with a little more information?

  • Are you using this application in the cloud ( such as AWS, Google, Azure, etc;) a native installer (such as Windows, Linux, etc.) or a Virtual Machine?
  • Which exact version of the application are you using?
  • Have you installed any plugins or modified any configuration files?

It seems like a problem connecting to the database. It happens just clicking the home directory or it happens in more cases.

Best regards,
Silvio Fernández

It was a module on google cloud on LAMP. I’m actually, going to just install it as a standalone.

Hi,

Unfortunately, we were not able to reproduce the issue. Please let us know if all works fine in your new standalone deploy.

Best regards,
Silvio Fernández

Okay thanks. It was on Google Cloud. It only happened when I clicked home when I was in a shared folder from somebody else.

Reinstalled module and works fine. Not sure what happened initially.

Hi,

We are glad that you were able to fix the issue.

If you have any other question and you think we can help, please don’t hesitate to ask.

Best regards,
Silvio Fernández