Hi Prakash I know problems like what you've described can crop up if the pid path and/or other paths weren't set up as noted in the documentation - essentially, you want all Sphinx files in shared directories, instead of tied to a specific release. Otherwise, Sphinx can lose the pid file, and thus it gets stuck trying to stop the daemon.
If all the paths are configured properly though, then I'm not sure... I guess it's something to investigate further the next time you deploy to staging? -- Pat On 10 Jun 2014, at 12:51 am, Prakash Murthy <[email protected]> wrote: > Thanks Pat, for the prompt response (as usual)! That does clarify. > > On our staging server, we are facing some issues with TS search functionality > not working after a deploy; so was wondering if these steps were required as > part of deploy. Fixed the issue by explicitly killing the searchd process and > starting it again with `rake ts:rebuild`. > > Regards, > Prakash > > > > On Mon, Jun 9, 2014 at 4:09 PM, Pat Allan <[email protected]> wrote: > Hi Prakash > > I don't recommend restarting Sphinx or symlinking directories as part of > deploys any more - this is why I've not put it in the docs for TS v3. The > only reason it remains for TS v1/2 is because it is what was originally > suggested. > > If you have your paths set up correctly (as covered in the deployment docs > for v3), then restarting is completely unnecessary on most deploys, and > symlinking is not required at all. You will only need to rebuild when you > change the structure of your indices, or add/remove indices. It's kind of > like a db:migrate. > > Hope this is clear! :) > > -- > Pat > > On 9 Jun 2014, at 10:46 pm, Prakash Murthy <[email protected]> wrote: > >> Hi >> >> Reading through the Deploying With Capistrano section in >> http://pat.github.io/thinking-sphinx/deployment.html page, I get an >> impression that the code included to stop ts/start ts/symlink indexes on >> deploy applies only to ThinkingSphinx v1/v2 and not to v3, as it is indented >> under the ThinkingSphinx v1/v2 header. Is this correct? >> >> The following code should be included while using v3 as well, right? >> before 'deploy:update_code', 'thinking_sphinx:stop' >> after 'deploy:update_code', 'thinking_sphinx:start' >> >> namespace :sphinx do >> desc "Symlink Sphinx indexes" >> task :symlink_indexes, :roles => [:app] do >> run "ln -nfs #{shared_path}/db/sphinx #{release_path}/db/sphinx" >> end >> end >> >> after 'deploy:finalize_update', 'sphinx:symlink_indexes' >> >> Thanks, >> Prakash >> > > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at http://groups.google.com/group/thinking-sphinx. > For more options, visit https://groups.google.com/d/optout. -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/thinking-sphinx. For more options, visit https://groups.google.com/d/optout.
