python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 ~/workarea/git/Velours/python/prod/memo/memo.py --job=sla_per_day --raspi=30006 --dashboard_places=angers_montee_convoyeur --last_days 7 -u_s' -s sla_RUBBIA -M 0 -S 0 -U 90,80,95 import MySQLdb succeeded Import error (python version) Need env var : LOGRASPI Raspi : 30006, Date : _cr_cnf_ : /home/admin/mtr/.credentials/credentials.py _cr_cnf_ : /home/admin/mtr/.credentials/credentials.py Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 41, in __init__ self.db = MySQLdb.connect(host=host, db=dbname, user=user, passwd=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: (1040, 'Too many connections') During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/prod/memo/memo.py", line 1418, in context = ContextDatouExec(host, "MTRUser", username, password) File "/home/admin/workarea/git/Velours/python/mtr/datou/datou_lib.py", line 1319, in __init__ self.gq = general_queries(host, username, password, database,db_type=db_type,mbp=mbp,mfp=mfp,table_mbp_select=table_mbp_select) File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 49, in __init__ raise Exception("Unable to connect to " + str(host) + " : " + str(e)) Exception: Unable to connect to sql.fotonower.com : (1040, 'Too many connections') Command exited with non-zero status 1 1.38user 0.79system 0:01.71elapsed 127%CPU (0avgtext+0avgdata 174540maxresident)k 264inputs+0outputs (1major+36340minor)pagefaults 0swaps