I'm hesitant to say I have it working, but it seems to be. The only thing I 
noticed is that the owner of my script file (.sh)  was "root". I chown'ed 
the file and, stopped the service and then restarted everything. It seems 
to be working. I don't really know why it wouldn't have given me an error 
prior, but I won't argue with the fact it's working. I will monitor it 
closely over the next week.



On Monday, October 15, 2012 10:14:44 AM UTC-6, internetchris wrote:
>
> Hi Group,
>
> I'm not sure why this isn't working. I have setup TS in the past without 
> issue. I'm re-indexins my Rails app using a cronjob...
>
> The cronjob log makes it looks like it's successful, if I run the script 
> manually I get the following output.
>
> Generating Configuration to /home/public_html/
> myapp.com/releases/20121015032144/config/production.sphinx.conf
> Sphinx 2.0.5-release (r3308)
> Copyright (c) 2001-2012, Andrew Aksyonoff
> Copyright (c) 2008-2012, Sphinx Technologies Inc (http://sphinxsearch.com)
>
> using config file '/home/public_html/
> myapp.com/releases/20121015032144/config/production.sphinx.conf'...
> indexing index 'user_core'...
> WARNING: collect_hits: mem_limit=0 kb too low, increasing to 13568 kb
> collected 74 docs, 0.0 MB
> sorted 0.0 Mhits, 100.0% done
> total 74 docs, 2438 bytes
> total 0.028 sec, 86026 bytes/sec, 2611.15 docs/sec
> skipping non-plain index 'user'...
> total 3 reads, 0.000 sec, 1.5 kb/call avg, 0.0 msec/call avg
> total 9 writes, 0.000 sec, 1.1 kb/call avg, 0.0 msec/call avg
> rotating indices: succesfully sent SIGHUP to searchd (pid=713).
>
>
> The biggest thing I see here is that it's* "rotating indices"* and I 
> don't remember seeing any of my previous apps doing this. In addition, I'm 
> using a rackspace cloud mysql db, but that should make a difference if it's 
> finding my data. I can finally get it to work after* several attempts 
> using "rake ts:rebuild"*, but that's not ideal. 
>
>
> Here's my cronjob:
>
> # m h  dom mon dow   command
> */1 * * * * cd /home/public_html/myapp.com/current && source 
> /home/internetchris/.rvm/gems/rub-1.9.3-p194@global/bin/rake  && 
> /usr/bin/rake RAILS_ENV=production ts:index
>
>
> Here's my syslog output for the cronjob:
>
> Oct 15 16:03:01 web01 CRON[16079]: (internetchris) CMD (cd 
> /home/public_html/myapp.com/current && source 
> /home/internetchris/.rvm/gems/rub-1.9.3-p194@global/bin/rake  && 
> /usr/bin/rake RAILS_ENV=production ts:index)
>
>
> Any ideas?
>
>
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Thinking Sphinx" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/thinking-sphinx/-/wuO79te3_NEJ.
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