Hi Pat, I created the sphinx.yml and added the ports setting to my environments. However I still get the same outcome.
When starting TS I get searchd --pidfile --config C:/..../config/development.sphinx.conf Sphinx 0.9.8-release (r1533) Copyright (c) 2001-2008, Andrew Aksyonoff WARNING: forcing --console mode on Windows using config file 'C:/..../config/development.sphinx.conf'... creating server socket on 127.0.0.1:3312 accepting connections I can only stop TS by CTRL C as it is running rake TS:Stop or TS:index in another command prompt window it returns the error I stated earlier. Generating Configuration to C:/.../config/development.sphinx.conf C:/Ruby/binrake: Nosuch fle or directory - cat C:/.../log/ searchd.development.pid rake aborted! you have a nil object when you didn't expect it! you might have expected an instance of ActiveRecord::Base. The error occured while evaluting nil.[] Have I missed something :( Ajay On Jul 14, 5:15 pm, Pat Allan <[email protected]> wrote: > Hi Ajay > > That file isn't any use for Thinking Sphinx (unless you're using a > custom version?) > > Try creating config/sphinx.yml and adding the port setting to > whichever environments you need. > > -- > Pat > > On 14/07/2009, at 6:14 AM, Ajay wrote: > > > > > > > Hi Pat, > > > Ok firstly my Sphinx.yml is actually Sphinx.yml.tpl and in that file I > > have > > > config_file: /opt/sphinx/etc/sphinx.conf > > root_dir: /opt/sphinx/bin > > indexes: test1 test2 > > > I have left it untouched since I got TS. > > > Regards > > > Ajay > > > On Jul 14, 4:53 am, Pat Allan <[email protected]> wrote: > >> Hi Ajay > > >> Do you have Sphinx set up to run on a different port for each > >> environment? > >> Seehttp://freelancing-god.github.com/ts/en/advanced_config.htmlfor > >> an example. > > >> -- > >> Pat > > >> On 13/07/2009, at 7:14 AM, Ajay wrote: > > >>> Well at the moment I have my app in both prod and dev. > > >>> In cmd I run Rake ts:start in the same directory as my app. > > >>> TS is now: > > >>> using config file 'C:/.../config/development.sphinx.conf'... > >>> creating server socket on (my localhost) > >>> and is accepting connections > > >>> When I open another cmd window and in the same directory I > > >>> Rake ts:index > > >>> Generating Configuration to C:/.../config/development.sphinx.conf > >>> C:/Ruby/binrake: Nosuch fle or directory - cat C:/.../log/ > >>> searchd.development.pid > >>> rake aborted! > >>> you have a nil object when you didn't expect it! > >>> you might have expected an instance of ActiveRecord::Base. > >>> The error occured while evaluting nil.[] > > >>> both are being run as administrator. If it was possible to perform > >>> ts:index then I could easily schedule a batch file. Also this occurs > >>> if I try to TS:stop as well. > > >>> I apologise If I am being abstract > >>> Thanks > > >>> Ajay > > >>> On Jul 13, 9:59 am, Thibaut Barrère <[email protected]> > >>> wrote: > >>>> Hi Ajay, > > >>>>> BUT obviously it is unable to run due to TS being started > >>>>> and using the config file. If anyone has been able to run rake > >>>>> TS:index regularly on a windows any help would be much > >>>>> appreciated :( > > >>>> I'm not working on windows with TS, but I'm wondering: what makes > >>>> you > >>>> say that TS being started and using the config file is an issue ? > >>>> Are > >>>> you using the same environment for both ? (production, > >>>> development) ? > > >>>> If you run rake ts:index having ts running in parallel is not an > >>>> issue > >>>> afaik. > > >>>> Are you using the same account to execute the task ? Are you > >>>> starting > >>>> in the right folder ? Any error message you could share ? > > >>>> -- Thibaut- Hide quoted text - > > >> - Show quoted text -- Hide quoted text - > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
