Ok,
i re-did my entire deployment all over again, making sure that the
'web' user is responsible for all actions taken in the deployment
process, including thinking sphinx related tasks.
Now, deltas *DO* Appear on search, but i can't re-index:
web@socialninjaz:/var/www/statussearch2/current$ rake
RAILS_ENV=production ts:index
(in /var/www/statussearch2/releases/20090523013634)
Generating Configuration to /var/www/statussearch2/releases/
20090523013634/config/production.sphinx.conf
/usr/local/bin/indexer --config /var/www/statussearch2/releases/
20090523013634/config/production.sphinx.conf --all --rotate
Sphinx 0.9.8.1-release (r1533)
Copyright (c) 2001-2008, Andrew Aksyonoff
using config file '/var/www/statussearch2/releases/20090523013634/
config/production.sphinx.conf'...
indexing index 'status_update_core'...
collected 62039 docs, 5.7 MB
collected 0 attr values
sorted 0.1 Mvalues, 100.0% done
sorted 22.3 Mhits, 97.9% done
total 62039 docs, 5703116 bytes
total 3146.338 sec, 1812.62 bytes/sec, 19.72 docs/sec
indexing index 'status_update_delta'...
FATAL: failed to open /var/www/statussearch2/releases/20090523013634/
db/sphinx/production/status_update_delta.tmp.spl: Permission denied,
will not index. Try --rotate option.
The file exists but under root ownership again.
web@socialninjaz:/var/www/statussearch2/current$ ls -l db/sphinx/
production/
total 133328
-rw-r--r-- 1 web web 2479160 May 24 20:25 status_update_core.spa
-rw-r--r-- 1 web web 83895816 May 24 20:25 status_update_core.spd
-rw-r--r-- 1 web web 367 May 24 20:25 status_update_core.sph
-rw-r--r-- 1 web web 6302754 May 24 20:25 status_update_core.spi
-rw------- 1 web web 0 May 24 20:26 status_update_core.spl
-rw-r--r-- 1 web web 1266960 May 24 20:25 status_update_core.spm
-rw-r--r-- 1 web web 40304468 May 24 20:25 status_update_core.spp
-rw-r--r-- 1 root root 30960 May 24 22:30 status_update_delta.spa
-rw-r--r-- 1 root root 1165980 May 24 22:30 status_update_delta.spd
-rw-r--r-- 1 root root 367 May 24 22:30 status_update_delta.sph
-rw-r--r-- 1 root root 364375 May 24 22:30 status_update_delta.spi
-rw------- 1 web web 0 May 24 22:30 status_update_delta.spl
-rw-r--r-- 1 root root 15476 May 24 22:30 status_update_delta.spm
-rw-r--r-- 1 root root 514466 May 24 22:30 status_update_delta.spp
-rw-r--r-- 1 root root 0 May 24 22:30
status_update_delta.tmp.spl
i made sure that all capistrano activity and cron jobs are operated by
the 'web' user... i don't really know what is going on really...