Simple Machines Community Forum

SMF Support => Server Performance and Configuration => Topic started by: toontastic on September 04, 2019, 03:33:01 AM

Title: Sphinx - search issues
Post by: toontastic on September 04, 2019, 03:33:01 AM
I'm hoping this is the correct forum, apologies if not. When performing a search on our forum (http://www.newcastle-online.org) we have started to get the error:

Unable to access the search daemon

A search of this forum suggests its an error with Spinx. I don't have a single clue on how to fix this issue. I've tried looking through the sites WHM but see nothing about Sphinx. Any help at all is gratefully received.

Thanks.
Title: Re: Sphinx - search issues
Post by: Arantor on September 04, 2019, 03:44:42 AM
It won't be set up through WHM. Sphinx runs on the server, and usually has to be manually started once configured.

Do you have a server admin who would have set this up for you?
Title: Re: Sphinx - search issues
Post by: toontastic on September 04, 2019, 03:55:25 AM
We've had a change around in those running the website which is why I've come to ask these questions as don't really have anyone with high server knowledge any more... I can probably get any details needed, what do I need to do to manually start Sphinx again ?
Title: Re: Sphinx - search issues
Post by: Arantor on September 04, 2019, 04:15:36 AM
Command line access would be a start, then you'd need to find where on the server Sphinx is and restart it. You'd probably also need to check how the indexer is configured and probably need to restart that too.
Title: Re: Sphinx - search issues
Post by: toontastic on September 04, 2019, 04:39:39 AM
I have access to terminal. Looks like i've lots of questions to ask. Thanks.
Title: Re: Sphinx - search issues
Post by: Darkness7148 on September 04, 2019, 03:03:41 PM
That happens to me when the server is rebooted. I just go into SSH and type searchd to restart it.

I still can't figure out how to start Sphinx automatically when the server reboots.
Title: Re: Sphinx - search issues
Post by: Arantor on September 04, 2019, 03:07:53 PM
Quote from: StarScream123 on September 04, 2019, 03:03:41 PM
That happens to me when the server is rebooted. I just go into SSH and type searchd to restart it.

I still can't figure out how to start Sphinx automatically when the server reboots.

That's mostly dependent on your server's operating system flavour (namely whether it uses systemd or not). If it does use systemd, something like https://wiki.ubuntu.com/SystemdForUpstartUsers is probably a good place to start.
Title: Re: Sphinx - search issues
Post by: SpacePhoenix on September 05, 2019, 01:53:56 AM
Quote from: StarScream123 on September 04, 2019, 03:03:41 PM
That happens to me when the server is rebooted. I just go into SSH and type searchd to restart it.

I still can't figure out how to start Sphinx automatically when the server reboots.

I've never used Ubuntu but what about a cron job that checks every so many minuets of Sphinx is up, if it isn't, it gets rebooted
Title: Re: Sphinx - search issues
Post by: Arantor on September 05, 2019, 02:33:01 AM
That's what systemd will do for you. Other tool choices may vary.