[Mongrel] Ferret and Mongrel. OSX vs. Linux

Zed A. Shaw zedshaw at zedshaw.com
Mon Apr 16 07:53:30 EDT 2007

On Sun, 15 Apr 2007 20:12:21 -0400
Erik Morton <eimorton at gmail.com> wrote:

> Zed,
> Thank you very much for the reply. The solution, as you will see, is  
> very humbling for me. I installed strace and it looks like the  
> problem is that there is a recursive permission denied error in an  
> infinite loop that is hanging Mongrel:
> open("/var/www/apps/search/current/config/../indexes/final/ 
> segments_5", O_RDONLY|O_LARGEFILE) = -1 EACCES (Permission denied)

Yeah, that's bad.  Probably lots of other ferret related errors like
> My fix is obviously to change the ownership of my index files from  
> root to the correct user.
> The infinite loop seems like a Ferret issue. Do you agree?

Yep, tell them about it.  That's basic IO operations.  It means that
the author is calling open and not checking for error conditions on the
return.  EVERY time someone has that habit they write code that's
easily hacked.

Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book

More information about the Mongrel-users mailing list