MogileFS Stops Working After a While

Brandon Ooi brandon at hotornot.com
Tue Oct 10 19:13:56 UTC 2006


Hi Niraj,

I found the PHP API (from wikimedia i'm assuming) has a file descriptor 
leak.

Check in the saveFile() function. make sure there is an fclose() for the 
file and a curl_close().

shoot me an email if you still have issues.

Brandon



Niraj Bhawnani wrote:
> Hello everyone,
>
> My company is currently using MogileFS for a client and we are at the 
> stage where we need to migrate the client's old data (flat file) to 
> MogileFS. We created a migration script using PHP. The script uses a 
> PHP API we found a while back that seems to use CURL to do calls to 
> Mogile. We have run the migration script on 2 machines. On one, it 
> runs flawlessly, while on the other, it runs for about 1020-1030 files 
> and then Mogile just seems to freeze up - on a different file every 
> time. It suddenly stops saving files and we have no clue as to why 
> this is happening on that machine.
>
> Does anyone have any ideas as to what could be causing this?
>
> Also, does Mogile have some sort of debug more or error logging that I 
> can enable to understand such errors better?
>
> - Niraj.
>


More information about the mogilefs mailing list