I get this error intermittently, but when this happens, my automatic integration testing using Django LiveServerTestCase leads to a hang that causes the following error:
WSGIServerException: [Errno 8] nodename nor servname provided, or not known
A crash occurs as soon as the main test class is created from any given test (this happens after creating the database in memory and loading my devices).
My setup is as follows:
- Mac OSX Snow leopard
- Django 1.4.1
- Virtual environment (hosting all Python libraries)
- sqlite (for testing) MySQL / InnoDB for production
- Local Git code for branch hulls
While this error occurs only during testing in our local network in my office. At home, the tests pass fine, but then the tests work fine again at my work for a while, so intermittent disappointment.
In the spirit of troubleshooting, I created a new virtualenv, deleted all .pyc files throughout the system, reinstalled MySQL from the source, as well as all the necessary libraries.
If someone meets this mistake and knows how to defeat it, share it.
thanks
frozenpaw
source share