Every time I run drush searchlight-index I get the following error FATAL: config file '/Volumes/Macintosh' does not exist or is not readable.
I'm working on Mac OS X v10.5.8 and I have MAMP installed.
First I followed Clinton's tutorial to get sphinx installed but things failed when I tried to run the configuration for sphinx ./configure --prefix=/usr/local --with-mysql=/opt/local/lib/mysql5 because I am using MAMP.
My next step was to follow Marcus' tutorial and I managed to completed the entire tutorial with out any error.
Then I moved into my website and run drush searchlight-conf which returns:
/Volumes/Macintosh HD/Users/alberto/Sites/sphinx/sphinx.conf was written successfully. [success]
/Volumes/Macintosh HD/Users/alberto/Sites/sphinx/index.d/fake_site_node.conf was written successfully. [success]
Sphinx configuration files were written [success]
Array
(
[db-url] => mysql://user:password@localhost/fake_db
)
And finally drush searchlight-index which returns:
Regenerated the Sphinx configuration file [success]
FATAL: config file '/Volumes/Macintosh' does not exist or is not readable
Indexing complete. [success]
Search daemon started. [success]
Obviously the space in the path is causing problems but even when I manually edit the file "/Volumes/Macintosh HD/Users/alberto/Sites/sphinx/sphinx.conf" I keep getting the same problem.
Any ideas of how to solve this?
Thanks in advance.
Comments
Comment #1
tylor commentedI was helping Alberto debug this: it was because the path in his terminal window was /Volumes/Macintosh HD/Users/alberto/Sites/..., when we switched to /Users/alberto/Sites/... (effectively the same), everything worked fine.
It seems this command does not handle the space in 'Macintosh HD' directory. This looks like it might actually be a bug with drush, since drushIndex() calls indexer using a path derived using drush_locate_root().