Skip to content

Instantly share code, notes, and snippets.

@danielroseman
Created March 12, 2011 18:57
Show Gist options
  • Save danielroseman/867475 to your computer and use it in GitHub Desktop.
Save danielroseman/867475 to your computer and use it in GitHub Desktop.
Traceback (most recent call last):
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/eventlet/wsgi.py", line 336, in handle_one_response
result = self.application(self.environ, start_response)
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/core/handlers/wsgi.py", line 245, in __call__
response = middleware_method(request, response)
File "/home/convore/convore/django_ext/middleware/log.py", line 30, in process_response
'trk': getattr(request, 'trk', None),
File "/home/convore/convore/django_ext/logging.py", line 27, in log_event
if has_session and request.user.is_authenticated():
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/contrib/auth/middleware.py", line 9, in __get__
request._cached_user = get_user(request)
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/contrib/auth/__init__.py", line 102, in get_user
user = backend.get_user(user_id) or AnonymousUser()
File "/home/convore/convore/django_ext/authentication_backends.py", line 9, in get_user
return User.objects.select_related('profile').get(pk=user_id)
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/db/models/query.py", line 342, in get
num = len(clone)
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/db/models/query.py", line 80, in __len__
self._result_cache = list(self.iterator())
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/db/models/query.py", line 271, in iterator
for row in compiler.results_iter():
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 677, in results_iter
for rows in self.execute_sql(MULTI):
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/db/models/sql/compiler.py", line 731, in execute_sql
cursor = self.connection.cursor()
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/db/backends/__init__.py", line 75, in cursor
cursor = self._cursor()
File "/home/convore/virtualenvs/convore/lib/python2.6/site-packages/django/db/backends/postgresql_psycopg2/base.py", line 136, in _cursor
self.connection = Database.connect(**conn_params)
OperationalError: could not connect to server: Cannot assign requested address
Is the server running on host "127.0.0.1" and accepting
TCP/IP connections on port 6432?
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment