[Backgroundrb-devel] Exception when doing DRb remote calls from a BackgrounDRb worker
ruby at geoffgarside.co.uk
Wed Apr 4 09:29:20 EDT 2007
Are you getting this error when you do something like
w = MiddleMan.worker(:worker_key)
or when you actually call `MiddleMan.worker`? Usually its happened
like this to me
key = MiddleMan.new_worker(:class => :my_worker)
-- Exception has been thrown here inside BackgrounDRb
w = MiddleMan.worker(key)
-- Get ERRNO exception here
The exception thrown by the worker in BackgrounDRb is dumped out to
log/backgroundrb.log. Because the worker crashes out my call to
`worker` fails and raises an exception.
Does that help?
On 4 Apr 2007, at 14:15, Sergio Espeja wrote:
> Hi Geoff, thanks for your reply!
> The exception in the worker occurs when I call a method of a remote
> server object (DRbObject). Any idea?
> Thanks for your help!
> On 4/4/07, Geoff Garside<ruby at geoffgarside.co.uk> wrote:
>> On 4 Apr 2007, at 12:47, Sergio Espeja wrote:
>>> I am trying to make DRb calls to a external server from a
>>> backgrounDRb worker, but I'm getting always the next exception
>>> when I make the remote call.
>>>> ERROR: drbunix:///tmp/backgroundrb.11175/
>>>> 422051 - #<Errno::ENOENT: No such file or directory - ///tmp/
>>>> 20070404-13:12:15 (11179) (druby://externalserver:43696) /usr/
>>>> lib/ruby/1.8/drb/drb.rb:733:in `open'
>>> Doing the same DRb call from a script outside a backgrounDRb
>>> worker works.
>>> I don't know what to do in order to fix this, any idea?
>>> Thanks a lot!
>>> Sergio Espeja
>>> Backgroundrb-devel mailing list
>>> Backgroundrb-devel at rubyforge.org
>> Its likely that something in your worker is raising an exception
>> and the worker is crashing out. Check the backgroundrb and
>> backgroundrb_server logs.
> Sergio Espeja
More information about the Backgroundrb-devel