Hi Jenny How are you testing the delta indexing via the browser?
Also: the rake tasks should be run as the same user as your site - passenger runs each site according to the user that owns the files, not the www user that's running apache or nginx. So, I'm guessing you're running the rake tasks as yourself, and the files for your app are owned by you as well - that should be fine. Any errors from the Sphinx delta indexing when running through a web server will likely be visible in apache/nginx error logs, not your Rails logs. Are there any clues in the error log? Cheers -- Pat On 19/07/2011, at 10:24 PM, jennyblunt wrote: > Hello there, > > I'm running sphinx, thinking sphinx on our rails3 application. I'm > also using passenger on osx 10.6. > > Everything's fine but I simply cannot get my delta indexes to work > when I create a record in a browser. > > In the console, I get the following output and my record's displayed > in the view: > > Sphinx 2.0.2-dev (r2875) > Copyright (c) 2001-2011, Andrew Aksyonoff > Copyright (c) 2008-2011, Sphinx Technologies Inc (http:// > sphinxsearch.com) > > using config file '/Users/jennyb/railsprojects/orders/config/ > development.sphinx.conf'... > indexing index 'company_delta'... > WARNING: collect_hits: mem_limit=0 kb too low, increasing to 14336 kb > collected 2 docs, 0.0 MB > sorted 0.0 Mhits, 100.0% done > total 2 docs, 30 bytes > total 0.009 sec, 3291 bytes/sec, 219.44 docs/sec > total 3 reads, 0.000 sec, 0.2 kb/call avg, 0.0 msec/call avg > total 9 writes, 0.000 sec, 0.2 kb/call avg, 0.0 msec/call avg > rotating indices: succesfully sent SIGHUP to searchd (pid=48890). > => #<Company id: 26, name: "Bobs Your Uncle", number: "123456", > address: "204 Some Studio", town: "London", postcode: "W1", phone: > "0207123456", createdby: nil, user_id: nil, created_at: "2011-07-18 > 08:24:26", updated_at: "2011-07-18 08:24:26", notes: nil, vip: nil, > delta: true> > I've been through the documentation, rebuilt my indexes etc. The only > thing I can assume is that it's a permissions problem. The docs say > searchd has to be run as same user as www. > > Apache2 is running as www user on my mac. I can't see why I should > change this to run as ts user? > > In my Sphinx.rb, I have this: > > development: > min_infix_len: 3 > bin_path: "/usr/local/bin" > version: 2.0.5 > mem_limit: 128M > > -- > 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.
