Using mogile in lj clone

Mark Smith marksmith at danga.com
Sat Nov 20 10:47:40 PST 2004


Are you using /var/mogdata as the data root?  If not, you need to modify
mogstored to point to wherever you have your dev* directories.

By default, it expects to find this sort of directory structure:

/var/mogdata
/var/mogdata/dev1
/var/mogdata/dev2
...

To test and see if it's mogstored that's messed up or something along
the way, try telnetting to your mogstored (port 7500 by default) and
doing this:

PUT /dev1/test HTTP/1.0
Content-length: 4

test

See if that creates the 'test' file in your /var/mogdata/dev1 directory.
If it works, good, if it doesn't, you should get back a 404/something with
a more detailed error message.

On Thu, Nov 18, 2004, About My Life wrote:
> Thank you that's I knew I saw the classes somewhere
> 
> But now I'm getting a different error
> 
> Running task 'gen_image_captchas':
> 
> -I- Generating new image captchas...
> Current count is 989 of 1000...generating 11 new image challenges.
> ERROR> task gen_image_captchas died: Unable to save captcha to MogileFS
> server: HTTP response 404 from upload
> 
> Generating image 0...generating new capid/anum...uploading (capid = 4159,
> anum = 53529)...
> 
> -----Original Message-----
> From: Mark Smith [mailto:marksmith at danga.com] 
> Sent: Thursday, November 18, 2004 7:49 PM
> To: About My Life
> Cc: mogilefs at lists.danga.com
> Subject: Re: Using mogile in lj clone
> 
> That's in ljdefaults.pl.  %MOGILEFS_CONFIG.  Take a look at it.  You can
> copy it to your ljconfig.pl and add the hosts key
> 
> $LJ::MOGILEFS_CONFIG{hosts} = [ '10.0.0.n:7001' ];
> 
> Or something like that.  Anyway, then when you run update-db.pl with the
> -p option it will create your classes if necessary.
> 
> Lemme know if you run into any problems!
> 
> On Thu, Nov 18, 2004, About My Life wrote:
> > I'm interested in using the mogilefs on my site. I wanted to try one
> storage
> > daemon and get it running before I throw a bunch more in the loop.
> > 
> >  
> > 
> > I created the database, and got the daemons installed. I remember going
> > through the code and finding something that pointed to the domains and
> > classes of each type. Like captchas and userpics.
> > 
> >  
> > 
> > I have no idea where it is now. I suppose I can search through the file,
> but
> > I saw your post about mogile, and how you wanted to know if anyone else
> > wanted to get into it. Well here I am :-)
> > 
> >  
> > 
> > Thanks in advanced.
> > 
> >  
> > 
> > Andrew
> > 
> >  
> > 
> 
> 
> --
> Mark Smith
> junior at danga.com
> 


--
Mark Smith
junior at danga.com


More information about the mogilefs mailing list