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/05/12/ **** 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 : 6755 coverage for 10 seconds : 18:32:27 (97.58%) coverage for 20 seconds : 18:48:57 (99.03%) max time between two photos : 0:01:21 results of pre-diagnostic : light ok 6681, not duplicated 3483, two criteria ok 3483, nb forced upload 74 end of day status of photos as found in sqllite duplicated : 3198 nothing_done : 1 ok_for_neural_classification : 5 uploaded : 3551 Info from dashboard total number of uploaded images : 3576 number of useful images : 3554 number of finished photos : 3056 (85.99% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 498 (14.01% of two criteria ok) number of finished batches : 48 (85.71% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 8 (14.29% of total) last update : 2025-05-15 16:30:39 **** analysis of day 2025/05/13/ **** 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 : 8526 coverage for 10 seconds : 23:23:33 (97.47%) coverage for 20 seconds : 23:45:02 (98.96%) max time between two photos : 0:01:21 results of pre-diagnostic : light ok 8432, not duplicated 3203, two criteria ok 3203, nb forced upload 94 end of day status of photos as found in sqllite duplicated : 5229 nothing_done : 1 ok_for_neural_classification : 2 uploaded : 3294 Info from dashboard total number of uploaded images : 3315 number of useful images : 3236 number of finished photos : 3193 (98.67% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 43 (1.33% of two criteria ok) number of finished batches : 56 (98.25% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 1 (1.75% of total) last update : 2025-05-15 16:31:41 **** analysis of day 2025/05/14/ **** 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 : 8544 coverage for 10 seconds : 23:27:12 (97.72%) coverage for 20 seconds : 23:48:00 (99.17%) max time between two photos : 0:01:21 results of pre-diagnostic : light ok 8463, not duplicated 3296, two criteria ok 3296, nb forced upload 81 end of day status of photos as found in sqllite duplicated : 5167 nothing_done : 1 uploaded : 3376 Info from dashboard total number of uploaded images : 3396 number of useful images : 3315 number of finished photos : 3118 (94.06% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 197 (5.94% of two criteria ok) number of finished batches : 54 (93.10% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 4 (6.90% of total) last update : 2025-05-15 16:32:05 **** analysis of day 2025/05/15/ **** 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:17 (97.52%) coverage for 20 seconds : 23:47:08 (99.11%) max time between two photos : 0:01:22 results of pre-diagnostic : light ok 8464, not duplicated 3801, two criteria ok 3801, nb forced upload 80 end of day status of photos as found in sqllite duplicated : 4659 nothing_done : 1 ok_for_neural_classification : 3 uploaded : 3876 Info from dashboard total number of uploaded images : 3900 number of useful images : 3881 number of finished photos : 3743 (96.44% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 138 (3.56% of two criteria ok) number of finished batches : 66 (97.06% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 2 (2.94% of total) last update : 2025-05-17 08:20:38 **** analysis of day 2025/05/16/ **** 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 : 8551 coverage for 10 seconds : 23:26:34 (97.68%) coverage for 20 seconds : 23:49:10 (99.25%) max time between two photos : 0:01:21 results of pre-diagnostic : light ok 8474, not duplicated 4101, two criteria ok 4101, nb forced upload 82 end of day status of photos as found in sqllite duplicated : 4373 nothing_done : 1 uploaded : 4177 Info from dashboard total number of uploaded images : 4198 number of useful images : 4159 number of finished photos : 4102 (98.63% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 57 (1.37% of two criteria ok) number of finished batches : 69 (92.00% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 6 (8.00% of total) last update : 2025-05-19 01:15:39 **** analysis of day 2025/05/17/ **** 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 : 2136 coverage for 10 seconds : 5:50:56 (100.00%) coverage for 20 seconds : 5:56:59 (100.00%) max time between two photos : 0:01:20 results of pre-diagnostic : light ok 2108, not duplicated 38, two criteria ok 38, nb forced upload 28 end of day status of photos as found in sqllite duplicated : 2070 nothing_done : 1 uploaded : 65 Info from dashboard total number of uploaded images : 66 number of useful images : 38 number of finished photos : 0 (0.00% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 8 (21.05% of two criteria ok) number of finished batches : 0 (0.00% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 1 (100.00% of total) last update : 2025-05-19 05:58:29 **** analysis of day 2025/05/18/ **** 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-05-18 06:30:29.254702 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 : 43051 coverage for 10 seconds : 4 days, 22:04:59 (98.42%) coverage for 20 seconds : 4 days, 23:55:16 (99.95%) max time between two photos : 0:08:06 results of pre-diagnostic : light ok 42622, not duplicated 17922, two criteria ok 17922, nb forced upload 439 end of day status of photos as found in sqllite duplicated : 24696 nothing_done : 6 ok_for_neural_classification : 10 uploaded : 18339 Info from dashboard total number of uploaded images : 18451 number of useful images : 18153 number of finished photos : 17212 (94.82% of two criteria ok) number of finished photos for older algorithm : 0 (0.00% of two criteria ok) number of started photos : 941 (5.18% of two criteria ok) number of finished batches : 293 (93.02% of total) number of finished batches for older algorithm : 0 (0.00% of total) number of started batches : 22 (6.98% of total) last update : 2025-05-19 05:58:29 You can launch datou with following url to update dashboard https://www.fotonower.com/api/v1/datou/current/set?mtr_portfolio_id=22870033,22899558,22940775,22986733,23034647,23084262&mtr_datou_id=4878 cvs resume : date,nb_photos,% time,nb ok,uploaded,to upload, % uploaded, nb useful, % completed photos, last_update, remark 2025/05/12,6755,97.58%,3483,3551,5,99.86%,3554,85.99%,2025/05/15, 2025/05/13,8526,97.47%,3203,3294,2,99.94%,3236,98.67%,2025/05/15, 2025/05/14,8544,97.72%,3296,3376,0,100.00%,3315,94.06%,2025/05/15, 2025/05/15,8539,97.52%,3801,3876,3,99.92%,3881,96.44%,2025/05/17, 2025/05/16,8551,97.68%,4101,4177,0,100.00%,4159,98.63%,2025/05/19, 2025/05/17,2136,100.00%,38,65,0,100.00%,8,0.00%,2025/05/19, 2025/05/18,0,-0.00%,0,0,0,0.00%,0,0.00%,0000/00/00, coverage for this period for every 10 second 2025/05/12/ 0.9758476001111127 2025/05/13/ 0.9746987812358939 2025/05/14/ 0.9772335327955185 2025/05/15/ 0.9752080463894258 2025/05/16/ 0.9767937128901955 2025/05/17/ 1.0 2025/05/18/ 0.9841758231581677 mean value for this period : 0.9805653566543305 coverage for this period for every 20 second 2025/05/12/ 0.9903214959283031 2025/05/13/ 0.9896179353927708 2025/05/14/ 0.9916781444229679 2025/05/15/ 0.9910762856051575 2025/05/16/ 0.9924883389854049 2025/05/17/ 1.0 2025/05/18/ 0.9994952932623966 mean value for this period : 0.9935253562281431 3.24user 1.47system 0:20.00elapsed 23%CPU (0avgtext+0avgdata 195172maxresident)k 319360inputs+80outputs (369major+109206minor)pagefaults 0swaps