python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 ~/workarea/git/Velours/python/mtr/utils/delete_row_crop_segment.py --limit=8000 --nb_batch=200 --days=0 --type=3132,3326,3327,3594,3663,3726,3760,3789,3887,3923,3996,4003,4199,4200,4202,4203,4204,4205,4206,4207,4208,4209,4210,4211,4213,4228,4230,4341,4391,4455,4460,4463,4474,4481,4549 -v ' -s delete_crop_segments -M 0 -S 0 -U 90,80,95 import MySQLdb succeeded on va faire 200 occurences de suppression de 8000 photos batch : 0/199 nombre de photos selectionnées : 8000 batch : 1/199 nombre de photos selectionnées : 8000 batch : 2/199 Catched exception ! Connect or reconnect ! Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 68, in select cursor.execute(query, args) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 209, in execute res = self._query(query) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 316, in _query self._do_get_result(db) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 147, in _do_get_result self._result = result = self._get_result() File "/usr/local/lib/python3.8/dist-packages/MySQLdb/cursors.py", line 349, in _get_result return self._get_db().store_result() MySQLdb._exceptions.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 43, in connect self.db = MySQLdb.connect(host=self.host, db=self.dbname, user=self.user, passwd=self.password) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/__init__.py", line 84, in Connect return Connection(*args, **kwargs) File "/usr/local/lib/python3.8/dist-packages/MySQLdb/connections.py", line 179, in __init__ super(Connection, self).__init__(*args, **kwargs2) MySQLdb._exceptions.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/utils/delete_row_crop_segment.py", line 147, in id_list_final = get_cs_id(args, gq) File "/home/admin/workarea/git/Velours/python/mtr/utils/delete_row_crop_segment.py", line 25, in get_cs_id id_list=gq.select(cs_id_from_type) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 77, in select self.connect() File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 46, 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 0.19user 0.07system 9:37.18elapsed 0%CPU (0avgtext+0avgdata 32292maxresident)k 13200inputs+24outputs (1302major+6623minor)pagefaults 0swaps