[Backgroundrb-devel] Exception when doing DRb remote calls from a BackgrounDRb worker
Geoff Garside
ruby at geoffgarside.co.uk
Wed Apr 4 09:29:20 EDT 2007
Hi Sergio,
Are you getting this error when you do something like
w = MiddleMan.worker(:worker_key)
w.do_work
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?
Geoff
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!
> Sergio.
>
> On 4/4/07, Geoff Garside<ruby at geoffgarside.co.uk> wrote:
>> On 4 Apr 2007, at 12:47, Sergio Espeja wrote:
>>
>>> Hello,
>>>
>>> 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/
>>>> experimenter_worker_3e899de945f0803a82cd257cfac316d0_0_0.0738904928
>>>> 422051 - #<Errno::ENOENT: No such file or directory - ///tmp/
>>>> backgroundrb.11175/
>>>> experimenter_worker_3e899de945f0803a82cd257cfac316d0_0_0.0738904928
>>>> 422051>
>>>> 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.
>>> --
>>> Sergio Espeja
>>> http://spejman-on-rails.blogspot.com
>>> http://spejman.blogspot.com
>>> _______________________________________________
>>> Backgroundrb-devel mailing list
>>> Backgroundrb-devel at rubyforge.org
>>> http://rubyforge.org/mailman/listinfo/backgroundrb-devel
>>
>> Its likely that something in your worker is raising an exception
>> and the worker is crashing out. Check the backgroundrb and
>> backgroundrb_server logs.
>>
>> Regards,
>> Geoff
> --
> Sergio Espeja
> http://spejman-on-rails.blogspot.com
> http://spejman.blogspot.com
More information about the Backgroundrb-devel
mailing list