--> --> -->
 
 
<class '_mysql_exceptions.OperationalError'>
Python 2.7.6: /usr/bin/python
Thu May 28 13:23:13 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/pwillworth/galaxyharvester.net/blog.py in ()
   1582     ###########################################
   1583     else:
   1584         renderHtml(entries, path, categorieslist, archivelist, admin, page, mode)
   1585 if __name__ == "__main__":
=> 1586     main()
main = <function main>
 /home/pwillworth/galaxyharvester.net/blog.py in main()
   1574 
   1575     if delcomment > 0 and len(entries) == 1:
=> 1576         renderDeleteComments(entries[0], delcomment)
   1577     elif feed:
   1578         renderFeed(entries, path, categorieslist, ent.getTotal())
global renderDeleteComments = <function renderDeleteComments>, entries = [<__main__.Entry instance>], delcomment = 7
 /home/pwillworth/galaxyharvester.net/blog.py in renderDeleteComments(entry=<__main__.Entry instance>, commentnum=7)
   1030 
   1031 def renderDeleteComments(entry, commentnum):
=> 1032     renderHtmlHeader("comments")
   1033     print "<div id=\"content3\">"
   1034     comments = entry.comments
global renderHtmlHeader = <function renderHtmlHeader>
 /home/pwillworth/galaxyharvester.net/blog.py in renderHtmlHeader(title='comments', links=[])
    712         loginResult = 'success'
    713 
=>  714     sess = dbSession.getSession(sid)
    715 
    716     if (sess != ''):
sess undefined, global dbSession = <module 'dbSession' from '/home/pwillworth/galaxyharvester.net/dbSession.pyc'>, dbSession.getSession = <function getSession>, sid = ''
 /home/pwillworth/galaxyharvester.net/dbSession.py in getSession(sid='')
     40 # look up a session id and see if it is valid
     41 def getSession(sid):
=>   42         conn = dbShared.ghConn()
     43         cursor = conn.cursor()
     44         cursor.execute("SELECT userID, expires FROM tSessions WHERE sid='" + sid + "'")
conn undefined, global dbShared = <module 'dbShared' from '/home/pwillworth/galaxyharvester.net/dbShared.pyc'>, dbShared.ghConn = <function ghConn>
 /home/pwillworth/galaxyharvester.net/dbShared.py in ghConn()
     38                 db = dbInfo.DB_NAME,
     39                 user = dbInfo.DB_USER,
=>   40                 passwd = dbInfo.DB_PASS)
     41         conn.autocommit(True)
     42         return conn
passwd undefined, global dbInfo = <module 'dbInfo' from '../dbInfo.pyc'>, dbInfo.DB_PASS = 'Carth@g3'
 /usr/lib/python2.7/dist-packages/MySQLdb/__init__.py in Connect(*args=(), **kwargs={'db': 'swgresource', 'host': 'mysql.galaxyharvester.net', 'passwd': 'Carth@g3', 'user': 'swgresource'})
     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 = (), kwargs = {'db': 'swgresource', 'host': 'mysql.galaxyharvester.net', 'passwd': 'Carth@g3', 'user': 'swgresource'}
 /usr/lib/python2.7/dist-packages/MySQLdb/connections.py in __init__(self=<_mysql.connection closed at 23a9bc0>, *args=(), **kwargs={'db': 'swgresource', 'host': 'mysql.galaxyharvester.net', 'passwd': 'Carth@g3', 'user': 'swgresource'})
    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 23a9bc0>, ).__init__ = <bound method Connection.__init__ of <_mysql.connection closed at 23a9bc0>>, args = (), 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>, ...}, 'db': 'swgresource', 'host': 'mysql.galaxyharvester.net', 'passwd': 'Carth@g3', 'user': 'swgresource'}

<class '_mysql_exceptions.OperationalError'>: (2003, "Can't connect to MySQL server on 'mysql.galaxyharvester.net' (111)")
      args = (2003, "Can't connect to MySQL server on 'mysql.galaxyharvester.net' (111)")
      message = ''