Forum: Ferret Ferret bug when non-root user tries to read from an index ow

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
6d93bda89be85bc834adeab757a1742b?d=identicon&s=25 Erik Morton (Guest)
on 2007-04-16 19:57
(Received via mailing list)
I noticed an issue where a Mongrel would hang at 50% CPU utilization
indefinitely while attempting to query a Ferret index. I discovered
that the index directory was owned by root and Mongrel was running as
a non-root user. I straced the Mongrel and result was an infinite
loop of:

>> open("/var/www/apps/search/current/config/../indexes/final/
>> segments_5", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)

My fix was obviously to change the permissions of the directory. Is
the infinite loop of permission denied errors a bug in Ferret?

Thanks.

Erik
This topic is locked and can not be replied to.