python /home/admin/mtr/script_for_cron.py -j default -m 30 -a 'python3 ~/workarea/git/Velours/python/misc/prepare_sccu_portfolios.py --date_debut=$(date +%Y-%m-%d) --date_fin=$(date +%Y-%m-%d) ' -s traitement_sccu -M 0 -S 0 -U 100,100,100 import MySQLdb succeeded Import error (python version) warning , we can't find thcl infos in json_data warning , we can't find pdt infos in json_data portfolio cree avec l'id : 31261300 et le nom : SCCU_12072026_camera6 Catched exception ! Connect or reconnect ! Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 185, in insert_many cursor.executemany(query, args[:limit]) File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 241, in executemany return self._do_execute_many( File "/home/admin/.local/lib/python3.8/site-packages/MySQLdb/cursors.py", line 275, in _do_execute_many rows += self.execute(sql + postfix) 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 "/home/admin/workarea/git/Velours/python/misc/prepare_sccu_portfolios.py", line 140, in treat_sccu_pid(context,datetime.strptime(args.date_debut,'%Y-%m-%d')) File "/home/admin/workarea/git/Velours/python/misc/prepare_sccu_portfolios.py", line 24, in treat_sccu_pid context.pq.insert_photos(pid,list_photo_id,verbose,ignore_error=True) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/portfolio_queries.py", line 211, in insert_photos self.gq.insert_many(query, tup_port_id_pid) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 195, in insert_many 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.83user 1.02system 7:23:28elapsed 0%CPU (0avgtext+0avgdata 116104maxresident)k 8inputs+8outputs (7major+34699minor)pagefaults 0swaps