--> --> -->
 
 
InternalError
Python 3.2.3: /home/stufffor/bin/python
Thu Apr 2 23:36:42 2020

A problem occurred in a Python script. Here is the sequence of function calls leading up to the error, in the order they occurred.

 /home/stufffor/public_html/handler.py in ()
     12 os.environ['html_redirect'] = os.path.basename(os.environ['REDIRECT_URL']).rsplit('.', 1)[0]
     13 if not os.environ['html_redirect']:
     14     os.environ['html_redirect'] = 'index'
=>   15 import webapp
     16 
webapp undefined
 /home/stufffor/public_html/cgi-lib/webapp.py in ()
      7 import decimal
      8 
=>    9 import common
     10 
     11 supports_cookies = common.getCookie('supported')
common undefined
 /home/stufffor/public_html/cgi-lib/common.py in ()
     31 site_path = os.environ['site_path']
     32 
=>   33 conn = DataAccess.Connection(os.environ['site_db'], 'stufffor', 'scoutingfun01!')
     34 new_cookies = cookies.SimpleCookie()
     35 form = cgi.FieldStorage()
conn undefined, DataAccess = None, DataAccess.Connection undefined, os = None, os.environ undefined
 /home/stufffor/public_html/cgi-lib/DataAccess.py in __init__(self=<DataAccess.Connection object>, db='stufffor_dev', user='stufffor', passwd='scoutingfun01!')
     13             user=user,
     14             passwd=passwd,
=>   15             cursorclass=pymysql.cursors.DictCursor
     16         )
     17         self.conn.autocommit(True)
cursorclass undefined, global pymysql = <module 'pymysql' from '/home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/__init__.py'>, pymysql.cursors = <module 'pymysql.cursors' from '/home/stufffor/p.../lib/python3.2/site-packages/pymysql/cursors.py'>, pymysql.cursors.DictCursor = <class 'pymysql.cursors.DictCursor'>
 /home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/__init__.py in Connect(*args=(), **kwargs={'charset': 'utf8', 'cursorclass': <class 'pymysql.cursors.DictCursor'>, 'db': 'stufffor_dev', 'host': '127.0.0.1', 'passwd': 'scoutingfun01!', 'user': 'stufffor'})
     91     """
     92     from .connections import Connection
=>   93     return Connection(*args, **kwargs)
     94 
     95 def get_client_info():  # for MySQLdb compatibility
Connection = <class 'pymysql.connections.Connection'>, args = (), kwargs = {'charset': 'utf8', 'cursorclass': <class 'pymysql.cursors.DictCursor'>, 'db': 'stufffor_dev', 'host': '127.0.0.1', 'passwd': 'scoutingfun01!', 'user': 'stufffor'}
 /home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/connections.py in __init__(self=<pymysql.connections.Connection object>, host='127.0.0.1', user='stufffor', passwd='scoutingfun01!', db='stufffor_dev', port=3306, unix_socket=None, charset='utf8', sql_mode=None, read_default_file=None, conv={0: <function convert_decimal>, 1: <function convert_int>, 2: <function convert_int>, 3: <function convert_long>, 4: <function convert_float>, 5: <function convert_float>, 7: <function convert_mysql_timestamp>, 8: <function convert_long>, 9: <function convert_int>, 10: <function convert_date>, ...}, use_unicode=True, client_flag=107021, cursorclass=<class 'pymysql.cursors.DictCursor'>, init_command=None, connect_timeout=None, ssl=None, read_default_group=None, compress=None, named_pipe=None)
    573         self.connect_timeout = connect_timeout
    574 
=>  575         self._connect()
    576 
    577         self._result = None
self = <pymysql.connections.Connection object>, self._connect = <bound method Connection._connect of <pymysql.connections.Connection object>>
 /home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/connections.py in _connect(self=<pymysql.connections.Connection object>)
    739             self.wfile = self.socket.makefile("wb")
    740             self._get_server_information()
=>  741             self._request_authentication()
    742         except socket.error as e:
    743             raise OperationalError(2003, "Can't connect to MySQL server on %r (%s)" % (self.host, e.args[0]))
self = <pymysql.connections.Connection object>, self._request_authentication = <bound method Connection._request_authentication of <pymysql.connections.Connection object>>
 /home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/connections.py in _request_authentication(self=<pymysql.connections.Connection object>)
    794         
    795     def _request_authentication(self):
=>  796         self._send_authentication()
    797 
    798     def _send_authentication(self):
self = <pymysql.connections.Connection object>, self._send_authentication = <bound method Connection._send_authentication of <pymysql.connections.Connection object>>
 /home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/connections.py in _send_authentication(self=<pymysql.connections.Connection object>)
    843 
    844         auth_packet = MysqlPacket(self)
=>  845         auth_packet.check_error()
    846         if DEBUG: auth_packet.dump()
    847 
auth_packet = <pymysql.connections.MysqlPacket object>, auth_packet.check_error = <bound method MysqlPacket.check_error of <pymysql.connections.MysqlPacket object>>
 /home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/connections.py in check_error(self=<pymysql.connections.MysqlPacket object>)
    339       errno = unpack_uint16(self.read(2))
    340       if DEBUG: print("errno = %d" % errno)
=>  341       raise_mysql_exception(self.__data)
    342 
    343   def dump(self):
global raise_mysql_exception = <function raise_mysql_exception>, self = <pymysql.connections.MysqlPacket object>, self.__data undefined
 /home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/err.py in raise_mysql_exception(data=b'\xff\x10\x04#08004Too many connections')
    140 def raise_mysql_exception(data):
    141     errinfo = _get_error_info(data)
=>  142     _check_mysql_exception(errinfo)
    143     
    144 
global _check_mysql_exception = <function _check_mysql_exception>, errinfo = (1040, '08004', 'Too many connections')
 /home/stufffor/python/rel/lib/python3.2/site-packages/pymysql/err.py in _check_mysql_exception(errinfo=(1040, '08004', 'Too many connections'))
    136 
    137     # couldn't find the right error number
=>  138     raise InternalError(errno, errorvalue)
    139 
    140 def raise_mysql_exception(data):
global InternalError = <class 'pymysql.err.InternalError'>, errno = 1040, errorvalue = 'Too many connections'

InternalError: (1040, 'Too many connections')
      args = (1040, 'Too many connections')
      with_traceback = <built-in method with_traceback of InternalError object>