News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Where can i find /usr/local/etc/

Started by ryan_dwight, February 02, 2013, 04:17:05 PM

Previous topic - Next topic

ryan_dwight

any suggestion on what client should i use

yes the indexer was successful

Arantor

I personally use WinSCP with PuTTY on Windows.

So the indexer was successful, that shows that Sphinx can write to the folder where the data is just fine...

ryan_dwight

i just tried to configure sphinx again and when i tried to follow your suggestion on the folder

i got this error on inexer

[~/sphinx-0.9.9]# indexer --config /usr/local/etc/sphinx.conf --all
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/usr/local/etc/sphinx.conf'...
indexing index 'smf_base_index'...
FATAL: failed to lock /var/sphinx/data/smf_sphinx_base.index.spl: Resource temporarily unavailable, will not index. Try --rotate option.

Arantor

Do what it says...

What it's telling you is that the index is in use and you can't just re-run indexer. You have to use --rotate on the end of the indexer line.

ryan_dwight

thanks

when i tried this

searchd --config /usr/local/etc/sphinx.conf
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/usr/local/etc/sphinx.conf'...
listening on all interfaces, port=3312
listening on all interfaces, port=9306

is that working?

Arantor

Yes, that's working.

searchd is using the indexes and handling search requests.

The indexer can't replace those files while they're in use, thus you use --rotate so that indexer builds new indexes in new files, then tells searchd to switch them over.

ryan_dwight

i tried the search in smf but i got an error,

An Error Has Occurred!
Unable to access the search daemon

should i wait for the process or theres something wrong?

Arantor

If searchd is running, then it would imply the search settings in SMF are not configured appropriately...

ryan_dwight

any suggestions? or this is the end of it?

i ask my host to install it for me but they cant do it. they need to access the smf. i dont know why.

Arantor

OH FFS, are you even reading what I'm telling you?

ryan_dwight

yes ive read your last reply
Quote from: Arantor on February 07, 2013, 03:43:02 PM
If searchd is running, then it would imply the search settings in SMF are not configured appropriately...
i would appreciate if you can explain it to me. i just followed the steps.

one more thing is on the search method there are sphinx and sphinxql option. is that normal?

and in the package manager there is a
Sphinx for SMF    sphinx_0-9-7-rc2/smf_1-1-1

Arantor

You've read it but I don't think you've understood it.

Something is not configured. But you're not telling me what you've actually done.

Quoteone more thing is on the search method there are sphinx and sphinxql option. is that normal?

Yes. Which are you using? Which port is it set to?

Quoteand in the package manager there is a
Sphinx for SMF    sphinx_0-9-7-rc2/smf_1-1-1

Um, that wouldn't work very well on Sphinx 0.9.9 and SMF 2.0...

ryan_dwight

i tried both and both are not working.

regarding the port where can i check that one?

Arantor

Is there not an option in the settings for the port? There used to be...

ryan_dwight

i cant see anything in smf admin panel. i only saw on the search method and in the package manager.

where specifically should the settings located? because id checked and i think i didnt miss anything unless it was hidden somewhere.

Arantor

Hmm. Though now I double-check your comments, searchd is set to serve on both 3312 and 9306, which are the two ports that are default... and as such that should be correct.

OK, so next step, are we sure searchd is running?

From the shell... use the following command:
pgrep searchd

It should return a number if that is successful.

ryan_dwight

[~]# pgrep searchd
30212


this was the result

Arantor

So searchd is running, that's something. I didn't really need to know the number, the number just proves it is running (that is its id number)

So the question is why the API isn't talking to Sphinx... which set of files did you use, exactly?

ryan_dwight


Arantor


Advertisement: