python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4189' -s datou_current_4189 -M 0 -S 0 -U 95,95,120 import MySQLdb succeeded Import error (python version) ['/Users/moilerat/Documents/Fotonower/install/caffe/distribute/python', '/home/admin/workarea/git/Velours/python/prod', '/home/admin/workarea/install/caffe_cuda8_python3/python', '/home/admin/workarea/install/darknet', '/home/admin/workarea/git/Velours/python', '/home/admin/workarea/install/caffe_frcnn_python3/py-faster-rcnn/caffe-fast-rcnn/python', '/home/admin/mtr/.credentials', '/home/admin/workarea/install/caffe/python', '/home/admin/workarea/install/caffe_frcnn/py-faster-rcnn/tools', '/home/admin/workarea/git/fotonowerpip', '/home/admin/workarea/install/segment-anything', '/home/admin/workarea/git/pyfvs', '/usr/lib/python38.zip', '/usr/lib/python3.8', '/usr/lib/python3.8/lib-dynload', '/home/admin/.local/lib/python3.8/site-packages', '/usr/local/lib/python3.8/dist-packages', '/usr/lib/python3/dist-packages'] process id : 3437341 load datou : 4189 # 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 ! Unexpected type for variable list_input_json ERROR or WARNING : can't parse json string Expecting value: line 1 column 1 (char 0) Tried to parse : None was removed should we ? donnée sous forme de texte was removed should we ? [ptf_id0,ptf_id1...] was removed should we ? load thcls load pdts Running datou job : batch_current TODO datou_current to load to do maybe to take outside batchDatouExec no input labels no input values updating current state to 1 list_input_json: {} Date 2026-06-11 15:05:29.479320 Current got : datou_id : 4189, datou_cur_ids : ['4385206'] with mtr_portfolio_ids : ['31143228'] and first list_photo_ids : [] new path : /proc/3437341/ Inside batchDatouExec : verbose : 0 # 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 ! List Step Type Loaded in datou : split_time_score over limit max, limiting to limit_max 100 list_input_json : {} origin We have 1 , WARNING: data may be incomplete, need to offset and complete ! we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB time to download the photos : 0.29582977294921875 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Thu Jun 11 15:05:29 2026 VR 17-11-17 : now, only for linear exec dependencies tree, some output goes to fill the input of the next VR 22-3-18 : now we test the dependencies tree, but keep two separate code for datou_prepare_output_input until the code is correctly tested, clean and works in both case VR 22-3-18 : but we use the first code for the first step id = -1, build in the code of datou_exec VR 22-3-18 : we should manage here the case when we are at the first step instead of building this step before datou_exec begin split time score 2022-04-13 10:29:59 0 TODO : Insert select and so on Begin split_port_in_batch_balle thcls : [{'id': 3379, 'mtr_user_id': 31, 'name': 'learn_classif_flux_maj_generique_effnet_v2_s_02062022', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': 'aluminium,ela,film_pedb,flux_dev,jrm,pcm,pcnc,pehd_pp,pet_clair,refus,tapis_vide', 'svm_portfolios_learning': '5515864,5515840,5515844,5515850,6244400,6237996,6237998,5515847,5515841,5515868,5515866', 'photo_hashtag_type': 4374, 'photo_desc_type': 5680, 'type_classification': 'tf_classification2', 'hashtag_id_list': '493546845,492741797,2107760237,2107760238,495916461,560181804,1284539308,2107760239,2107755846,538914404,2107748999'}] thcls : [{'id': 3513, 'mtr_user_id': 31, 'name': 'Rungis_amount_dechets_fall_2018_v2_tf', 'pb_hashtag_id': 0, 'live': b'\x00', 'list_hashtags': '05102018_Papier_non_papier_dense,05102018_Papier_non_papier_peu_dense,05102018_Papier_non_papier_presque_vide,05102018_Papier_non_papier_tres_dense,05102018_Papier_non_papier_tres_peu_dense', 'svm_portfolios_learning': '1108385,1108386,1108388,1108384,1108387', 'photo_hashtag_type': 4557, 'photo_desc_type': 5767, 'type_classification': 'tf_classification2', 'hashtag_id_list': '2107751013,2107751014,2107751015,2107751016,2107751017'}] (('10', 359), ('14', 359)) Catched exception ! Connect or reconnect ! ERROR in datou_step_exec, will save and exit ! Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2340, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2524, in datou_step_exec return lib_process.datou_step_split_time_score(param, json_param, args, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_process.py", line 2319, in datou_step_split_time_score one_result = split_port_in_batch_balle( File "/home/admin/workarea/git/Velours/python/misc/split_time_score.py", line 371, in split_port_in_batch_balle meta_photos, scores, densite, result_taggue_densite = load_data_split_time_score(int(mtr_portfolio), thcl, thcl_volume, context, limit, File "/home/admin/workarea/git/Velours/python/mtr/math_fotonower/timeseries/lib_split_time_score.py", line 2575, in load_data_split_time_score scores = context.cq.get_all_photo_scores_and_group_by_photos(thcl['id'], str(mtr_portfolio_id), File "/home/admin/workarea/git/Velours/python/mtr/database_queries/classification_queries.py", line 443, in get_all_photo_scores_and_group_by_photos list_map_photo = self.get_all_photo_scores(thcl, mtr_portfolio_id_csv, hashtag_ids, limit, offset, verbose, min_score) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/classification_queries.py", line 399, in get_all_photo_scores res = self.gq.select(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 115, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 84, in connect raise Exception("Unable to connect to " + str(self.host) + " : " + str(e)) [1418228521, 1418209842, 1418209838, 1418209834, 1418209826, 1418209825, 1418209824, 1418209823, 1418209822, 1418209821, 1418209820, 1418209819, 1418209817, 1418209815, 1418209811, 1418209809, 1418209804, 1418209803, 1418209763, 1418209762, 1418209761, 1418209760, 1418209756, 1418209754, 1418209752, 1418209750, 1418209741, 1418209740, 1418209739, 1418209738, 1418209737, 1418209736, 1418209735, 1418209734, 1418209733, 1418209732, 1418209730, 1418209728, 1418209724, 1418209723, 1418209722, 1418209721, 1418209720, 1418209719, 1418209718, 1418209717, 1418209716, 1418209715, 1418209714, 1418209713, 1418209711, 1418209710, 1418209709, 1418209708, 1418209707, 1418209706, 1418209705, 1418209704, 1418209703, 1418209702, 1418209700, 1418209698, 1418209694, 1418209693, 1418209692, 1418209691, 1418209690, 1418209689, 1418209688, 1418209687, 1418209686, 1418209685, 1418209683, 1418209681, 1418209677, 1418209676, 1418209675, 1418209674, 1418209673, 1418209672, 1418209671, 1418209670, 1418209669, 1418209668, 1418209667, 1418209665, 1418209660, 1418209659, 1418209658, 1418209657, 1418209656, 1418209655, 1418209654, 1418209653, 1418209652, 1418209651, 1418209649, 1418209647, 1418209643, 1418209642] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 100 Catched exception ! Connect or reconnect ! exception in save_final Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") query : insert ignore into MTRPhoto.mtr_datou_result (mtd_id, mtr_portfolio_id,mtr_photo_id,result,result_long,result_double,hashtag_id,proba, mtr_current_id) values (%s,%s,%s,%s,%s,%s,%s,%s,%s) on duplicate key update mtr_portfolio_id = mtr_portfolio_id list_tup_unique : [('4189', '31143228', '1418228521', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209842', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209838', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209834', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209826', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209825', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209824', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209823', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209822', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209821', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209820', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209819', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209817', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209815', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209811', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209809', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209804', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209803', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209763', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209762', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209761', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209760', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209756', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209754', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209752', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209750', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209741', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209740', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209739', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209738', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209737', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209736', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209735', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209734', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209733', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209732', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209730', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209728', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209724', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209723', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209722', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209721', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209720', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209719', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209718', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209717', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209716', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209715', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209714', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209713', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209711', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209710', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209709', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209708', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209707', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209706', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209705', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209704', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209703', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209702', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209700', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209698', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209694', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209693', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209692', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209691', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209690', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209689', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209688', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209687', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209686', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209685', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209683', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209681', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209677', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209676', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209675', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209674', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209673', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209672', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209671', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209670', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209669', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209668', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209667', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209665', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209660', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209659', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209658', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209657', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209656', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209655', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209654', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209653', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209652', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209651', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209649', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209647', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209643', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206'), ('4189', None, '1418209642', '[>, , , , \'Unable to connect to sql.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '4385206')] time used for this insertion : 0.1861417293548584 save_final ERROR in last step split_time_score, Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") time spend for datou_step_exec : 3432.8211483955383 time spend to save output : 0.25710630416870117 total time spend for step 0 : 3433.078254699707 Catched exception ! (2013, 'Lost connection to MySQL server during query') 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 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') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 81, in connect self.db = MySQLdb.connect(host=self.host, db=self.dbname, user=self.user, passwd=self.password) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/__init__.py", line 121, in Connect return Connection(*args, **kwargs) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/connections.py", line 200, in __init__ super().__init__(*args, **kwargs2) MySQLdb.OperationalError: (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2340, in datou_exec output = datou_step_exec(sNext, args, cache, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2524, in datou_step_exec return lib_process.datou_step_split_time_score(param, json_param, args, context, map_info, verbose, mtr_user_id) File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_process.py", line 2319, in datou_step_split_time_score one_result = split_port_in_batch_balle( File "/home/admin/workarea/git/Velours/python/misc/split_time_score.py", line 371, in split_port_in_batch_balle meta_photos, scores, densite, result_taggue_densite = load_data_split_time_score(int(mtr_portfolio), thcl, thcl_volume, context, limit, File "/home/admin/workarea/git/Velours/python/mtr/math_fotonower/timeseries/lib_split_time_score.py", line 2575, in load_data_split_time_score scores = context.cq.get_all_photo_scores_and_group_by_photos(thcl['id'], str(mtr_portfolio_id), File "/home/admin/workarea/git/Velours/python/mtr/database_queries/classification_queries.py", line 443, in get_all_photo_scores_and_group_by_photos list_map_photo = self.get_all_photo_scores(thcl, mtr_portfolio_id_csv, hashtag_ids, limit, offset, verbose, min_score) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/classification_queries.py", line 399, in get_all_photo_scores res = self.gq.select(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 115, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 84, in connect raise Exception("Unable to connect to " + str(self.host) + " : " + str(e)) Exception: Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 138, in insert number = 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/mtr/database_queries/general_queries.py", line 81, in connect self.db = MySQLdb.connect(host=self.host, db=self.dbname, user=self.user, passwd=self.password) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/__init__.py", line 121, in Connect return Connection(*args, **kwargs) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/connections.py", line 200, in __init__ super().__init__(*args, **kwargs2) MySQLdb.OperationalError: (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") During handling of the above exception, another exception occurred: Traceback (most recent call last): File "prod/datou.py", line 270, in ret = batchDatouCurrent(context, datou_id, mtr_portfolio_ids, list_photo_ids, limit, offset, rand, save, File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 629, in batchDatouCurrent ret = batchDatouExec(context, datou_id, mtr_portfolio_ids, list_photo_ids, list_input_json, limit, File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 827, in batchDatouExec output, datou_failed_to_relaunch = datou_exec(datou, input, cache, context, map_info, save, list_pids, verbose, mtr_user_id, is_last_batch, end_time) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2379, in datou_exec context.update_current_state(map_info["datou_cur_ids"], 0, verbose) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 1886, in update_current_state self.DQ.update_current_state(map_info_datou_cur_ids, status, verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/datou_queries.py", line 184, in update_current_state self.gq.insert(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 149, in insert self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 84, in connect raise Exception("Unable to connect to " + str(self.host) + " : " + str(e)) Exception: Unable to connect to sql.fotonower.com : (2003, "Can't connect to MySQL server on 'sql.fotonower.com:3306' (111)") Command exited with non-zero status 1 1.26user 1.05system 57:19.91elapsed 0%CPU (0avgtext+0avgdata 109412maxresident)k 147400inputs+160outputs (14498major+57199minor)pagefaults 0swaps