Indexing fails

When I try to index our application it fails with the following message: "undefined method `[]' for nil:NilClass". We're using the default database on Cedar.

Gemfile:

# These are the versions recommended by Heroku
gem 'thinking-sphinx',   '2.0.4'
gem 'flying-sphinx',     '0.5.0'

sphinx.yml:

development:
  enable_star: 1
  min_infix_len: 3
  max_matches: 10000
production:
  version: 1.10-beta
  enable_star: 1
  min_infix_len: 3
  max_matches: 10000

Can you help me out with this problem?

  1. The problem appears to be that the DATABASE_URL environment variable isn't set on our dyno. I have also contacted Heroku support to figure out why this is the case.

  2. Hi Manfred

    Also, you'll need the latest FS gem for Cedar - best to use the git repo as your source: git://github.com/flying-sphinx/flying-sphinx.git

    Give that a spin, see if it helps matters.

    Pat

  3. Ah thanks! Maybe you could add some documentation about running on Cedar? I'm new to the platform so I didn't realize the default documentation is incorrect for Cedar.

  4. Okay, I've updated all the documentation on flying-sphinx.com - but not the one on Heroku's site yet. It seems their admin interface for that isn't paying attention to my requests. I'll get in touch with them and get it fixed.

  5. Also: flying-sphinx 0.5.1 has the Cedar fix - so you don't need to use the git repo as a source if you'd rather use the normal gem.

  6. Thanks for the quick reply, that's great.

  7. Pat Allan closed this discussion on 30 Jul, 2011 05:25 AM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac

Recent Discussions