Indexing fails

manfred's Avatar

manfred

22 Jul, 2011 12:29 PM

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. 1 Posted by manfred on 22 Jul, 2011 01:05 PM

    manfred's Avatar

    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. Support Staff 2 Posted by Pat Allan on 22 Jul, 2011 01:40 PM

    Pat Allan's Avatar

    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. 3 Posted by manfred on 22 Jul, 2011 01:45 PM

    manfred's Avatar

    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. Support Staff 4 Posted by Pat Allan on 22 Jul, 2011 02:10 PM

    Pat Allan's Avatar

    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. Support Staff 5 Posted by Pat Allan on 22 Jul, 2011 02:11 PM

    Pat Allan's Avatar

    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. 6 Posted by manfred on 22 Jul, 2011 02:16 PM

    manfred's Avatar

    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