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 Catched exception ! Connect or reconnect ! Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 158, in insert_id_retrieve 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: (1015, "Can't lock file (errno: 165 - Table is read only)") 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 16, in treat_sccu_pid pid=context.pq.create_port(name_pid,args.user_id,1,0, verbose) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/portfolio_queries.py", line 147, in create_port pid = self.gq.insert_id_retrieve(query) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 172, in insert_id_retrieve 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: (1015, "Can't lock file (errno: 165 - Table is read only)") Command exited with non-zero status 1 1.06user 0.82system 0:01.62elapsed 116%CPU (0avgtext+0avgdata 112352maxresident)k 0inputs+8outputs (11major+23696minor)pagefaults 0swaps