help with php class

komtanoo.pinpimai at livetext.com komtanoo.pinpimai at livetext.com
Wed Jul 5 14:36:38 UTC 2006


mogadm uses 'mogilefs.conf'. 'mogilefsd.conf' is for mogilefsd. My
mogilefs.conf contains only:

trackers = 192.168.2.90:7001,192.168.2.91:7001,192.168.2.92:7001

This way, you don't have to specifiy the --trackers option.
For your error, make sure that mogilefsd is actually running on
206.188.6.160:6001.

On Wed, July 5, 2006 9:02 am, Gareth Thomas wrote:
> Brad,
>
>
> ok so we installed the client software, next problem I cant register the
> domain:
>
>
> mogadm --trackers=206.188.6.160:6001 domain add 123 Unable to retrieve
> domains from tracker(s).
>
> If I run a mogadm check:
>
>
>
> mogadm --trackers=206.188.6.160:6001 check Checking trackers...
> 206.188.6.160:6001 ... OK
>
>
> Checking hosts...
> No devices found on tracker(s).
> Do I need to define something else in the mogilefsd.conf?
>
>
> Gareth
>
>
>
>
>
>
>
> On 7/4/06, Brad Fitzpatrick <brad at danga.com> wrote:
>
>>
>> Use 'mogadm' command to create the domain (namespace) that you're
>> trying to use, which I believe is "123".  You'll also need to create the
>> class ("testclass").
>>
>>
>> Then you won't get that error.
>>
>>
>> Don't touch MySQL yourself:  use mogadm.
>>
>>
>>
>> On Tue, 4 Jul 2006, Gareth Thomas wrote:
>>
>>
>>> Hi,
>>>
>>>
>>> we are evaluating mogilefs as our image server and have setup a test
>>> environment. I have been using the one and only PHP class that I
>>> found
>> out
>>> there, just trying a simple test to save an image as follows:
>>>
>>>
>>> $host[]="206.188.6.160:6001";
>>>
>>>
>>> $mfs = MogileFS::NewMogileFS( 'test',$host,'/var/mogdata');
>>>
>>>
>>>
>>> if (!$mfs->saveFile("123","testclass","arrow1.gif")){
>>> echo('Failed='.$mfs->error); }
>>> When I run the test I am getting the following error:
>>>
>>>
>>> open failedFailed=ERR unreg_domain
>>>
>>> The configuration file is setup as follows:
>>>
>>>
>>> db_dsn          DBI:mysql:mogile db_user         mogile db_pass
>>> mogile conf_port       6001 listener_jobs   5
>>>
>>>
>>> Do I need to put something into the mysql database for this?
>>>
>>>
>>> Thanks for any help.
>>>
>>>
>>> Gareth
>>>
>>>
>>
>
>
>
> --
> Gareth Thomas
> Cell: 44 (0)7910598004
> MSIM: quattrofan at hotmail.com
> Skype: garethdthomas
>
>



More information about the mogilefs mailing list