You need the web server and the rake tasks to be run by the same user  
- either both by root, or some other user of your choice. This should  
avoid any permissions issues.

The *easiest* way is probably to run the rake tasks with sudo - not  
convinced that's the *best* way though. Others may know better :)

-- 
Pat

On 22/05/2009, at 10:38 PM, Elad Meidar wrote:

>
> ok, os i deleted everything from db/sphinx
>
> here's the output: http://pastie.org/487140
>
> it looks like that all the *_delta* files are owned by root, and not
> by the user that i run ts:index with (web).
> so that explains probably why they are unaccessible... any idea what
> can i do?
>
> On May 23, 12:35 am, Pat Allan <[email protected]> wrote:
>> What's the contents of db/sphinx/production?
>>
>> This isn't something I've seen before... but just to confirm, have  
>> you
>> stopped Sphinx since enabling deltas, re-indexed, and then restarted
>> Sphinx?
>>
>> If not, then it looks like it's getting a bit confused about file
>> names. I'd recommend stopping Sphinx, deleting db/sphinx/production
>> (after you confirm what's in that directory :), re-indexing, and then
>> restarting.
>>
>> --
>> Pat
>>
>> On 22/05/2009, at 8:05 PM, Elad Meidar wrote:
>>
>>
>>
>>> this is the log of searchd.log
>>
>>> [Sat May 23 03:01:43.300 2009] [12951] WARNING: rotating index
>>> 'status_update_delta': cur to old rename failed: rename /var/www/
>>> statussearch2/releases/20090523013634/db/sphinx/production/
>>> status_update_delta.spl to /var/www/statussearch2/releases/
>>> 20090523013634/db/sphinx/production/status_update_delta.old.spl
>>> failed: No such file or directory
>>> [Sat May 23 03:01:43.300 2009] [12951] rotating finished
>>
>>> there really isn't a file like that in that 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
-~----------~----~----~----~------~----~------~--~---

Reply via email to