python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4935' -s datou_current_4935 -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 : 668018 load datou : 4935 # 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 we have a portfolio with more photos than limit : 2423>1000 please execute split_portfolio.py -i 27870361 -l 1000 size over we load limit photo not treated list_input_json: {} Current got : datou_id : 4935, datou_cur_ids : ['3952816'] with mtr_portfolio_ids : ['27870361'] and first list_photo_ids : [] new path : /proc/668018/ 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 : merge_dashboard 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.19725513458251953 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:merge_dashboard Fri Oct 17 09:38:48 2025 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 2022-04-13 10:29:59 0 TODO : Insert select and so on TODO : Insert select and so on to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do to do TODO : Insert select and so on Catched exception ! Connect or reconnect ! Catched exception ! Connect or reconnect ! INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2469409, '_______JRM', '2025-10-17 00:00:04', '2025-10-17 00:14:44', 67, 27870991, -1.0, -1, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': 'https://storage.sbg.cloud.ovh.net/v1/AUTH_3b171620e76e4af496c5fd050759c9f0/media.fotonower.com/results_Auto_P27870991_17-10-2025_09_13_08.pdf'}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2469409, '_______JRM', '2025-10-17 00:15:04', '2025-10-17 00:29:54', 67, 27871007, -1.0, -1, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': ''}" ); INSERT INTO `MTRPhoto`.`dashboard_results` (`dashboard_run_id`, `hashtag`, `date_debut`, `date_fin`, `nombre_balle`, `mtr_portfolio_id`, `qualite`, `datou_result_id_qualite`, `completion_percentage`, `completion_json`) VALUES (2469409, '_______JRM', '2025-10-17 00:30:04', '2025-10-17 00:44:54', 75, 27871031, -1.0, -1, '-1.0', "{'max_time_prod_two_photos': 0, 'url_report': ''}" ); Catched exception ! (2013, 'Lost connection to MySQL server during query') Connect or reconnect ! ERROR in datou_step_exec, will save and exit ! Unable to connect to sql_cath.fotonower.com : (2003, "Can't connect to MySQL server on 'sql_cath.fotonower.com:3306' (111)") File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 2339, 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 2635, in datou_step_exec return post_process.datou_step_merge_dashboard(param, json_param, args, context, map_info, File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_post_processing.py", line 59, in datou_step_merge_dashboard one_batch.update_info_in_dashboard_result() File "/home/admin/workarea/git/Velours/python/mtr/math_fotonower/timeseries/class_split_time_score.py", line 717, in update_info_in_dashboard_result self.context.DQ.insert_result_dashboard( File "/home/admin/workarea/git/Velours/python/mtr/database_queries/datou_queries.py", line 2058, in insert_result_dashboard res = self.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)) [1389768941, 1389768910, 1389768888, 1389768880, 1389768855, 1389768852, 1389768849, 1389768820, 1389768819, 1389768810, 1389768808, 1389768788, 1389768787, 1389768775, 1389768774, 1389768754, 1389768751, 1389768738, 1389768716, 1389768715, 1389768703, 1389768674, 1389768668, 1389768634, 1389767659, 1389767655, 1389767645, 1389767636, 1389767629, 1389767622, 1389767611, 1389767606, 1389767598, 1389767585, 1389767579, 1389767577, 1389767558, 1389767549, 1389767537, 1389767530, 1389767515, 1389767508, 1389767500, 1389767493, 1389767486, 1389767477, 1389767474, 1389767463, 1389767454, 1389767449, 1389767434, 1389767427, 1389767413, 1389767412, 1389767407, 1389767394, 1389767388, 1389767385, 1389767369, 1389767347, 1389767325, 1389767302, 1389767295, 1389767280, 1389767256, 1389767244, 1389767235, 1389767223, 1389767214, 1389767210, 1389767196, 1389767190, 1389767187, 1389767175, 1389767169, 1389767143, 1389767136, 1389767119, 1389767112, 1389767106, 1389767092, 1389767090, 1389767077, 1389767063, 1389767049, 1389767044, 1389767030, 1389767023, 1389767006, 1389766988, 1389766977, 1389766971, 1389766956, 1389766954, 1389766944, 1389766934, 1389766929, 1389766919, 1389766916, 1389766908] 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_cath.fotonower.com : (2003, "Can't connect to MySQL server on 'sql_cath.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 : [('4935', '27870361', '1389768941', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768910', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768888', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768880', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768855', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768852', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768849', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768820', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768819', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768810', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768808', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768788', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768787', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768775', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768774', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768754', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768751', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768738', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768716', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768715', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768703', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768674', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768668', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', '27870361', '1389768634', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767659', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767655', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767645', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767636', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767629', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767622', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767611', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767606', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767598', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767585', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767579', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767577', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767558', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767549', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767537', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767530', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767515', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767508', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767500', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767493', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767486', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767477', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767474', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767463', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767454', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767449', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767434', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767427', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767413', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767412', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767407', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767394', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767388', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767385', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767369', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767347', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767325', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767302', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767295', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767280', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767256', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767244', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767235', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767223', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767214', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767210', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767196', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767190', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767187', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767175', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767169', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767143', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767136', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767119', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767112', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767106', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767092', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767090', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767077', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767063', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767049', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767044', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767030', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767023', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389767006', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766988', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766977', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766971', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766956', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766954', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766944', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766934', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766929', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766919', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766916', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816'), ('4935', None, '1389766908', '[>, , , , \'Unable to connect to sql_cath.fotonower.com : (2003, "Can\\\'t connect to MySQL server on \\\'sql_cath.fotonower.com:3306\\\' (111)")\']', '-1', '-1.0', '501120777', '1.0', '3952816')] time used for this insertion : 0.042523860931396484 save_final ERROR in last step merge_dashboard, Unable to connect to sql_cath.fotonower.com : (2003, "Can't connect to MySQL server on 'sql_cath.fotonower.com:3306' (111)") time spend for datou_step_exec : 221.50961017608643 time spend to save output : 0.046797752380371094 total time spend for step 0 : 221.5564079284668 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 139, in insert self.db.commit() 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_cath.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 2339, 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 2635, in datou_step_exec return post_process.datou_step_merge_dashboard(param, json_param, args, context, map_info, File "/home/admin/workarea/git/Velours/python/mtr/datou/lib_step_exec/lib_step_post_processing.py", line 59, in datou_step_merge_dashboard one_batch.update_info_in_dashboard_result() File "/home/admin/workarea/git/Velours/python/mtr/math_fotonower/timeseries/class_split_time_score.py", line 717, in update_info_in_dashboard_result self.context.DQ.insert_result_dashboard( File "/home/admin/workarea/git/Velours/python/mtr/database_queries/datou_queries.py", line 2058, in insert_result_dashboard res = self.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_cath.fotonower.com : (2003, "Can't connect to MySQL server on 'sql_cath.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_cath.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 628, 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 826, 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 2378, 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 1885, 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_cath.fotonower.com : (2003, "Can't connect to MySQL server on 'sql_cath.fotonower.com:3306' (111)") Command exited with non-zero status 1 1.21user 0.55system 3:58.33elapsed 0%CPU (0avgtext+0avgdata 105880maxresident)k 680inputs+160outputs (12major+49233minor)pagefaults 0swaps