Erreur de cron <www-data@nuage> php --define apc.enable_cli=1 -f /var/www/nuage.chalec.org/nextcloud/cron.php #69

Closed
opened 2023-10-30 14:44:03 +01:00 by neox · 1 comment
Owner

Reçu par courriel vendredi 27 octobre 2023 à 17h20 :

Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "localhost" (::1), port 5432 failed: timeout expired
connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL:  le système de bases de données se lance in /var/www/nuage.chalec.org/nextcloud/lib/private/DB/Connection.php:140
Stack trace:
#0 /var/www/nuage.chalec.org/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1531): OC\DB\Connection->connect()
#1 /var/www/nuage.chalec.org/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1029): Doctrine\DBAL\Connection->getWrappedConnection()
#2 /var/www/nuage.chalec.org/nextcloud/lib/private/DB/Connection.php(262): Doctrine\DBAL\Connection->executeQuery()
#3 /var/www/nuage.chalec.org/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\DB\Connection->executeQuery()
#4 /var/www/nuage.chalec.org/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute()
#5 /var/www/nuage.chalec.org/nextcloud/lib/private/AppConfig.php(418): OC\DB\QueryBuilder\QueryBuilder->execute()
#6 /var/www/nuage.chalec.org/nextcloud/lib/private/AppConfig.php(184): OC\AppConfig->loadConfigValues()
#7 /var/www/nuage.chalec.org/nextcloud/lib/private/AppConfig.php(374): OC\AppConfig->getApps()
#8 /var/www/nuage.chalec.org/nextcloud/lib/private/legacy/OC_App.php(803): OC\AppConfig->getValues()
#9 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(736): OC_App::getAppVersions()
#10 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#11 /var/www/nuage.chalec.org/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#12 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#13 /var/www/nuage.chalec.org/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#14 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#15 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(193): OC\AppFramework\Utility\SimpleContainer->get()
#16 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#17 /var/www/nuage.chalec.org/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#18 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#19 /var/www/nuage.chalec.org/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#20 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#21 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(1130): OC\AppFramework\Utility\SimpleContainer->get()
#22 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#23 /var/www/nuage.chalec.org/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#24 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#25 /var/www/nuage.chalec.org/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#26 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#27 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(2088): OC\AppFramework\Utility\SimpleContainer->get()
#28 /var/www/nuage.chalec.org/nextcloud/lib/private/Files/View.php(107): OC\Server->getLockingProvider()
#29 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(470): OC\Files\View->__construct()
#30 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}()
#31 /var/www/nuage.chalec.org/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}()
#32 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet()
#33 /var/www/nuage.chalec.org/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query()
#34 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query()
#35 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(1490): OC\AppFramework\Utility\SimpleContainer->get()
#36 /var/www/nuage.chalec.org/nextcloud/lib/base.php(635): OC\Server->boot()
#37 /var/www/nuage.chalec.org/nextcloud/lib/base.php(1196): OC::init()
#38 /var/www/nuage.chalec.org/nextcloud/cron.php(43): require_once('...')
#39 {main}
Reçu par courriel vendredi 27 octobre 2023 à 17h20 : ``` Doctrine\DBAL\Exception: Failed to connect to the database: An exception occurred in the driver: SQLSTATE[08006] [7] connection to server at "localhost" (::1), port 5432 failed: timeout expired connection to server at "localhost" (127.0.0.1), port 5432 failed: FATAL: le système de bases de données se lance in /var/www/nuage.chalec.org/nextcloud/lib/private/DB/Connection.php:140 Stack trace: #0 /var/www/nuage.chalec.org/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1531): OC\DB\Connection->connect() #1 /var/www/nuage.chalec.org/nextcloud/3rdparty/doctrine/dbal/src/Connection.php(1029): Doctrine\DBAL\Connection->getWrappedConnection() #2 /var/www/nuage.chalec.org/nextcloud/lib/private/DB/Connection.php(262): Doctrine\DBAL\Connection->executeQuery() #3 /var/www/nuage.chalec.org/nextcloud/3rdparty/doctrine/dbal/src/Query/QueryBuilder.php(345): OC\DB\Connection->executeQuery() #4 /var/www/nuage.chalec.org/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php(280): Doctrine\DBAL\Query\QueryBuilder->execute() #5 /var/www/nuage.chalec.org/nextcloud/lib/private/AppConfig.php(418): OC\DB\QueryBuilder\QueryBuilder->execute() #6 /var/www/nuage.chalec.org/nextcloud/lib/private/AppConfig.php(184): OC\AppConfig->loadConfigValues() #7 /var/www/nuage.chalec.org/nextcloud/lib/private/AppConfig.php(374): OC\AppConfig->getApps() #8 /var/www/nuage.chalec.org/nextcloud/lib/private/legacy/OC_App.php(803): OC\AppConfig->getValues() #9 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(736): OC_App::getAppVersions() #10 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}() #11 /var/www/nuage.chalec.org/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #12 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet() #13 /var/www/nuage.chalec.org/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query() #14 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query() #15 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(193): OC\AppFramework\Utility\SimpleContainer->get() #16 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #17 /var/www/nuage.chalec.org/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(118): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #18 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet() #19 /var/www/nuage.chalec.org/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query() #20 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query() #21 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(1130): OC\AppFramework\Utility\SimpleContainer->get() #22 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}() #23 /var/www/nuage.chalec.org/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #24 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet() #25 /var/www/nuage.chalec.org/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query() #26 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query() #27 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(2088): OC\AppFramework\Utility\SimpleContainer->get() #28 /var/www/nuage.chalec.org/nextcloud/lib/private/Files/View.php(107): OC\Server->getLockingProvider() #29 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(470): OC\Files\View->__construct() #30 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(171): OC\Server->OC\{closure}() #31 /var/www/nuage.chalec.org/nextcloud/3rdparty/pimple/pimple/src/Pimple/Container.php(122): OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}() #32 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(138): Pimple\Container->offsetGet() #33 /var/www/nuage.chalec.org/nextcloud/lib/private/ServerContainer.php(171): OC\AppFramework\Utility\SimpleContainer->query() #34 /var/www/nuage.chalec.org/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php(65): OC\ServerContainer->query() #35 /var/www/nuage.chalec.org/nextcloud/lib/private/Server.php(1490): OC\AppFramework\Utility\SimpleContainer->get() #36 /var/www/nuage.chalec.org/nextcloud/lib/base.php(635): OC\Server->boot() #37 /var/www/nuage.chalec.org/nextcloud/lib/base.php(1196): OC::init() #38 /var/www/nuage.chalec.org/nextcloud/cron.php(43): require_once('...') #39 {main} ```
lpoujoulat was assigned by neox 2023-10-30 14:44:03 +01:00
Member

Les logs indiquent que le cron a été déclenché au démarrage de la VM avant que postgresql ne soit lui-même lancé. Le script nextcloud associé au cron n'a donc pas réussi à se connecter et a donc échoué.

Ce n'est donc pas un bug, ni une situation anormale.
Ticket rejeté.

Les logs indiquent que le cron a été déclenché au démarrage de la VM avant que postgresql ne soit lui-même lancé. Le script nextcloud associé au cron n'a donc pas réussi à se connecter et a donc échoué. Ce n'est donc pas un bug, ni une situation anormale. Ticket rejeté.
lpoujoulat added the
rejeté
label 2023-10-30 20:43:09 +01:00
neox closed this issue 2023-11-15 21:47:13 +01:00
neox removed the
rejeté
label 2023-11-15 21:47:19 +01:00
Sign in to join this conversation.
No description provided.