Lenteur puis plantage de l'interface de jeedom

Bonjour,
Je rencontre depuis quelques temps un problème de plantage de la partie interface de jeedom.

J’ai souvent le message « Cette page ne fonctionne pas » ou « Erreur 500 » ou « Temps de réponse trop long »…

Par contre j’ai toujours accès en SSH et j’ai toujours accès aux logs si je n’ai pas fermé la page « http://192.168.X.X/index.php?v=d&p=log ».

Les logs « http.error » tournent en boucle avec le message d’erreur suivant :
« PHP Fatal error: Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18 ».

Concernant le matériel :
• Synology: DS218+
• VMM: debian-10.9.0-amd64
• HDD : 11.66 GB / 20 GB (58.31%)
• Coeurs : 2.
• RAM : 2 GB.
• PHP 7.3.27-1~deb10u1 (cli) (built: Feb 13 2021 16:31:40) ( NTS )
• mariadb Ver 15.1 Distrib 10.3.27-MariaDB, for debian-linux-gnu (x86_64) using readline 5.2
• Server version: Apache/2.4.38 (Debian) Server built: 2020-08-25T20:08:29

Action réalisées:
• Update de Jeedom Core et plugins.
• Reboot de la VM = Fonctionne un temps et le problème revient. (1 jour, 1 heure…)
• Installation d’une nouvelle VM et restauration de Jeedom = Idem.
• Installation de Jeedom sur Freebox Delta = Idem.
• Désactivation de certains plugins ou Scenario = Idem.

Recherche sur community :
o https://community.jeedom.com/t/php-fatal-error-uncaught-error-call-to-undefined-function-date-default-timezone-set/50127
o https://community.jeedom.com/t/erreur-suite-maj-ce-matin/42649

Cordialement,
Guillaume.

logs (http.error) :

