python /home/admin/mtr/script_for_cron.py -j default -m 20 -a 'python3 ~/workarea/git/Velours/python/prod/summary_report_python.py -s marlene --host_api=https://192.168.1.135/ --list_test parse_generique,parse_python_test,get_number_picture_raspi --host_api='https://www.fotonower.com/'' -s summary_report -M 0 -S 0 -U 100,100,100 import MySQLdb succeeded Traceback (most recent call last): File "/home/admin/workarea/git/Velours/python/mtr/database_queries/general_queries.py", line 42, in __init__ self.db_dict = MySQLdb.connect(host=host, db=dbname, user=user, passwd=password, cursorclass=MySQLdb.cursors.DictCursor) 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/summary_report_python.py", line 1022, in main(x.database, x.interval, x.ssh_user, x.ssh_host, x.ssh_key, x.list_test, x.perline, x.host_log, x.host_api, x.user_mail, x.verbose, x.serveur_python_test) File "/home/admin/workarea/git/Velours/python/prod/summary_report_python.py", line 49, in main gq = mtr.database_queries.general_queries.general_queries( 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 0.26user 0.06system 0:00.51elapsed 63%CPU (0avgtext+0avgdata 53708maxresident)k 112inputs+0outputs (0major+9737minor)pagefaults 0swaps