gx14
gx14

Reputation: 263

Encountering 502 re-installing django-haystack

I had previously successfully installed and tested out django-haystack, thought it wasn't what I wanted, and uninstalled it*. Now, I'm having trouble re-installing haystack. It's like a messy breakup/reconciliation situation.

In particular, adding ANY haystack settings OR 'haystack', to INSTALLED_APPS in my settings.py file drastically breaks everything and I end up with a 502 response via Cloudflare, and Gunicorn telling me:

raise HaltServer(reason, self.WORKER_BOOT_ERROR)
gunicorn.errors.HaltServer: <HaltServer 'Worker failed to boot.' 3>

Here's what I've tried so far:

  1. Forcing a re-install of django-haystack (thinking I might have uninstalled it incorrectly),
  2. Uninstalling django-silk, which I installed after removing django-haystack (thought it could be a case of 3rd party apps interfering with each other...),
  3. Installing and running django-watson, and after finding out that it's not fast enough for my needs, uninstalling it (this one is just anecdotal I guess).

Any ideas?


*Don't know if this information will be of any use, but here's what I did when uninstalling haystack the first time round:

Even more info:

$ pip show django-haystack 
---
Name: django-haystack
Version: 2.4.0
Location: .../lib/python2.7/site-packages # truncated path
Requires: Django


$ pip show Whoosh
---
Name: Whoosh
Version: 2.7.0
Location: .../lib/python2.7/site-packages # truncated path again
Requires: 

Upvotes: 0

Views: 257

Answers (1)

gx14
gx14

Reputation: 263

Figured it out after getting some sleep! A spare ) in HAYSTACK_CONNECTIONS was the source of all my troubles..!

Upvotes: 1

Related Questions