Stack trace:
#0 /var/www/html/plugins/blea/core/php/jeeBlea.php(18): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:10.062437 2021] [php7:error] [pid 15982] [client #IP_RPI_BLEA#:59002] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/plugins/blea/core/php/jeeBlea.php(18): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:11.519830 2021] [php7:error] [pid 15964] [client #IP_NAS#:44614] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/plugins/camera/core/php/snapshot.php(19): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:13.195750 2021] [php7:error] [pid 15981] [client #IP_NAS#:44620] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:13.219896 2021] [php7:error] [pid 15984] [client #IP_NAS#:44622] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:13.241291 2021] [php7:error] [pid 15987] [client #IP_NAS#:44624] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:13.264713 2021] [php7:error] [pid 15985] [client #IP_NAS#:44626] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:13.287396 2021] [php7:error] [pid 15982] [client #IP_NAS#:44628] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:13.308155 2021] [php7:error] [pid 15964] [client #IP_NAS#:44630] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:13.557971 2021] [php7:error] [pid 15981] [client #IP_NAS#:44634] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan
[Mon Apr 12 16:47:13.571252 2021] [php7:error] [pid 15984] [client #IP_NAS#:44636] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/plugins/camera/core/php/snapshot.php(19): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:13.606731 2021] [php7:error] [pid 15987] [client #IP_NAS#:44638] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan
[Mon Apr 12 16:47:13.651278 2021] [php7:error] [pid 15985] [client #IP_NAS#:44640] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan
[Mon Apr 12 16:47:13.698954 2021] [php7:error] [pid 15982] [client #IP_NAS#:44642] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan
[Mon Apr 12 16:47:13.744688 2021] [php7:error] [pid 15964] [client #IP_NAS#:44644] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/core/ajax/event.ajax.php(20): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan
[Mon Apr 12 16:47:14.651601 2021] [php7:error] [pid 15981] [client #IP_NAS#:44648] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/plugins/camera/core/php/snapshot.php(19): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:15.599282 2021] [php7:error] [pid 15984] [client #IP_NAS#:44752] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/plugins/camera/core/php/snapshot.php(19): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[12-Apr-2021 16:47:15 Europe/Berlin] PHP Fatal error:  Uncaught Error: Call to undefined function file_exists() in /var/www/html/index.php:20

Stack trace:
#0 {main}
thrown in /var/www/html/index.php on line 20
[Mon Apr 12 16:47:15.955252 2021] [php7:error] [pid 15985] [client #IP_RPI_BLEA#:59004] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/plugins/blea/core/php/jeeBlea.php(18): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:15.989310 2021] [php7:error] [pid 15982] [client #IP_RPI_BLEA#:59006] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/plugins/blea/core/php/jeeBlea.php(18): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:16.067811 2021] [php7:error] [pid 15964] [client #IP_RPI_BLEA#:59008] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Stack trace:
#0 /var/www/html/plugins/blea/core/php/jeeBlea.php(18): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:17.649326 2021] [php7:error] [pid 15981] [client #IP_NAS#:44802] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18
Stack trace:
#0 /var/www/html/plugins/camera/core/php/snapshot.php(19): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18, referer: https://#EXTERNAL_JEEDOM#/index.php?v=d&p=plan&plan_id=38
[Mon Apr 12 16:47:17.911329 2021] [php7:error] [pid 15984] [client 192.168.X.X:33330] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18
Stack trace:
#0 /var/www/html/plugins/xiaomihome/core/php/jeeXiaomiHome.php(19): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:17.920058 2021] [php7:error] [pid 15987] [client 192.168.X.X:33332] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18
Stack trace:
#0 /var/www/html/plugins/xiaomihome/core/php/jeeXiaomiHome.php(19): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:17.929695 2021] [php7:error] [pid 15985] [client 192.168.X.X:33334] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18
Stack trace:
#0 /var/www/html/plugins/xiaomihome/core/php/jeeXiaomiHome.php(19): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:18.116593 2021] [php7:error] [pid 15982] [client #IP_RPI_BLEA#:59010] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18
Stack trace:
#0 /var/www/html/plugins/blea/core/php/jeeBlea.php(18): require_once()
#1 {main}
thrown in /var/www/html/core/php/core.inc.php on line 18
[Mon Apr 12 16:47:18.160319 2021] [php7:error] [pid 15964] [client #IP_RPI_BLEA#:59012] PHP Fatal error:  Uncaught Error: Call to undefined function date_default_timezone_set() in /var/www/html/core/php/core.inc.php:18

Je confirme ça m’arrive encore une fois de temps en temps et je dois restaurer à la dernière version. Généralement c’est après une mise à jour forcée du core.

Bonjour,
Merci de prendre du temps pour me répondre.
Meme apres restauration le problème de plantage de l’IHM revient.
Ce qui m’inquiète le plus c’est que je n’ai pas toujours les mêmes messages d’erreur.
Par exemple aujourd’hui j’ai beaucoup de :

[Tue Apr 13 09:43:47.207693 2021] [php7:warn] [pid 1434] [client 192.168.X.X:41164] PHP Warning:  A non-numeric value encountered in /var/www/html/vendor/symfony/expression-language/Node/BinaryNode.php on line 144

scenario_execution :

Stack trace:
#0 /var/www/html/core/class/DB.class.php(40): PDO->__construct('mysql:host=loca...', 'jeedom', '18897887b58f80e', Array)
#1 /var/www/html/core/class/DB.class.php(50): DB::initConnection()
#2 /var/www/html/core/class/DB.class.php(82): DB::getConnection()
#3 /var/www/html/core/class/config.class.php(187): DB::Prepare('SELECT `key`,`v...', Array, 1)
#4 /var/www/html/core/class/translate.class.php(34): config::byKeys(Array)
#5 /var/www/html/core/class/translate.class.php(151): translate::getConfig('language', 'fr_FR')
#6 /var/www/html/core/class/translate.class.php(75): translate::getLanguage()
#7 /var/www/html/core/class/translate.class.php(54): translate::exec('{{Chauffage}}', '/var/www/html/c...', false)
#8 /var/www/html/core/class/translate.class.php(165): translate::sentence('Chauffage', '/var/www/html/c...', false)
#9 /var/www/html/core/config/jeedom.config.php(23): __('Chauffage', '/v in /var/www/html/core/class/DB.class.php on line 40
PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /var/www/html/core/class/DB.class.php:40

http.error :

Stack trace:
#0 /var/www/html/core/class/DB.class.php(40): PDO->__construct('mysql:host=loca...', 'jeedom', '18897887b58f80e', Array)
#1 /var/www/html/core/class/DB.class.php(50): DB::initConnection()
#2 /var/www/html/core/class/DB.class.php(82): DB::getConnection()
#3 /var/www/html/core/class/config.class.php(187): DB::Prepare('SELECT `key`,`v...', Array, 1)
#4 /var/www/html/core/class/translate.class.php(34): config::byKeys(Array)
#5 /var/www/html/core/class/translate.class.php(151): translate::getConfig('language', 'fr_FR')
#6 /var/www/html/core/class/translate.class.php(75): translate::getLanguage()
#7 /var/www/html/core/class/translate.class.php(54): translate::exec('{{Chauffage}}', '/var/www/html/c...', false)
#8 /var/www/html/core/class/translate.class.php(165): translate::sentence('Chauffage', '/var/www/html/c...', false)
#9 /var/www/html/core/config/jeedom.config.php(23): __('Chauffage', '/v in /var/www/html/core/class/DB.class.php on line 40, referer: https://jeedom.guillaumebraillon.fr/index.php?v=d&p=plan&plan_id=1
[Tue Apr 13 10:14:50.924107 2021] [php7:error] [pid 2007] [client 192.168.X.XX:46092] PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /var/www/html/core/class/DB.class.php:40

logs scenario :

[2021-04-13 09:57:57][ERROR] : La dernière exécution du scénario ne s'est pas lancée. Vérifiez le log scenario_execution, ainsi que le log du scénario "Gestion Lumières".
[2021-04-13 09:58:53][ERROR] : La dernière exécution du scénario ne s'est pas lancée. Vérifiez le log scenario_execution, ainsi que le log du scénario "Fenêtres Salon".

Je ne parviens pas à identifier la source du problème.
J’ai modifié le répétition à « Jamais ».
J’ai modifié le max_connections dans /etc/mysql/my.cnf à max_connections = 45.

Si je force un update du core j’ai :

[START UPDATE]
PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /var/www/html/core/class/DB.class.php:40
Stack trace:
#0 /var/www/html/core/class/DB.class.php(40): PDO->__construct('mysql:host=loca', 'jeedom', '18897887b58f80e', Array)
#1 /var/www/html/core/class/DB.class.php(50): DB::initConnection()
#2 /var/www/html/core/class/DB.class.php(82): DB::getConnection()
#3 /var/www/html/core/class/config.class.php(187): DB::Prepare('SELECT `key`,`v', Array, 1)
#4 /var/www/html/core/class/translate.class.php(34): config::byKeys(Array)
#5 /var/www/html/core/class/translate.class.php(151): translate::getConfig('language', 'fr_FR')
#6 /var/www/html/core/class/translate.class.php(75): translate::getLanguage()
#7 /var/www/html/core/class/translate.class.php(54): translate::exec('{{Chauffage}}', '/var/www/html/c', false)
#8 /var/www/html/core/class/translate.class.php(165): translate::sentence('Chauffage', '/var/www/html/c', false)
#9 /var/www/html/core/config/jeedom.config.php(23): __('Chauffage', '/v in /var/www/html/core/class/DB.class.php on line 40
Error during update : SQLSTATE[HY000] [1040] Too many connectionsDetails : Array
(
[0] => Array
(
[file] => /var/www/html/core/class/DB.class.php
[line] => 40
[function] => __construct
[class] => PDO
[type] => ->
[args] => Array
(
[0] => mysql:host=localhost;port=3306;dbname=jeedom
[1] => jeedom
[2] => #MOTDEPASSESQL#
[3] => Array
(
[1002] => SET NAMES utf8mb4 COLLATE utf8mb4_unicode_ci
[12] => 1
)
)
)
[1] => Array
(
[file] => /var/www/html/core/class/DB.class.php
[line] => 50
[function] => initConnection
[class] => DB
[type] => ::
[args] => Array
(
)
)
[2] => Array
(
[file] => /var/www/html/core/class/DB.class.php
[line] => 82
[function] => getConnection
[class] => DB
[type] => ::
[args] => Array
(
)
)
[3] => Array
(
[file] => /var/www/html/core/class/config.class.php
[line] => 187
[function] => Prepare
[class] => DB
[type] => ::
[args] => Array
(
[0] => SELECT `key`,`value`
FROM config
WHERE `key` IN ('language')
AND plugin=:plugin
[1] => Array
(
[plugin] => core
)
[2] => 1
)
)
[4] => Array
(
[file] => /var/www/html/core/class/translate.class.php
[line] => 34
[function] => byKeys
[class] => config
[type] => ::
[args] => Array
(
[0] => Array
(
[0] => language
)
)
)
[5] => Array
(
[file] => /var/www/html/core/class/translate.class.php
[line] => 151
[function] => getConfig
[class] => translate
[type] => ::
[args] => Array
(
[0] => language
[1] => fr_FR
)
)
[6] => Array
(
[file] => /var/www/html/core/class/translate.class.php
[line] => 75
[function] => getLanguage
[class] => translate
[type] => ::
[args] => Array
(
)
)
[7] => Array
(
[file] => /var/www/html/core/class/translate.class.php
[line] => 54
[function] => exec
[class] => translate
[type] => ::
[args] => Array
(
[0] => {{Chauffage}}
[1] => /var/www/html/core/config/jeedom.config.php
[2] =>
)
)
[8] => Array
(
[file] => /var/www/html/core/class/translate.class.php
[line] => 165
[function] => sentence
[class] => translate
[type] => ::
[args] => Array
(
[0] => Chauffage
[1] => /var/www/html/core/config/jeedom.config.php
[2] =>
)
)
[9] => Array
(
[file] => /var/www/html/core/config/jeedom.config.php
[line] => 23
[function] => __
[args] => Array
(
[0] => Chauffage
[1] => /var/www/html/core/config/jeedom.config.php
)
)
[10] => Array
(
[file] => /var/www/html/core/php/utils.inc.php
[line] => 70
[args] => Array
(
[0] => /var/www/html/core/config/jeedom.config.php
)
[function] => require_once
)
[11] => Array
(
[file] => /var/www/html/core/php/core.inc.php
[line] => 27
[function] => include_file
[args] => Array
(
[0] => core/config
[1] => jeedom.config.php
[2] => config
)
)
[12] => Array
(
[file] => /var/www/html/install/update.php
[line] => 32
[args] => Array
(
[0] => /var/www/html/core/php/core.inc.php
)
[function] => require_once
)
)
[END UPDATE ERROR]

Bizarrerie, je n’ai pas de gestion de chauffage dans Jeedom.

Je vais devoir désinstaller les plugins les uns après les autres pour voir quand les plantages s’arrêtent.
Mais j’ai peur que se soit un problème de core, pas un bug mais une config ou une mise a jour qui met le bousin.
Je partirais bien d’un jeedom propre sans restauration mais je perdrais mes virtuels et mes designs, des heures de travail…

Si vous avez des idées ou pistes de recherche je suis ouvert a toutes propositions.

Apparement je ne suis pas le seul :slight_smile:

Non je n’en ai pas, j’ai le même problème (le premier) que vous de temps en temps, mais jusqu’ici la restauration me permet de tenir jusqu’au prochain

Bonjour,
Pour ce message "SQLSTATE[HY000] [1040] Too many connections " dans 100% des cas c’est du a un jeedom trop chargé pour sa capacité de traitement. Ca peut etre un plugin ou des scénarios qui se lance fréquement. Il n’y a aucun moyen de savoir si ce n’est desactiver des plugins/scenarios jusqu’a trouve rle coupable.

Moi c’est surtout le premier message que je reçois aussi de temps en temps

Ca je peux pas dire celui la desolé

Ok merci je vais regarder de ce coté et je ferais un retour des que possible.

Effectivement je n’ai plus le message depuis le reboot.

La j’ai fais le ménage mais malheureusement j’ai toujours des messages d’erreurs.

Plugins = Tous désactivés.
Scenarios = Tous désactivés.
Jeedom = Reboot.

Cache = Nettoyé.
Cache des widgets = Vidé.
Toutes les données en cache = Vidé.
Jeedom = Reboot.

Logs cron_execution :

Stack trace:
#0 /var/www/html/core/class/DB.class.php(40): PDO->__construct('mysql:host=loca...', 'jeedom', '18897887b58f80e', Array)
#1 /var/www/html/core/class/DB.class.php(50): DB::initConnection()
#2 /var/www/html/core/class/DB.class.php(82): DB::getConnection()
#3 /var/www/html/core/class/config.class.php(187): DB::Prepare('SELECT `key`,`v...', Array, 1)
#4 /var/www/html/core/class/translate.class.php(34): config::byKeys(Array)
#5 /var/www/html/core/class/translate.class.php(151): translate::getConfig('language', 'fr_FR')
#6 /var/www/html/core/class/translate.class.php(75): translate::getLanguage()
#7 /var/www/html/core/class/translate.class.php(54): translate::exec('{{Chauffage}}', '/var/www/html/c...', false)
#8 /var/www/html/core/class/translate.class.php(165): translate::sentence('Chauffage', '/var/www/html/c...', false)
#9 /var/www/html/core/config/jeedom.config.php(23): __('Chauffage', '/v in /var/www/html/core/class/DB.class.php on line 40
2021-04-13 12:18:01 starting Jeedom
2021-04-13 12:19:02 starting Jeedom
Enable scenario : OK
Enable task : OK

Scenarios = Tous redésactivés car « Enable scenario : OK » dans logs.

Je continue mes investigations, si vous avez des pistes… :slight_smile: :+1:

Tu n’aurais pas les traductions activées ?

Je n’ai jamais regardé les traductions dans jeedom mais je vais voir si je trouve quelque chose.

Non je parles du paramètre dans la config, premier tab de memoire

edit : non c’est plus dans la configuration, ca a du disparaitre dans une version… alors je vois pas

Petit à petit, j’arrive à supprimer les erreurs mais je reste bloqué sur :

PHP Warning:  A non-numeric value encountered in /var/www/html/vendor/symfony/expression-language/Node/BinaryNode.php on line 144

Apparemment, le problème vient du plugin Freebox.
J’ai recommencé à recevoir les messages d’erreur lorsque je l’ai réactivé.

PHP Fatal error:  Uncaught PDOException: SQLSTATE[HY000] [1040] Too many connections in /var/www/html/core/class/DB.class.php:40
Stack trace:
#0 /var/www/html/core/class/DB.class.php(40): PDO->__construct('mysql:host=loca...', 'jeedom', '#############', Array)
#1 /var/www/html/core/class/DB.class.php(50): DB::initConnection()
#2 /var/www/html/core/class/DB.class.php(82): DB::getConnection()
#3 /var/www/html/core/class/config.class.php(187): DB::Prepare('SELECT `key`,`v...', Array, 1)
#4 /var/www/html/core/class/translate.class.php(34): config::byKeys(Array)
#5 /var/www/html/core/class/translate.class.php(151): translate::getConfig('language', 'fr_FR')
#6 /var/www/html/core/class/translate.class.php(75): translate::getLanguage()
#7 /var/www/html/core/class/translate.class.php(54): translate::exec('{{Chauffage}}', '/var/www/html/c...', false)
#8 /var/www/html/core/class/translate.class.php(165): translate::sentence('Chauffage', '/var/www/html/c...', false)
#9 /var/www/html/core/config/jeedom.config.php(23): __('Chauffage', '/v in /var/www/html/core/class/DB.class.php on line 40

Je vais attendre un peu avant de confirmer mon diagnostic. Pour le moment j’ai désactivé le plugin et je check les logs. :crossed_fingers:

Met toi en ssh dans le répertoire /var/www/html/plugin et lance la commande
grep -rl date_default_timezone_set
Tu auras la liste de tous les fichiers de plugin qui contiennent date_default_timezone_set. Si tu ne trouves rien d’interressant, met toi dans /var/www/html/core et lance la même commande pour chercher dans les fichiers du core.

Chez moi, je trouves des appels à cette fonction dans install/install.php, core/php/core.inc.php, core/php/utils.inc.php et plugins/mail/3rdparty/PHPMailer/class.phpmailer.php.

Ce qui est surprenant, c’est que cette fonction est une fonction de php. Je ne comprend donc pas pourquoi, selon vos logs, elle n’est pas définie.

Merci mais je n’ai plus cette erreur depuis reboot.
Par contre je bloque toujours sur :

Je n’ai cette plus que dans les logs cron_execution.

Peut être problème d’auto loader

Je ne suis pas sûr à 100% mais tente de créer un fichier nommé 60-max_connections.cnf dans le répertoire /etc/mysql/mariadb.conf.d avec le contenu suivant:

[mysqld]
max_connections = 150

Il faudra redémarrer ton serveur de base de données après avoir créé/modifié ce fichier. Le plus simple est probablement de redémarrer ton jeedom.
C’est a vérifier mais il me semble que la limite par défaut de 100. En augmentant cette limite à 150, tu devrais pouvoir avoir plus de connections simultanées. Le soucis est que ça peut aussi augmenter la charge de ton serveur jeedom.

Il est aussi possible que ça retarde simplement le moment où la limite sera atteinte si tu as un plugin ou autre fonction qui ouvre des connections sans les fermer.