You can have multiple instances of Sphinx on a server - but you need to make sure (as you did for the test env) that they use different ports.
-- Pat On 29/08/2009, at 11:30 AM, viki wrote: > > Now I have another problem in production environment. > > I have two application on my production server > > "aflatune" and "sarasaves" so these two application have separate TS > configuration. > > But when I search something in "sarasaves" application, It takes > "aflatune" applications configuration files > > Error is > > Sphinx Error: index album_core,playlists_core,track_core: unknown > latitude attribute 'lat' > > > Here "index album_core,playlists_core,track_core" files are related to > "aflatune application" > > and "latitude attribute" is related to "sarasaves application". > > I don't understand how they mixed. Can you tell me whats actual > problem is ? > > My guess is that, may be on server there is only one instance if > sphinx? > > Any suggessions? > > Thanks, > Viki > > On Aug 29, 3:09 pm, Pat Allan <[email protected]> wrote: >> Ah, of course, I didn't think of the ports - although none of the >> errors seemed related to that. >> >> Still, good to know you got it working. >> >> -- >> Pat >> >> On 29/08/2009, at 11:05 AM, viki wrote: >> >> >> >>> Hello Pat, >> >>> My problem is sovled using creating new file in app/config/ >>> sphinx.yml and keeping old version of TS "thinking-sphinx - 1.1.6 " >> >>> It contains >> >>> development: >>> port: 3312 >>> test: >>> port: 3313 >>> production: >>> port: 3312 >> >>> Now I can run >>> rake thinking_sphinx:index >>> rake thinking_sphinx:index RAILS_ENV=test >> >>> and test with my data successfully. >> >>> I got help from your site === >>> http://freelancing-god.github.com/ts/en/advanced_config.html >>> which contains advanced configuration. >> >>> Thanks, >>> Viki >> >>> On Aug 29, 2:26 pm, Pat Allan <[email protected]> wrote: >>>> Hi Viki >> >>>> How do you have TS set up? As a gem? Or as a plugin? >> >>>> -- Pat >> >>>> On 29/08/2009, at 7:56 AM, viki wrote: >> >>>>> Hello Pat, thanks for reply, >> >>>>> I updated latest TS . >> >>>>> But now if i run >> >>>>> rake thinking_sphinx:index >>>>> I got following error >> >>>>> D:\sarasaves>rake thinking_sphinx:index --trace >>>>> (in D:/sarasaves) >>>>> ** Invoke thinking_sphinx:index (first_time) >>>>> ** Invoke thinking_sphinx:app_env (first_time) >>>>> ** Execute thinking_sphinx:app_env >>>>> ** Invoke environment (first_time) >>>>> ** Execute environment >>>>> ** Invoke environment >>>>> ** Execute thinking_sphinx:index >>>>> Generating Configuration to D:/sarasaves/config/ >>>>> development.sphinx.conf >>>>> rake aborted! >>>>> undefined method `indexer_binary_name' for >>>>> #<ThinkingSphinx::Configuration:0x537 >>>>> 33cc> >>>>> D:/sarasaves/vendor/plugins/thinking_sphinx/tasks/../lib/ >>>>> thinking_sphinx/tasks.r >>>>> b:77 >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in >>>>> `call' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in >>>>> `execute' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in >>>>> `each' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in >>>>> `execute' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in >>>>> `invoke_with_call_c >>>>> hain' >>>>> c:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in >>>>> `invoke_with_call_c >>>>> hain' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in >>>>> `invoke' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in >>>>> `invoke_task' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in >>>>> `top_level' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in >>>>> `each' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in >>>>> `top_level' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in >>>>> `standard_exceptio >>>>> n_handling' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in >>>>> `top_level' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in >>>>> `run' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in >>>>> `standard_exceptio >>>>> n_handling' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in >>>>> `run' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 >>>>> c:/ruby/bin/rake:19:in `load' >>>>> c:/ruby/bin/rake:19 >> >>>>> and for test ENV >> >>>>> D:\sarasaves>rake thinking_sphinx:index RAILS_ENV=test --trace >>>>> (in D:/sarasaves) >>>>> ** Invoke thinking_sphinx:index (first_time) >>>>> ** Invoke thinking_sphinx:app_env (first_time) >>>>> ** Execute thinking_sphinx:app_env >>>>> ** Invoke environment (first_time) >>>>> ** Execute environment >>>>> ** Invoke environment >>>>> ** Execute thinking_sphinx:index >>>>> Generating Configuration to D:/sarasaves/config/test.sphinx.conf >>>>> rake aborted! >>>>> undefined method `indexer_binary_name' for >>>>> #<ThinkingSphinx::Configuration:0x56d >>>>> fbf0> >>>>> D:/sarasaves/vendor/plugins/thinking_sphinx/tasks/../lib/ >>>>> thinking_sphinx/tasks.r >>>>> b:77 >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in >>>>> `call' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in >>>>> `execute' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in >>>>> `each' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in >>>>> `execute' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in >>>>> `invoke_with_call_c >>>>> hain' >>>>> c:/ruby/lib/ruby/1.8/monitor.rb:242:in `synchronize' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in >>>>> `invoke_with_call_c >>>>> hain' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in >>>>> `invoke' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in >>>>> `invoke_task' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in >>>>> `top_level' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in >>>>> `each' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in >>>>> `top_level' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in >>>>> `standard_exceptio >>>>> n_handling' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in >>>>> `top_level' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in >>>>> `run' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in >>>>> `standard_exceptio >>>>> n_handling' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in >>>>> `run' >>>>> c:/ruby/lib/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31 >>>>> c:/ruby/bin/rake:19:in `load' >>>>> c:/ruby/bin/rake:19 >> >>>>> What would be wrong? what is "indexer_binary_name"? >> >>>>> Thanks, >>>>> Vikas. >> >>>>> On Aug 28, 5:18 am, Pat Allan <[email protected]> wrote: >>>>>> Nothing seems out of place - although it's probably worth >>>>>> upgrading >>>>>> to >>>>>> the latest TS, just to see if that helps. >> >>>>>> -- >>>>>> Pat >> >>>>>> On 25/08/2009, at 8:03 AM, viki wrote: >> >>>>>>> Hello Pat, >> >>>>>>> thanks for reply. >> >>>>>>> Following are my configuration, >> >>>>>>> Rails - 2.3.2 >>>>>>> sphinx - 0.9.8 >>>>>>> thinking-sphinx - 1.1.6 >> >>>>>>> contents of my config/environments/test.rb file >>>>>>> --------------------------------------------------------------------------------- >>>>>>> config.cache_classes = true >>>>>>> config.whiny_nils = true >>>>>>> config.action_controller.consider_all_requests_local = true >>>>>>> config.action_controller.perform_caching = false >>>>>>> config.action_controller.allow_forgery_protection = false >>>>>>> config.action_mailer.delivery_method = :test >>>>>>> APP_URL = "http://localhost:3000" >>>>>>> ----------------------------------------------------------------------------------- >> >>>>>>> do i need to add more to the test.rb? >> >>>>>>> Thanks, >>>>>>> Viki >> >>>>>>> On Aug 24, 3:47 pm, Pat Allan <[email protected]> wrote: >>>>>>>> Hi Viki >> >>>>>>>> What versions of Rails, Sphinx, and TS are you using? This >>>>>>>> should >>>>>>>> work >>>>>>>> (and I just double-checked on a Rails 2.3.3 app). >> >>>>>>>> Also, what's the contents of your config/environments/test.rb >>>>>>>> file? >> >>>>>>>> -- >>>>>>>> Pat >> >>>>>>>> On 24/08/2009, at 9:55 AM, viki wrote: >> >>>>>>>>> Hi, >> >>>>>>>>> I tried 'rake thinking_sphinx:index RAILS_ENV=test' >> >>>>>>>>> but it throws following error >> >>>>>>>>> F:\test_sarasaves\sarasaves>rake thinking_sphinx:index >>>>>>>>> RAILS_ENV=test >>>>>>>>> (in F:/test_sarasaves/sarasaves) >>>>>>>>> Generating Configuration to F:/test_sarasaves/sarasaves/ >>>>>>>>> config/ >>>>>>>>> test.sphinx.conf >>>>>>>>> Sphinx 0.9.8-release (r1533) >>>>>>>>> Copyright (c) 2001-2008, Andrew Aksyonoff >> >>>>>>>>> using config file 'F:/test_sarasaves/sarasaves/config/ >>>>>>>>> test.sphinx.conf'... >>>>>>>>> FATAL: no sources found in config file. >>>>>>>>> rake aborted! >>>>>>>>> The following command failed: >>>>>>>>> indexer --config F:/test_sarasaves/sarasaves/config/ >>>>>>>>> test.sphinx.conf >>>>>>>>> --all > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Thinking Sphinx" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/thinking-sphinx?hl=en -~----------~----~----~----~------~----~------~--~---
