--> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.7.9: /usr/bin/python
Tue Dec 7 08:08:56 2021

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/runnerst/cgi-bin/controller.py in ()
    156 # find current context
    157 if not parts or len(parts)<2 or parts[1]=='':
=>  158     handleRootContext(lang)
    159 
    160 context = parts[1]
handleRootContext = <function handleRootContext>, lang = 'fr'
 /home/runnerst/cgi-bin/controller.py in handleRootContext(lang='fr')
     24     import pageHome
     25     printHeader()
=>   26     print pageHome.render(lang).encode('utf-8')
     27     sys.exit()
     28 
pageHome = <module 'pageHome' from '/home/runnerst/cgi-bin/pageHome.pyc'>, pageHome.render = <function render>, lang = 'fr', ).encode = <built-in method encode of str object>
 /home/runnerst/cgi-bin/pageHome.py in render(lang='fr')
     16     template = Template(tpl.render('home', lang))
     17 
=>   18     con = db.getConnection()
     19     cursor = db.getCursor(con)
     20 
con undefined, global db = <module 'db' from '/home/runnerst/cgi-bin/db.pyc'>, db.getConnection = <function getConnection>
 /home/runnerst/cgi-bin/db.py in getConnection(params={'database': 'runnerstats', 'host': 'mysql51-70.perso', 'passwd': 'run4life', 'user': 'runnerstats'})
     26 #def getConnection(params=localParams):
     27 def getConnection(params=ovhParams):
=>   28     db = MySQLdb.connect(params['host'], params['user'], params['passwd'], params['database'], cursorclass=MySQLdb.cursors.DictCursor, charset='utf8', init_command='SET NAMES UTF8')
     29     return db
     30 
db undefined, global MySQLdb = <module 'MySQLdb' from '/usr/lib/python2.7/dist-packages/MySQLdb/__init__.pyc'>, MySQLdb.connect = <function Connect>, params = {'database': 'runnerstats', 'host': 'mysql51-70.perso', 'passwd': 'run4life', 'user': 'runnerstats'}, cursorclass undefined, MySQLdb.cursors = <module 'MySQLdb.cursors' from '/usr/lib/python2.7/dist-packages/MySQLdb/cursors.pyc'>, MySQLdb.cursors.DictCursor = <class 'MySQLdb.cursors.DictCursor'>, charset undefined, init_command undefined
 /usr/lib/python2.7/dist-packages/MySQLdb/__init__.py in Connect(*args=('mysql51-70.perso', 'runnerstats', 'run4life', 'runnerstats'), **kwargs={'charset': 'utf8', 'cursorclass': <class 'MySQLdb.cursors.DictCursor'>, 'init_command': 'SET NAMES UTF8'})
     79     """Factory function for connections.Connection."""
     80     from connections import Connection
=>   81     return Connection(*args, **kwargs)
     82 
     83 connect = Connection = Connect
Connection = <class 'MySQLdb.connections.Connection'>, args = ('mysql51-70.perso', 'runnerstats', 'run4life', 'runnerstats'), kwargs = {'charset': 'utf8', 'cursorclass': <class 'MySQLdb.cursors.DictCursor'>, 'init_command': 'SET NAMES UTF8'}
 /usr/lib/python2.7/dist-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 8495dd4>, *args=('mysql51-70.perso', 'runnerstats', 'run4life', 'runnerstats'), **kwargs={'charset': 'utf8', 'cursorclass': <class 'MySQLdb.cursors.DictCursor'>, 'init_command': 'SET NAMES UTF8'})
    185         kwargs2['client_flag'] = client_flag
    186 
=>  187         super(Connection, self).__init__(*args, **kwargs2)
    188 
    189         self.encoders = dict([ (k, v) for k, v in conv.items()
builtin super = <type 'super'>, global Connection = <class 'MySQLdb.connections.Connection'>, self = <_mysql.connection closed at 8495dd4>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 8495dd4>>, args = ('mysql51-70.perso', 'runnerstats', 'run4life', 'runnerstats'), kwargs2 = {'client_flag': 196608, 'conv': {0: <class 'decimal.Decimal'>, 1: <type 'int'>, 2: <type 'int'>, 3: <type 'long'>, 4: <type 'float'>, 5: <type 'float'>, 7: <function mysql_timestamp_converter>, 8: <type 'long'>, 9: <type 'int'>, 10: <function Date_or_None>, ...}, 'init_command': 'SET NAMES UTF8'}

<class '_mysql_exceptions.OperationalError'>: (2005, "Unknown MySQL server host 'mysql51-70.perso' (0)")
      args = (2005, "Unknown MySQL server host 'mysql51-70.perso' (0)")
      message = ''