python /home/admin/mtr/script_for_cron.py -j datou_current3 -m 20 -a ' -a 4876' -s datou_current_4876 -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 : 3726395 load datou : 4876 # 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: {} Current got : datou_id : 4876, datou_cur_ids : ['3316456'] with mtr_portfolio_ids : ['25155834'] and first list_photo_ids : [] new path : /proc/3726395/ 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 2 , we have missing 0 photos in the step downloads : photo missing : [] try to delete the photos missing in DB time to download the photos : 945.8492279052734 About to test input to load Calling datou_exec Inside datou_exec : verbose : 0 number of steps : 1 step1:split_time_score Tue Jul 22 02:00:14 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 begin split time score 2022-04-13 10:29:59 0 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 2329, 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 2513, 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 2131, in datou_step_split_time_score token = context.AQ.getToken(mtr_user_id, "token_split_time_score", verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/admin_queries.py", line 478, in getToken res = self.select(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 78, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 47, in connect raise Exception("Unable to connect to " + str(self.host) + " : " + str(e)) [1373088967, 1373088964, 1373088960, 1373088956, 1373088944, 1373088929, 1373088574, 1373088545, 1373088544, 1373088542, 1373088536, 1373088533, 1373088529, 1373088522, 1373088517, 1373088483, 1373088452, 1373088436, 1373088421, 1373088237, 1373088233, 1373088221, 1373088193, 1373088186, 1373088174, 1373088165, 1373088164, 1373088157, 1373088154, 1373088147, 1373088134, 1373088126, 1373088041, 1373088038, 1373088030, 1373088024, 1373088014, 1373088009, 1373088002, 1373087984, 1373087963, 1373087947, 1373087923, 1373087873, 1373087866, 1373087859, 1373087854, 1373087850, 1373087849, 1373087842, 1373087837, 1373087836, 1373087832, 1373087827, 1373087825, 1373087823, 1373087821, 1373087817] begin to insert list_values into mtr_datou_result : length of list_values in save_final : 58 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 : [('4876', '25155834', '1373088967', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088964', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088960', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088956', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088944', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088929', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088574', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088545', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088544', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088542', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088536', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088533', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088529', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088522', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088517', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088483', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088452', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088436', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088421', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088237', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088233', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088221', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088193', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088186', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088174', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088165', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088164', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088157', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088154', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088147', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088134', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088126', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088041', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088038', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088030', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088024', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088014', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088009', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373088002', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087984', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087963', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087947', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087923', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087873', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087866', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087859', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087854', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087850', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087849', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087842', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087837', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087836', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087832', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087827', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087825', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087823', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087821', '[>, , , , \'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', '3316456'), ('4876', '25155834', '1373087817', '[>, , , , \'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', '3316456')] time used for this insertion : 0.06582331657409668 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 : 1.3305847644805908 time spend to save output : 0.09194040298461914 total time spend for step 0 : 1.42252516746521 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 69, in select cursor.execute(query, args) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 179, in execute res = self._query(mogrified_query) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 330, in _query db.query(q) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/connections.py", line 280, in query _mysql.connection.query(self, query) MySQLdb.OperationalError: (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 44, 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 2329, 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 2513, 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 2131, in datou_step_split_time_score token = context.AQ.getToken(mtr_user_id, "token_split_time_score", verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/admin_queries.py", line 478, in getToken res = self.select(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 78, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 47, 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 101, 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 44, 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 621, 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 819, 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 2368, 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 1875, 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 170, in update_current_state self.gq.insert(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 112, in insert self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 47, 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.34user 0.55system 15:57.52elapsed 0%CPU (0avgtext+0avgdata 106404maxresident)k 104inputs+104outputs (0major+49106minor)pagefaults 0swaps