python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 ~/workarea/git/Velours/python/prod/memo/memo.py --job=sla_per_day --raspi=30073 --dashboard_places=arc_en_ciel_jrm --last_days 7 -u_s' -s sla_RUBBIA -M 0 -S 0 -U 90,80,95 import MySQLdb succeeded Import error (python version) Need env var : LOGRASPI Raspi : 30073, Date : _cr_cnf_ : /home/admin/mtr/.credentials/credentials.py _cr_cnf_ : /home/admin/mtr/.credentials/credentials.py warning , we can't find thcl infos in json_data warning , we can't find pdt infos in json_data VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 11449 mask_detect is not consistent : 3 used against 2 in the step definition ! Step 11452 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! Step 11452 crop_condition have less outputs used (2) than in the step definition (3) : some outputs may be not used ! Step 11453 merge_mask_thcl_custom have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11453 merge_mask_thcl_custom is not consistent : 4 used against 2 in the step definition ! WARNING : number of inputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11454 rle_unique_nms_with_priority is not consistent : 2 used against 1 in the step definition ! Step 11478 crop_condition have less inputs used (1) than in the step definition (2) : maybe we manage optionnal inputs ! WARNING : number of outputs for step 11478 crop_condition is not consistent : 4 used against 3 in the step definition ! WARNING : number of inputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! WARNING : number of outputs for step 11456 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11455 final have less inputs used (2) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11455 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! Step 11458 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! WARNING : type of output 2 of step 11449 doesn't seem to be define in the database( WARNING : type of input 2 of step 11452 doesn't seem to be define in the database( WARNING : output 1 of step 11449 have datatype=2 whereas input 1 of step 11453 have datatype=7 WARNING : type of output 2 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11454 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : type of output 3 of step 11453 doesn't seem to be define in the database( WARNING : type of input 1 of step 11456 doesn't seem to be define in the database( WARNING : type of output 1 of step 11456 doesn't seem to be define in the database( WARNING : type of input 3 of step 11455 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 11456 have datatype=10 whereas input 3 of step 11458 have datatype=6 WARNING : type of input 5 of step 11458 doesn't seem to be define in the database( WARNING : output 0 of step 11477 have datatype=11 whereas input 5 of step 11458 have datatype=None WARNING : output 0 of step 11456 have datatype=10 whereas input 0 of step 11477 have datatype=18 WARNING : type of input 2 of step 11478 doesn't seem to be define in the database( WARNING : output 1 of step 11454 have datatype=7 whereas input 2 of step 11478 have datatype=None WARNING : type of output 3 of step 11478 doesn't seem to be define in the database( WARNING : type of input 2 of step 11456 doesn't seem to be define in the database( WARNING : output 0 of step 11453 have datatype=1 whereas input 0 of step 11454 have datatype=2 DataTypes for each output/input checked ! Unexpected error treated as WARNING for now expected given param in final step {'name_pipeline': 'aggregate_carac_ratio', 'hashtag_type': 3726, 'hashtag_proportion': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,kraft,metal,plastique', 'hashtag_parmi': 'papier,background', 'hashtag_weights': {'Carton_brun': 1.5, 'Carton_gris': 1.5, 'Teint_Dans_La_Masse': 1.0, 'autre_refus': 1.5, 'cartonnette': 1.0, 'kraft': 1.5, 'metal': 3, 'plastique': 1}} Found hashtag_parmi in final step, will be used and useful if different from matiere_majoritaire in classifier TODO : Insert select and so on # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) DONE and to test : checkNoCycle ! We are managing only one step so we do not consider checkConsistencyNbInputNbOutput ! We are managing only one step so we do not consider checkConsistencyTypeOutputInput ! # VR 17-11-17 : to create in DB ! Here we check the datou graph and we reorder steps ! Tree builded and cycle checked, now we need to re-order the steps ! We have currenlty an error because there is no dependence between the last step for the case tile - detect - glue We can either keep the depence of, it is better to keep an order compatible with the id of steps if we do not have sons, so a lexical order : (number_son, step_id) All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! All sons are already in current list ! DONE and to test : checkNoCycle ! Here we check the consistency of inputs/outputs number between the given ones and the db ! eke 1-6-18 : checkConsistencyNbInputNbOutput should be processed after step reordering ! WARNING : number of outputs for step 13596 ventilate_hashtags_in_portfolio is not consistent : 2 used against 1 in the step definition ! Step 11881 final have less inputs used (1) than in the step definition (3) : maybe we manage optionnal inputs ! Step 11881 final have less outputs used (1) than in the step definition (2) : some outputs may be not used ! WARNING : number of outputs for step 13625 velours_tree is not consistent : 2 used against 1 in the step definition ! Step 11884 send_mail_cod have less inputs used (3) than in the step definition (5) : maybe we manage optionnal inputs ! Number of inputs / outputs for each step checked ! Here we check the consistency of outputs/inputs types during steps connections eke 1-6-18 : checkConsistencyTypeOutputInput should be processed after checkConsistencyNbInputNbOutput ! We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 3 of step 11884 have datatype=6 WARNING : type of output 1 of step 13596 doesn't seem to be define in the database( WARNING : type of input 3 of step 11881 doesn't seem to be define in the database( We ignore checkConsistencyTypeOutputInput for datou_step final ! WARNING : output 0 of step 13596 have datatype=10 whereas input 0 of step 13625 have datatype=18 WARNING : type of output 1 of step 13625 doesn't seem to be define in the database( WARNING : type of input 5 of step 11884 doesn't seem to be define in the database( DataTypes for each output/input checked ! Unexpected error treated as WARNING for now expected given param in final step {'name_pipeline': 'aggregate_carac_ratio', 'hashtag_type': 3726, 'hashtag_proportion': 'Carton_brun,Carton_gris,Teint_Dans_La_Masse,autre_refus,cartonnette,kraft,metal,plastique', 'hashtag_parmi': 'papier', 'hashtag_weights': {'Carton_brun': 2, 'Carton_gris': 1.5, 'Teint_Dans_La_Masse': 1.0, 'autre_refus': 1.5, 'cartonnette': 1.0, 'kraft': 1.5, 'metal': 3, 'plastique': 1}} Found hashtag_parmi in final step, will be used and useful if different from matiere_majoritaire in classifier Fonction SLA_RUBBIA TODO : Insert select and so on ***** analysis of device with port 30073 for dashboard arc_en_ciel_jrm ***** **** analysis of day 2025/09/01/ **** VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! 5:00:00 apple pause between two photos 10 Find filename in sqlite. Info from logs total number of images : 6748 coverage for 10 seconds : 18:30:05 (97.38%) coverage for 20 seconds : 18:48:02 (98.95%) max time between two photos : 0:01:21 results of pre-diagnostic : light ok 6675, not duplicated 2482, two criteria ok 2482, nb forced upload 73 end of day status of photos as found in sqllite duplicated : 4193 nothing_done : 1 ok_for_neural_classification : 1 uploaded : 2553 Info from dashboard total number of uploaded images : 2819 number of useful images : 2789 number of finished photos : 2789 (100.00% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 0 (0.00% of two criteria ok) number of finished batches : 59 (100.00% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 0 (0.00% of total) last update : 2025-09-02 07:10:38 **** analysis of day 2025/09/02/ **** VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! 0:00:00 apple pause between two photos 10 Find filename in sqlite. Info from logs total number of images : 8539 coverage for 10 seconds : 23:24:32 (97.54%) coverage for 20 seconds : 23:47:11 (99.11%) max time between two photos : 0:01:20 results of pre-diagnostic : light ok 8462, not duplicated 3799, two criteria ok 3799, nb forced upload 82 end of day status of photos as found in sqllite duplicated : 4658 nothing_done : 1 ok_for_neural_classification : 3 uploaded : 3877 Info from dashboard total number of uploaded images : 4266 number of useful images : 4230 number of finished photos : 4104 (97.02% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 126 (2.98% of two criteria ok) number of finished batches : 74 (97.37% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 2 (2.63% of total) last update : 2025-09-03 10:57:29 **** analysis of day 2025/09/03/ **** VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! 0:00:00 apple pause between two photos 10 Find filename in sqlite. Info from logs total number of images : 8569 coverage for 10 seconds : 23:30:17 (97.94%) coverage for 20 seconds : 23:52:11 (99.46%) max time between two photos : 0:01:20 results of pre-diagnostic : light ok 8499, not duplicated 4436, two criteria ok 4436, nb forced upload 75 end of day status of photos as found in sqllite duplicated : 4062 nothing_done : 1 ok_for_neural_classification : 5 uploaded : 4501 Info from dashboard total number of uploaded images : 4934 number of useful images : 4914 number of finished photos : 4683 (95.30% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 231 (4.70% of two criteria ok) number of finished batches : 76 (95.00% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 4 (5.00% of total) last update : 2025-09-04 12:46:51 **** analysis of day 2025/09/04/ **** VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! 0:00:00 apple pause between two photos 10 Find filename in sqlite. Info from logs total number of images : 8538 coverage for 10 seconds : 23:26:32 (97.68%) coverage for 20 seconds : 23:46:59 (99.10%) max time between two photos : 0:01:21 results of pre-diagnostic : light ok 8461, not duplicated 3955, two criteria ok 3955, nb forced upload 77 end of day status of photos as found in sqllite duplicated : 4506 nothing_done : 1 ok_for_neural_classification : 4 uploaded : 4027 Info from dashboard total number of uploaded images : 4133 number of useful images : 4104 number of finished photos : 3405 (82.97% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 699 (17.03% of two criteria ok) number of finished batches : 57 (83.82% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 11 (16.18% of total) last update : 2025-09-05 14:12:58 **** analysis of day 2025/09/05/ **** VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! 0:00:00 apple pause between two photos 10 Find filename in sqlite. Info from logs total number of images : 8557 coverage for 10 seconds : 23:28:13 (97.79%) coverage for 20 seconds : 23:50:06 (99.31%) max time between two photos : 0:01:21 results of pre-diagnostic : light ok 8469, not duplicated 3984, two criteria ok 3984, nb forced upload 93 end of day status of photos as found in sqllite duplicated : 4485 nothing_done : 1 uploaded : 4071 Info from dashboard total number of uploaded images : 4116 number of useful images : 4053 number of finished photos : 3966 (97.85% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 87 (2.15% of two criteria ok) number of finished batches : 71 (97.26% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 2 (2.74% of total) last update : 2025-09-06 07:05:38 **** analysis of day 2025/09/06/ **** VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! 0:00:00 apple pause between two photos 10 Find filename in sqlite. Info from logs total number of images : 1778 coverage for 10 seconds : 4:52:04 (97.36%) coverage for 20 seconds : 4:57:07 (99.04%) max time between two photos : 0:01:21 results of pre-diagnostic : light ok 1769, not duplicated 95, two criteria ok 95, nb forced upload 14 end of day status of photos as found in sqllite duplicated : 1670 nothing_done : 1 uploaded : 107 Info from dashboard total number of uploaded images : 107 number of useful images : 95 number of finished photos : 78 (82.11% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 0 (0.00% of two criteria ok) number of finished batches : 8 (100.00% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 0 (0.00% of total) last update : 2025-09-07 07:00:28 **** analysis of day 2025/09/07/ **** VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! VR TODO TOCHECK : due to this bug it shouldn't have being able to work, or maybe it was due to a change directory not done ! No photos configured for this day pause between two photos 10 Unable to retrieve photo time from log, find in sqlite. Find filename in sqlite. Info from logs total number of images : 0 coverage for 10 seconds : 0:00:00 (-0.00%) coverage for 20 seconds : 0:00:00 (-0.00%) max time between two photos : 0:00:00 results of pre-diagnostic : light ok 0, not duplicated 0, two criteria ok 0, nb forced upload 0 end of day status of photos as found in sqllite Unable to find info for dashboard number 10 for day 2025-09-07 06:30:26.892184 Info from dashboard total number of uploaded images : 0 number of useful images : 0 **** analysis for all days **** Info from logs total number of images : 42729 coverage for 10 seconds : 4 days, 21:11:43 (97.68%) coverage for 20 seconds : 4 days, 23:01:36 (99.20%) max time between two photos : 0:08:04 results of pre-diagnostic : light ok 42335, not duplicated 18751, two criteria ok 18751, nb forced upload 414 end of day status of photos as found in sqllite duplicated : 23574 nothing_done : 6 ok_for_neural_classification : 13 uploaded : 19136 Info from dashboard total number of uploaded images : 20375 number of useful images : 20168 number of finished photos : 19025 (94.33% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 1143 (5.67% of two criteria ok) number of finished batches : 345 (94.78% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 19 (5.22% of total) last update : 2025-09-07 07:00:28 You can launch datou with following url to update dashboard https://www.fotonower.com/api/v1/datou/current/set?mtr_portfolio_id=26419647,26463903,26511073,26552212&mtr_datou_id=4878 cvs resume : date,nb_photos,% time,nb ok,uploaded,to upload, % uploaded, nb useful, % completed photos, last_update, remark 2025/09/01,6748,97.38%,2482,2553,1,99.96%,2789,100.00%,2025/09/02, 2025/09/02,8539,97.54%,3799,3877,3,99.92%,4230,97.02%,2025/09/03, 2025/09/03,8569,97.94%,4436,4501,5,99.89%,4914,95.30%,2025/09/04, 2025/09/04,8538,97.68%,3955,4027,4,99.90%,4104,82.97%,2025/09/05, 2025/09/05,8557,97.79%,3984,4071,0,100.00%,4053,97.85%,2025/09/06, 2025/09/06,1778,97.36%,95,107,0,100.00%,78,100.00%,2025/09/07, 2025/09/07,0,-0.00%,0,0,0,0.00%,0,0.00%,0000/00/00, coverage for this period for every 10 second 2025/09/01/ 0.973771546367637 2025/09/02/ 0.975381659509948 2025/09/03/ 0.9793747612819593 2025/09/04/ 0.9767705644741259 2025/09/05/ 0.9779395594856422 2025/09/06/ 0.9736096449802767 2025/09/07/ 0.9767765445646789 mean value for this period : 0.9762320400948955 coverage for this period for every 20 second 2025/09/01/ 0.9895173906051258 2025/09/02/ 0.9911110082292619 2025/09/03/ 0.9945832706397065 2025/09/04/ 0.9909721177328441 2025/09/05/ 0.9931364946353546 2025/09/06/ 0.9904439135507528 2025/09/07/ 0.9920404506244009 mean value for this period : 0.9916863780024924 2.29user 0.79system 0:16.16elapsed 19%CPU (0avgtext+0avgdata 179512maxresident)k 85856inputs+80outputs (24major+87216minor)pagefaults 0swaps