<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 TRANSITIONAL//EN">
<HTML>
<HEAD>
  <META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=UTF-8">
  <META NAME="GENERATOR" CONTENT="GtkHTML/3.6.2">
</HEAD>
<BODY>
<BR>
Hi All,<BR>
<BR>
I was able to get the BackgrounDrb plugin installed, and even got the example<BR>
progress bar working.&nbsp; So far so good.&nbsp; But now that I'm trying to do something<BR>
a little more real, I'm getting stuck.<BR>
<BR>
The first problem I'm getting is that the background task seems to be getting <BR>
terminated by Rails.&nbsp; In any case, I am getting the following error as the first<BR>
thing that happens in my background logger:<BR>
<BR>
Connection reset by peer - (DRb::DRbConnError)<BR>
<BR>
What might be the common causes of this error?<BR>
<BR>
<BR>
The second problem that I'm having, which I suspect may be related, is that<BR>
my view tries to call the get_progress action, but doesn't get a response.<BR>
<BR>
In the view file I have:<BR>
<BR>
&lt;%= periodically_call_remote(:url =&gt; {:controller =&gt; 'parser', <BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; :action =&gt; 'get_progress'}, :frequency =&gt; 1) %&gt;<BR>
<BR>
And in the parser controller, I have (basically verbatim from the example):<BR>
<BR>
def get_progress<BR>
&nbsp;&nbsp;&nbsp; if request.xhr?<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; progress_percent = MiddleMan.get_worker(session[:job_key]).progress<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; render :update do |page|<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; page.call('progressPercent', 'progressbar', progress_percent)<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; page.redirect_to( :action =&gt; 'done')&nbsp;&nbsp; if progress_percent &gt;= 100<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; end<BR>
&nbsp;&nbsp;&nbsp; else<BR>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; redirect_to :action =&gt; 'index'<BR>
&nbsp;&nbsp;&nbsp; end<BR>
&nbsp; end<BR>
<BR>
When I run the controller, I get the following error in the log file:<BR>
<BR>
Processing ParserController#get_progress (for 127.0.0.1 at 2006-10-17 23:23:23) [POST]<BR>
&nbsp; Session ID: 7425fe7cfe8db2c0211d5046b5b8e166<BR>
&nbsp; Parameters: {&quot;action&quot;=&gt;&quot;get_progress&quot;, &quot;controller&quot;=&gt;&quot;parser&quot;}<BR>
<BR>
ActionController::UnknownAction (No action responded to get_progress):<BR>
<BR>
Anyone have any ideas what might be the problem?&nbsp; I'm fairly new to <BR>
Ruby, Rails, and BackgrounDrb, so please be gentle. ;)<BR>
<BR>
Thanks a bunch,<BR>
<BR>
Todd Richmond<BR>
<BR>
</BODY>
</HTML>