occasional database errors
Subject: occasional database errors
Newsgroups: gmane.comp.python.cherrypy
Date: 2008-11-14 23:21:15 GMT
I have written a web application for my company using cherrypy, python 2.5 and mysql. I access my DB with mySQLdb python module for the app and with phpMyAdmin for the management. The app is hosted on a machine within our network domain and is available internally only. In fact it's not even hosted on a server box, just run on a machine and accessed by the machines name http://computername/webapp. I started to get random database connection errors from mySQLdb lately when I had never gotten them before: [14/Nov/2008:12:06:57] HTTP Traceback (most recent call last): File "C:\Python25\lib\site-packages\cherrypy\_cprequest.py", line 606, in respond cherrypy.response.body = self.handler() File "C:\Python25\lib\site-packages\cherrypy\_cpdispatch.py", line 24, in __call__ return self.callable(*self.args, **self.kwargs) File "C:/Server/htdocs/hal\HubPage.py", line 413, in index firstname, lastname = self.getUser(username) File "C:/Server/htdocs/hal\root.py", line 386, in getUser conn, curs = self.dbConnect() File "C:/Server/htdocs/hal\root.py", line 459, in dbConnect conn = MySQLdb.connect( host='localhost', user='root', passwd='****', db='*****' ) File "C:\Python25\lib\site-packages\MySQLdb\__init__.py", line 74, in Connect return Connection(*args, **kwargs)(Continue reading)
RSS Feed