Hi,
I've just added Flying Sphinx to my Rails 3 Heroku app (running on Cedar). I've set it up, as far as I can understand, according to http://flying-sphinx.com/docs#installation and installation is fine.
However, when running "heroku run rake fs:index", I'm getting the following output:
$ heroku run rake ts:index
Running rake ts:index attached to terminal... up, run.3
Sphinx cannot be found on your system. You may need to configure the following
settings in your config/sphinx.yml file:
* bin_path
* searchd_binary_name
* indexer_binary_name
For more information, read the documentation:
http://freelancing-god.github.com/ts/en/advanced_config.html
Generating Configuration to /app/config/production.sphinx.conf
rake aborted!
Read-only file system - /mnt/sphinx`
I'm probably missing something obvious here, do anyone know what? I'm rather new to heroku as well as rails, so not sure where to begin the trouble shooting. %-)
#1 Posted by Roger Kind Kris... on 17 Aug, 2011 05:03 AM
Oh, and I know about the fix for the first warning, it's the "Read-only file system" thing that's got me stumped.
#2 Posted by Pat Allan Support staff on 17 Aug, 2011 06:02 AM
Hi Roger
I'm not sure why it even cares about the read-only file system - I've just indexed on both bamboo and cedar apps, and I don't see that message.
What version of Thinking Sphinx are you using? Maybe it's not new enough to pick up the relevant settings from Flying Sphinx? Does adding the version number to sphinx.yml (as mentioned in the docs) help things?
#3 Posted by Roger Kind Kris... on 17 Aug, 2011 06:28 AM
I upgraded to Thinking Sphinx 2.0.4, since the docs said that was the minimum required version and I was running 2.0.3 previously, and Flying Sphinx 0.6.0 since that was used in the examples.
I'll check tomorrow if adding the version number to sphynx.yml fixes it. I see, after reading up on some gem wizardry (ruby/rails newbie, remember:), that the latest TS version is 2.0.5, so I'll try upgrading that one as well.
#4 Posted by Pat Allan Support staff on 17 Aug, 2011 06:33 AM
I'm wondering if it all comes down to the version number - but yeah, give it all a shot, let me know how you go :)
#5 Posted by Roger Kind Kris... on 17 Aug, 2011 10:00 AM
Actually had a few minutes to get the environment up at my current location. Added the file, with the contents beneath, but it did not seem to help. Now the output is:
A peek into the logs (
heroku logscommand) doesn't seem to reveal anything interesting:I attached the Gemfile* files. Is there anything else I can supply that might give a clue?
#6 Posted by Pat Allan Support staff on 17 Aug, 2011 10:09 AM
Ah, I should have spotted this straight up - when running the rake tasks on Heroku (as opposed to locally), the prefix is fs, not ts - which explains the read-only complaint as well (it's trying to create the directory, but can't on Heroku's servers).
So, try:
#7 Posted by Roger Kind Kris... on 17 Aug, 2011 10:16 AM
Ah, that got me one step further. I even thought I was running fs:index, as witnessed by my initial question. ;) Thanks for the quick responses!
... now just need to work around that CRC32() issue I see documented. :)
#8 Posted by Pat Allan Support staff on 17 Aug, 2011 10:22 AM
Yeah, it's a little annoying Heroku don't have that in their shared database setup. Happy to talk through options around that if you need help.
#9 Posted by Roger Kind Kris... on 17 Aug, 2011 07:42 PM
Hmm, some pointers would be appreciated! Should I start a new thread?
#10 Posted by Pat Allan Support staff on 17 Aug, 2011 11:07 PM
Yeah, a new thread sounds good - if you could include the define_index block and purpose of CRC'd columns, that'd be great.
Pat
Pat Allan closed this discussion on 23 Aug, 2011 11:12 PM.