FastRI 0.2.0: full-text searching, smarter search strate

FastRI 0.2.0: full-text searching, smarter search strate

Post by Thomas Nit » Thu, 23 Nov 2006 00:34:29



Hi,

remote access doesn't work for me. Anyone got this up an running? I did
something like:

fastri-server -a 192.168.100.0/24 -s 192.168.100.163
Looking for Ring server...
No Ring server found, starting my own.
$ fastri-server 0.0.1 (FastRI 0.2.0) listening on
druby://192.168.100.163:35800
ACL:
deny all
allow 127.0.0.1
allow 192.168.100.0/24

Local access works just fine, but from remote I got:
$ fri -s 192.168.100.163 Array
Couldn't initialize DRb and locate the Ring server.

Any ideas?

Regards

Thomas

--
Posted via http://www.yqcomputer.com/
 
 
 

FastRI 0.2.0: full-text searching, smarter search strate

Post by Mauricio F » Thu, 23 Nov 2006 00:54:04


====================
=================

The address given to fri -s ADDR is not the address of the server (that one
is autodiscovered using the Ring), but the address the local DRb service must
bind to (in short, fri also exports a DRb service that will be used by the
remote fastri-server to tell fri where it is).

So, if your server is 192.168.100.163 and your client is running on
192.168.100.164, you'd have to do

(in 192.168.100.163)
$ fastri-server -a 192.168.100.0/24 -s 192.168.100.163

(in 192.168.100.164)
$ fri -s 192.168.100.164 Array

or

$ export FASTRI_ADDR=192.168.100.164
$ fri Array


I'm revisiting that code to see if I can make 'fri Array' work without
specifying the local address, but for the time being the above should work.

--
Mauricio Fernandez - http://www.yqcomputer.com/ - singular Ruby

 
 
 

FastRI 0.2.0: full-text searching, smarter search strate

Post by Thomas Nit » Thu, 23 Nov 2006 01:17:18


Thx a lot. It works perfectly that way. It's almost sort of RTFM, but I
misunderstood the sentence "Note that FASTRI_ADDR is the *local*
address: the server will be discovered automatically."

Regards,

Thomas

--
Posted via http://www.yqcomputer.com/