python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 /home/admin/workarea/git/Velours/python/prod/suivi_dashboard.py -T message -J last -I 10 -cs -q -DS 3073,3142,3385,3980,3981,4189,4197,4311,4323,4346,4887,4891,4220 -C 533,4310,4219,4489,4892 -cs -ts -rc' -s temps_de_traitement -M 0 -S 0 -U 97,80,97 import MySQLdb succeeded Import error (python version) warning , we can't find thcl infos in json_data warning , we can't find pdt infos in json_data suivi_dashboard start Starting time : 1781245947.2626746 Missing data for key 'pic_no_classify' in raspi data, skipping. 2026/06/11 : Working: - DECHET_VALCOR --> 88.57% (Total: 2117 | Uploaded: 1875 | No trait: 2 | No classify: 2 | Duplicated: 238) Warning : No infos about batches yet - AUTRES --> 79.84% (Total: 5878 | Uploaded: 4693 | No trait: 1 | Duplicated: 1184) Batches (23): les batchs sont entre : 2026-06-11 00:01:35 --> 2026-06-11 23:00:15 - PERLEN --> 67.69% (Total: 718 | Uploaded: 486 | No trait: 1 | No classify: 231) Warning : No infos about batches yet Warning(<20%): - TEST --> 1.04% (Total: 1439 | Uploaded: 15 | No trait: 2 | Dark: 4) Warning : No infos about batches yet Error: No pictures found: ARC_EN_CIEL_PEU_DENSE ARC_EN_CIEL_MM ARC_EN_CIEL_JRM ARC_EN_CIEL_ACIER REFUS_AMIENS SEVRAN CEDRE DERICHEBOURG Warning : number of dashboard : 4 does not equal to what we wait : 10 message/check uploadsElapsed time : 0.07035422325134277 =====================check sts===================== perlen_0423_11062026 31146430 last done with classifieur, try to relaunch sts! sts not found in done, should be still in current. check datou current : ({'id': 4385239, 'mtr_portfolio_id': 31146430, 'mtd_id': 4189, 'state': 0, 'created_at': datetime.datetime(2026, 6, 12, 7, 0, 2), 'updated_at': datetime.datetime(2026, 6, 12, 8, 30, 33)},) https://www.fotonower.com/view/31146430?reverse=true perlen_0423_03062026 31146218 last done with classifieur, try to relaunch sts! sts not found in done, should be still in current. check datou current : () https://www.fotonower.com/view/31146218?reverse=true perlen_0423_10062026 31145473 ok! https://www.fotonower.com/view/31145473?reverse=true perlen_0423_09062026 31145188 ok! https://www.fotonower.com/view/31145188?reverse=true perlen_0423_08062026 31144925 ok! https://www.fotonower.com/view/31144925?reverse=true perlen_0423_02062026 31144897 last done with classifieur, try to relaunch sts! sts not found in done, should be still in current. check datou current : () https://www.fotonower.com/view/31144897?reverse=true check_stsElapsed time : 4.1816229820251465 Mail sent: {'message_id': '<202606120632.52043763631@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard arc_en_ciel_jrm Mail sent: {'message_id': '<202606120632.80251894166@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard refus_amiens Mail sent: {'message_id': '<202606120632.66698277166@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard arc_en_ciel_jrm_peu_dense Mail sent: {'message_id': '<202606120632.96223508832@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard Perlen_convoyeur Mail sent: {'message_id': '<202606120632.60905022603@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard angers_montee_convoyeur Mail sent: {'message_id': '<202606120632.76452416300@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard sevran Mail sent: {'message_id': '<202606120632.96929944170@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard plaque_Valcor Mail sent: {'message_id': '<202606120632.27648946231@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard dechet_Valcor_v2 Mail sent: {'message_id': '<202606120632.68212890484@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard arc_en_ciel_mm Mail sent: {'message_id': '<202606120632.56279403655@smtp-relay.mailin.fr>', 'message_ids': None} mail d'alerte envoyé pour le dashboard arc_en_ciel_acier alert_checkElapsed time : 0.8915760517120361 Catched exception ! Connect or reconnect ! Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 106, in select cursor.execute(query, args) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 179, in execute res = self._query(mogrified_query) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 330, in _query db.query(q) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) MySQLdb.OperationalError: (2013, 'Lost connection to MySQL server during query') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/prod/suivi_dashboard.py", line 732, in TableSummary(context, datou_classifieur, last_days, relaunch_carac, verbose) File "/home/admin/workarea/git/Velours/python/prod/suivi_dashboard.py", line 479, in TableSummary df_score = retrieve_photo_quality(context, today_rows, verbose) File "/home/admin/workarea/git/Velours/python/prod/suivi_dashboard.py", line 508, in retrieve_photo_quality blur_info = get_quality_photo_data_by_pid(context, pid, quality_thcl=_blur_thr) File "/home/admin/workarea/git/Velours/python/prod/memo/lib_sla.py", line 414, in get_quality_photo_data_by_pid quality_info = context.gq.select(query_quality) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 117, in select cursor.execute(query, args) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 179, in execute res = self._query(mogrified_query) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 331, in _query self._do_get_result(db) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 136, in _do_get_result self._result = result = self._get_result() File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 363, in _get_result return self._get_db().store_result() MySQLdb.OperationalError: (1053, 'Server shutdown in progress') Command exited with non-zero status 1 1.65user 2.04system 244:05:03elapsed 0%CPU (0avgtext+0avgdata 161408maxresident)k 271480inputs+16outputs (20177major+64660minor)pagefaults 0swaps