Thanks Pat. I am still trying to make TS work with Sphinx. I had some
progress and I wanted you to know if anything can be done about the issue of
rake ts:start not able to start sphinx.

But,

I did start the Sphinx daemon from the windows services manually.

When I tried to stop from Thinking sphinx using Rake ts:stop, it says it has
stopped the daemon. But actually it has not stopped the service. I checked
the services and it still says still running. It gives me following message
when I try to stop  again from TS.

Station3@STATION3-PC /c/Workspace1/nirtyjul2
$ rake ts:stop
(in C:/Workspace1/nirtyjul2)
Stopped search daemon (pid 3756).

Station3@STATION3-PC /c/Workspace1/nirtyjul2
$ rake ts:stop
(in C:/Workspace1/nirtyjul2)
Stopped search daemon (pid 3756).

Station3@STATION3-PC /c/Workspace1/nirtyjul2
$ rake ts:start
(in C:/Workspace1/nirtyjul2)
rake aborted!
searchd is already running.
c:/Ruby192/lib/ruby/gems/1.9.1/gems/thinking-sphinx-2.0.5/lib/thinking_sphinx/tasks.rb:32:in
`block (2 levels) in <top (required)>'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:634:in `call'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:634:in `block in execute'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:629:in `each'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:629:in `execute'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:595:in `block in invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:605:in `block in invoke_prerequisites'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:602:in `each'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:602:in `invoke_prerequisites'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:594:in `block in invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/monitor.rb:201:in `mon_synchronize'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:588:in `invoke_with_call_chain'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:581:in `invoke'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2041:in `invoke_task'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `block (2 levels) in top_level'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `each'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2019:in `block in top_level'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2058:in `standard_exception_handling'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:2013:in `top_level'
c:/Ruby192/lib/ruby/1.9.1/rake.rb:1992:in `run'
c:/Ruby192/bin/rake:31:in `<main>'

I did also checked the windows log files and it gives me a three different
warnings for the searchd services when I start manually using windows
 services and not when i use TS to start

"
The description for Event ID 0 from source searchd cannot be found. Either
the component that raises this event is not installed on your local computer
or the installation is corrupted. You can install or repair the component on
the local computer.

If the event originated on another computer, the display information had to
be saved with the event.

The following information was included with the event:

searchd
[Sat Jul  2 20:22:11.341 2011] [ 5712] WARNING: compat_sphinxql_magics=1 is
deprecated; please update your application and config


searchd
[Sat Jul  2 20:37:05.319 2011] [ 2656] WARNING: index 'ad_core': lock:
failed to lock C:/Workspace1/nirtyjul2/db/sphinx/development/ad_core.spl: No
such file or directory; NOT SERVING


searchd
[Sat Jul  2 20:37:05.312 2011] [ 2656] WARNING: preopen_indexes=1 has no
effect with seamless_rotate=0 "

I am not sure how to move further and please let me know if there is any
suggestions.

Thanks,

On Thu, Jun 23, 2011 at 3:56 AM, Pat Allan <[email protected]> wrote:

> I wish I could be some help here - but I've never used TS on Windows. I
> know others have though - but perhaps they don't regularly haunt this list.
> Perhaps ask on Stack Overflow as well?
>
> --
> Pat
>
> On 23/06/2011, at 4:02 PM, J nirty wrote:
>
> > some update on the issue but problem still persists
> >
> >  1. installed thinking sphinx first using gem
> >  2. downloaded the sphinx search engine and put them in the C drive named
> as like c:\sphinx>
> >  3. added indexes to the model on RoR .
> >  4. Indexed it using "rake ts:index" and it generated the "
> development.sphinx.conf ".
> >  5. Then I tried installing sphinx daemon from the command prompt with
> the config file as "development.sphinx.conf"
> >  6. When I tried " rake ts:start" , It still hangs... and the daemon will
> not start. so I exited and
> >  7. started the searchd service manually from services.msc. Now the
> search daemon works fine and I can use the RoR to search.
> >
> > But the problem of starting service from RoR still persists it hangs
> without giving any error or success message on the console.
> >
> > Any suggestions will be greately helpful.
> >
> > Thank you,
> >
> > On Wed, Jun 22, 2011 at 2:18 PM, J nirty <[email protected]> wrote:
> >
> >
> > I  am trying to install sphinx on Windows 7 to be used with RoR 3.
> >
> > I Installed Sphinx 2.0.1, By extracting it to the path c:\sphinx and
> installed it by c:\sphinx\bin>searchd  --install      ( Tried with and
> without default config file, sphinx.conf that comes with sphinx download )
> >
> >  and thinking-sphinx version 2.0.5 using ruby Gem
> >
> > I did make the changes in the model specifying Indexes and Attrributes.
> >
> > I also included sphinx.yml file in the config folder , with following
> configurations
> > development:
> >   port: 9312
> >   bin_path: "c:/sphinx/bin"
> >
> >
> > When I run rake ts:index, -- It completes  the task with the following
> output:
> >
> > using config file 'C:/Users/Wox/My Documents/Aptana Studio 3
> Workspace/nirty17/config/development.sphinx.conf'...
> > indexing index 'ad_core'...
> > collected 8 docs, 0.0 MB
> > sorted 0.0 Mhits, 100.0% done
> > total 8 docs, 90 bytes
> > total 0.037 sec, 2373 bytes/sec, 210.98 docs/sec
> > distributed index 'ad' can not be directly indexed; skipping.
> > total 5 reads, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
> > total 10 writes, 0.000 sec, 0.1 kb/call avg, 0.0 msec/call avg
> >
> > but when I try to start by rake ts:start , the console hangs and stops
> without giving any errors or outputs.
> >
> > and Sometimes when I tried It actually creates three Log files in the RoR
> project folder with the names
> > binlog.001
> > binlog.lock
> > binlog.meta
> > with weird characters in it . sometimes the binlog.lock shows " The
> portion of the file may be locked by some other process" and some times it
> does not.
> >
> > And most times these files are not created but the console just hangs up
> with out giving any message when I try to start.
> >
> > I also tried starting the sphinx in services.msc manually, but it gives
> the "error :1607 termination expected unexpectedly"
> >
> > I have no Idea what the error might be and any suggestions and help is
> greatly appreciated.
> >
> > Thank you,
> >
> > Note:
> > I tried with different versions of both Sphinx, and thinking sphinx, and
> on many computers with windows 7 on it. I also tried changing the file
> permissions of the installed Sphinx folder.
> > I had a problem earlier with indexing which said bin_path not found and I
> fixed it by setting up sphinx.yml file in the config folder.
> >
> >
> >
> > --
> > 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.
>
> --
> 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.
>
>

-- 
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.

Reply via email to