Rails 3 heroku run rake fs:index -- Don't know how to build task 'fs:index'

I have my Rails 3 application running on Heroku. I am using Thinking Sphinx search engine into my application. For making it work with Heroku, I have added a flying-sphinx gem to my gemfile as suggested in the Heroku docs.

This is what I have in my gemfile

gem 'thinking-sphinx', '2.0.13' gem 'flying-sphinx', '0.8.0'

As per the steps mentioned here https://devcenter.heroku.com/articles/flying_sphinx, After adding the flying-sphinx addon (Heroku addons:add flying_sphinx:wooden), when I run heroku run rake fs:index I get following error: Don't know how to build task 'fs:index'.

The application name is boiling-hollows-1018

  1. Hi there

    Can you upgrade flying-sphinx to 0.8.4 and see if that helps? The previous 0.8.x releases had some issues.

    Pat

  2. Sure... Thanks for the quick response.

  3. flying-sphinx 0.8.4
    directory: .rvm/gems/ruby-1.9.3-p194@liblex/bin/flying-sphinx
    heroku run rake flying-sphinx:index
    Running rake flying-sphinx:index attached to terminal... up, run.1
    rake aborted!
    Don't know how to build task 'flying-sphinx:index'
    /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/task_manager.rb:49:in []' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:115:ininvoke_task' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block (2 levels) in top_level' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:ineach' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:94:in block in top_level' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:instandard_exception_handling' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:88:in top_level' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:66:inblock in run' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:133:in standard_exception_handling' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/lib/rake/application.rb:63:inrun' /app/vendor/bundle/ruby/1.9.1/gems/rake-0.9.2.2/bin/rake:33:in <top (required)>' /app/vendor/bundle/ruby/1.9.1/bin/rake:19:inload' /app/vendor/bundle/ruby/1.9.1/bin/rake:19:in `'

  4. Can you try either the fs:index task, or the following:

        heroku run flying-sphinx configure
        heroku run flying-sphinx index

    There isn't actually a flying-sphinx:index task, only the shorter fs version.

    Cheers

    Pat

  5. This seems like an environmental issue with versions or configuration: The results of run either of the above tasks:

    martin-fishers-macbook-pro~/Sites/liblex> heroku run flying-sphinx configure
    Running flying-sphinx configure attached to terminal... up, run.1
    bash: flying-sphinx: command not found
    martin-fishers-macbook-pro~/Sites/liblex> heroku run flying-sphinx index
    Running flying-sphinx index attached to terminal... up, run.1
    bash: flying-sphinx: command not found

  6. That's a little surprising. I've seen that issue with earlier 0.8 releases, but had it working reliably with my tests on 0.8.4. What about the fs:index rake task?

  7. gem 'pg'
    gem 'thinking-sphinx', '2.0.13'
    gem 'flying-sphinx', '0.8.4'

    heroku run rake fs:index
    Running rake fs:index attached to terminal... up, run.1
    rake aborted!
    Don't know how to build task 'fs:index'

  8. Wow, something odd is happening. Would it be possible for you to give me access to your app so I can investigate directly? (My heroku account email is [email blocked]).

    Also, it's 1am here, so I'll investigate further on my morning.

    Cheers

    Pat

  9. sure thanks for taking the time and get some rest.

  10. same issue here :(

  11. Hi Alex

    I've just resolved this issue directly for Martin, but could you elaborate a bit more on your setup? What versions of rails, thinking-sphinx and flying-sphinx are you using? Are you on the Cedar or Bamboo stack?

    Cheers

    Pat

  12. this is my full gem list

    Using rake (0.9.2.2)
    Using i18n (0.6.1)
    Using multi_json (1.3.6)
    Using activesupport (3.2.1)
    Using builder (3.0.4)
    Using activemodel (3.2.1)
    Using erubis (2.7.0)
    Using journey (1.0.4)
    Using rack (1.4.1)
    Using rack-cache (1.2)
    Using rack-test (0.6.2)
    Using hike (1.2.1)
    Using tilt (1.3.3)
    Using sprockets (2.1.3)
    Using actionpack (3.2.1)
    Using mime-types (1.19)
    Using polyglot (0.3.3)
    Using treetop (1.4.11)
    Using mail (2.4.4)
    Using actionmailer (3.2.1)
    Using arel (3.0.2)
    Using tzinfo (0.3.34)
    Using activerecord (3.2.1)
    Using activeresource (3.2.1)
    Using bundler (1.2.1)
    Using rack-ssl (1.3.2)
    Using json (1.7.5)
    Using rdoc (3.12)
    Using thor (0.14.6)
    Using railties (3.2.1)
    Using rails (3.2.1)
    Using acts-as-taggable-on (2.2.2)
    Using bcrypt-ruby (3.0.1)
    Using coffee-script-source (1.4.0)
    Using execjs (1.4.0)
    Using coffee-script (2.2.0)
    Using coffee-rails (3.2.2)
    Using dalli (2.3.0)
    Using multipart-post (1.1.5)
    Using faraday (0.8.4)
    Using faraday_middleware (0.9.0)
    Using hashie (1.2.0)
    Using rash (0.3.2)
    Using riddle (1.5.3)
    Using thinking-sphinx (2.0.13)
    Using flying-sphinx (0.8.4)
    Using friendly_id (4.0.8)
    Using httpauth (0.2.0)
    Using jquery-rails (2.1.3)
    Using mysql2 (0.3.11)
    Using newrelic_rpm (3.5.0.1)
    Using oauth (0.4.7)
    Using oauth2 (0.6.1)
    Using rails_autolink (1.0.9)
    Using recaptcha (0.3.4)
    Using sass (3.2.1)
    Using sass-rails (3.2.5)
    Using simple_oauth (0.1.9)
    Using sorcery (0.7.13)
    Using twitter (2.1.1)
    Using uglifier (1.3.0)
    Using will_paginate (3.0.3)
    Using yajl-ruby (1.1.0)
    Using yaml_db (0.2.3)

    and I am on cedar stack :)

  13. sorry, gem pg (0.14.1) instead of the mysql one

  14. Thanks Alex. What's the output for these commands: `heroku run flying-sphinx configure` and `heroku run rake fs:index`?

  15. Alex, just following up on this - maybe you missed my previous message since we posted within seconds of each other. Any word on the output of the rake task and/or configure command?

Reply to this discussion Internal reply only staff will see it

Markdown

Attaching KB article:

» »

Read more…

Attach files

Up to 10MB each.

If you don't have an account yet, we need to confirm you're human and not a machine trying to post spam.

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