Note that there are some explanatory texts on larger screens.

plurals
  1. POConnectionError: Error 2 connected to unix socket in Python/Django Redis
    text
    copied!<p>I'm trying to run a django project locally on a brand new Mac. It was working up until yesterday, and I have no clue what happened, but all of a sudden I started getting Redis errors.</p> <p>I can load pages that don't query the database, but once I try to do a search, which relies partly on Redis, it doesn't work.</p> <p>Any ideas? here is the traceback.</p> <pre><code>Traceback (most recent call last): File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/wsgiref/handlers.py", line 85, in run self.result = application(self.environ, self.start_response) File "/Library/Python/2.7/site-packages/django/contrib/staticfiles/handlers.py", line 67, in __call__ return self.application(environ, start_response) File "/Library/Python/2.7/site-packages/django/core/handlers/wsgi.py", line 241, in __call__ response = self.get_response(request) File "/Library/Python/2.7/site-packages/django/core/handlers/base.py", line 179, in get_response response = self.handle_uncaught_exception(request, resolver, sys.exc_info()) File "/Library/Python/2.7/site-packages/django/core/handlers/base.py", line 111, in get_response response = callback(request, *callback_args, **callback_kwargs) File "/Users/dlitwak/mozio/dotcloud/demo/search/views.py", line 391, in results cache.setDistanceAndDuration(distance, time, request.user.username) File "/Users/dlitwak/mozio/dotcloud/demo/cache.py", line 305, in setDistanceAndDuration self.cache.set(key, value, 1800) File "/Library/Python/2.7/site-packages/redis_cache/cache.py", line 218, in set result = self._set(key, pickle.dumps(value), int(timeout), client, _add_only) File "/Library/Python/2.7/site-packages/redis_cache/cache.py", line 199, in _set return client.setex(key, value, timeout) File "/Library/Python/2.7/site-packages/redis/client.py", line 1221, in setex return self.execute_command('SETEX', name, time, value) File "/Library/Python/2.7/site-packages/redis/client.py", line 338, in execute_command connection.send_command(*args) File "/Library/Python/2.7/site-packages/redis/connection.py", line 287, in send_command self.send_packed_command(self.pack_command(*args)) File "/Library/Python/2.7/site-packages/redis/connection.py", line 269, in send_packed_command self.connect() File "/Library/Python/2.7/site-packages/redis/connection.py", line 217, in connect raise ConnectionError(self._error_message(e)) ConnectionError: Error 2 connecting to unix socket: 127.0.0.1. No such file or directory. </code></pre> <p>We are running MYSQL. I can access the db through the terminal, so I don't think it's a DB access problem.</p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload