Rake Task Index

Jonas Mora's Avatar

Jonas Mora

21 Nov, 2014 10:22 PM

I'm getting the following error, could you help me?

heroku run bundle exec flying-sphinx index video_core --app phoenix-production
Running `bundle exec flying-sphinx index video_core` attached to terminal... up, run.9172
I, [2014-11-21T22:16:29.372194 #2]  INFO -- : Executing Action: index
Sphinx 2.1.4-id64-release (rel21-r4421)
Copyright (c) 2001-2013, Andrew Aksyonoff
Copyright (c) 2008-2013, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/mnt/local/flying-sphinx/97c779bd79912d9e5/sphinx.conf'...
indexing index 'video_core'...
FATAL: failed to lock /mnt/local/flying-sphinx/97c779bd79912d9e5/indexes/video_core.tmp.spl: Resource temporarily unavailable, will not index. Try --rotate option.
I, [2014-11-21T22:16:31.472970 #2]  INFO -- : Action Finished: index

Following the rotate suggestion

heroku run bundle exec flying-sphinx index video_core --rotate --app phoenix-production
Running `bundle exec flying-sphinx index video_core --rotate` attached to terminal... up, run.2106
I, [2014-11-21T22:18:59.633757 #2]  INFO -- : Executing Action: index
Sphinx 2.1.4-id64-release (rel21-r4421)
Copyright (c) 2001-2013, Andrew Aksyonoff
Copyright (c) 2008-2013, Sphinx Technologies Inc (http://sphinxsearch.com)

using config file '/mnt/local/flying-sphinx/97c779bd79912d9e5/sphinx.conf'...
indexing index 'video_core'...
FATAL: failed to lock /mnt/local/flying-sphinx/97c779bd79912d9e5/indexes/video_core.tmp.spl: Resource temporarily unavailable, will not index. Try --rotate option.
I, [2014-11-21T22:19:01.752562 #2]  INFO -- : Action Finished: index
  1. Support Staff 1 Posted by Pat Allan on 22 Nov, 2014 01:20 AM

    Pat Allan's Avatar

    Hi Jonas

    I'm currently discussing this issue with your colleague Eduardo - the issue is that there's already an existing indexer process (so, the video index can't be processed twice concurrently).

    Also, for reference - the --rotate flag cannot be passed through via the Flying Sphinx CLI tool, but it is automatically applied when the Sphinx daemon is running (which it certainly is in this case). Sphinx just doesn't check if it's there when making that suggestion.

  2. 2 Posted by Jonas Mora on 24 Nov, 2014 05:08 PM

    Jonas Mora's Avatar

    Thank you very much! Have a nice day!

Reply to this discussion

Internal reply

Formatting help / Preview (switch to plain text) No formatting (switch to Markdown)

Attaching KB article:

»

Attached Files

You can attach files up to 10MB

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