<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: Debugging Backgroundrb</title>
	<atom:link href="http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/</link>
	<description>im in ur computrz makin castz</description>
	<lastBuildDate>Thu, 14 Jan 2010 01:35:36 +0300</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.5</generator>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
		<item>
		<title>By: NomadSoul</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-2587</link>
		<dc:creator>NomadSoul</dc:creator>
		<pubDate>Fri, 17 Apr 2009 19:17:15 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-2587</guid>
		<description>I found something in this page: http://backgroundrb.devjavu.com/browser/trunk/examples/backgroundrb.yml?rev=331

There it adds this line to the backgroundrb.yml file:

log: foreground

And it should solve my problem, but for some reason it does not :S I think I&#039;m on the right track but I can&#039;t get my rails to recognize this change on backgroundrb.yml...</description>
		<content:encoded><![CDATA[<p>I found something in this page: <a href="http://backgroundrb.devjavu.com/browser/trunk/examples/backgroundrb.yml?rev=331" rel="nofollow">http://backgroundrb.devjavu.com/browser/trunk/examples/backgroundrb.yml?rev=331</a></p>
<p>There it adds this line to the backgroundrb.yml file:</p>
<p>log: foreground</p>
<p>And it should solve my problem, but for some reason it does not :S I think I&#8217;m on the right track but I can&#8217;t get my rails to recognize this change on backgroundrb.yml&#8230;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: NomadSoul</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-2586</link>
		<dc:creator>NomadSoul</dc:creator>
		<pubDate>Wed, 15 Apr 2009 18:55:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-2586</guid>
		<description>Godspeed to all. I got a problem with debugging backgroundrb: I would like to have the error listed on the terminal window when they occur, just like the normal Webrick server does... The log file is impractical for the project I&#039;m forking for. But nothing I have tried has worked (included the tips on this page). I would appreciate any ideas on solving this... Thanks in advace!</description>
		<content:encoded><![CDATA[<p>Godspeed to all. I got a problem with debugging backgroundrb: I would like to have the error listed on the terminal window when they occur, just like the normal Webrick server does&#8230; The log file is impractical for the project I&#8217;m forking for. But nothing I have tried has worked (included the tips on this page). I would appreciate any ideas on solving this&#8230; Thanks in advace!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-2572</link>
		<dc:creator>John</dc:creator>
		<pubDate>Thu, 19 Feb 2009 05:11:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-2572</guid>
		<description>@Prashant
Yikes. Honestly, I haven&#039;t used BackgrounDRb in a year or so.  Thats said, I&#039;m not sure BackgrounDRb supports Windows enviornments.  I know that old versions did, but I seem to remember hearing it is no longer.

I would suggest checking out the BackgrounDRb mail list and asking Hermat (the developer) directly.  He&#039;s a super nice guy.
http://rubyforge.org/mailman/listinfo/backgroundrb-devel</description>
		<content:encoded><![CDATA[<p>@Prashant<br />
Yikes. Honestly, I haven&#8217;t used BackgrounDRb in a year or so.  Thats said, I&#8217;m not sure BackgrounDRb supports Windows enviornments.  I know that old versions did, but I seem to remember hearing it is no longer.</p>
<p>I would suggest checking out the BackgrounDRb mail list and asking Hermat (the developer) directly.  He&#8217;s a super nice guy.<br />
<a href="http://rubyforge.org/mailman/listinfo/backgroundrb-devel" rel="nofollow">http://rubyforge.org/mailman/listinfo/backgroundrb-devel</a></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Prashant</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-2569</link>
		<dc:creator>Prashant</dc:creator>
		<pubDate>Wed, 04 Feb 2009 14:30:12 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-2569</guid>
		<description>Hi John
I am new to Ruby on Rails. 
My developing environment is instantrails, Windows. 
I have backgroundrb running in one terminal and server (forced webrick) in another. However I could not see it doing anything.
It does not update my feed table in database.
The backgroundrb.log does not have anything.
Any help would be highly appreciated
Thanks

my backgroundrb.yml is as follows:

--------------------------------

:backgroundrb:
:ip: 0.0.0.0
 
:environment: development
:log: foreground
:backgroundrb:
:port: 11111     # use port 11111
:log: foreground # foreground mode,print log messages on console
#Cron based scheduling
:schedules:
:feeds_worker_worker:
:update:
:trigger_args: * */1 * * * *

----------------------------------


my worker file feeds_worker_worker.rb  is
---------------------------------------------------------
class FeedsWorkerWorker &lt; BackgrounDRb::Rails
  
  #set_worker_name :feeds_worker
  
  
  def create(args = nil)
   # method gets called, when new instance of worker is created.
   do_work()
   end
    
  
  def do_work()
     @u = Feeds.find(all) 
     @u.lastupdate=Time.now
     @u.save!
  end

end
---------------------------------------------</description>
		<content:encoded><![CDATA[<p>Hi John<br />
I am new to Ruby on Rails.<br />
My developing environment is instantrails, Windows.<br />
I have backgroundrb running in one terminal and server (forced webrick) in another. However I could not see it doing anything.<br />
It does not update my feed table in database.<br />
The backgroundrb.log does not have anything.<br />
Any help would be highly appreciated<br />
Thanks</p>
<p>my backgroundrb.yml is as follows:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>:backgroundrb:<br />
:ip: 0.0.0.0</p>
<p>:environment: development<br />
:log: foreground<br />
:backgroundrb:<br />
:port: 11111     # use port 11111<br />
:log: foreground # foreground mode,print log messages on console<br />
#Cron based scheduling<br />
:schedules:<br />
:feeds_worker_worker:<br />
:update:<br />
:trigger_args: * */1 * * * *</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>my worker file feeds_worker_worker.rb  is<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
class FeedsWorkerWorker &lt; BackgrounDRb::Rails</p>
<p>  #set_worker_name :feeds_worker</p>
<p>  def create(args = nil)<br />
   # method gets called, when new instance of worker is created.<br />
   do_work()<br />
   end</p>
<p>  def do_work()<br />
     @u = Feeds.find(all)<br />
     @u.lastupdate=Time.now<br />
     @u.save!<br />
  end</p>
<p>end<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-899</link>
		<dc:creator>John</dc:creator>
		<pubDate>Tue, 27 May 2008 13:32:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-899</guid>
		<description>@Atul
I wish I had some useful insights for you on the problem.  Honestly, I&#039;d try to just re-install the plugin.  
&lt;a href=&quot;http://www.johnyerhot.com/2008/01/24/royner-new-project/&quot; rel=&quot;nofollow&quot;&gt;I had horrible problems when I first installed the plugin&lt;/a&gt; and for some magic reason, they were solved by a re-install.</description>
		<content:encoded><![CDATA[<p>@Atul<br />
I wish I had some useful insights for you on the problem.  Honestly, I&#8217;d try to just re-install the plugin.<br />
<a href="http://www.johnyerhot.com/2008/01/24/royner-new-project/" rel="nofollow">I had horrible problems when I first installed the plugin</a> and for some magic reason, they were solved by a re-install.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atul</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-867</link>
		<dc:creator>Atul</dc:creator>
		<pubDate>Thu, 22 May 2008 07:52:14 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-867</guid>
		<description>@John.

 Thanks for reply. I dont have Git version of backgrounDRrb. I  have done : 

&quot;$ ruby script/plugin install http://svn.devjavu.com/backgroundrb/trunk  backgoundrb &quot;

One more error I have found is that when I  run &#039;./script/backgroundrb/start&#039; after previous command I get following error:
----------------------------------------------------------------
./script/backgroundrb/start:4:in `require&#039;: no such file to load -- script/backgroundrb/../../config/../vendor/plugins/backgroundrb/backgroundrb.rb (LoadError)
        from ./script/backgroundrb/start:4
-------------------------------------------------------

This might be coz  &quot;rake backgroundrb:setup&quot; doesnt install  backgroundrb.rb and backgroundrb_rails.rb files, is coz of different versions of back-DRb.


Here is a snapshot of my backgroundrb.yml :

--- 
:backgroundrb: 
  :ip: localhost
  :port: 11006
  :environment: development
  :log: foreground
---
 
Here is a snapshot of a irb seesion

-------------------------------------------------------
Loading development environment.
&gt;&gt; MiddleMan.worker(:billing_worker).charge_customer()
{:type=&gt;:do_work, :worker=&gt;:billing_worker, :worker_method=&gt;:charge_customer}
BackgrounDRb::BdrbConnError: BackgrounDRb::BdrbConnError
        from /home/atul/apps/7/vendor/plugins/backgroundrb/lib/backgroundrb.rb:81:in `dump_object&#039;
        from /home/atul/apps/7/vendor/plugins/backgroundrb/lib/backgroundrb.rb:93:in `ask_work&#039;
        from /home/atul/apps/7/vendor/plugins/backgroundrb/lib/backgroundrb/rails_worker_proxy.rb:26:in `method_missing&#039;
        from (irb):1
-------------------------------------------------------

Hope you will find some clues in this. I really appreciate any help I can get on this.

Thanks,
Atul</description>
		<content:encoded><![CDATA[<p>@John.</p>
<p> Thanks for reply. I dont have Git version of backgrounDRrb. I  have done : </p>
<p>&#8220;$ ruby script/plugin install <a href="http://svn.devjavu.com/backgroundrb/trunk" rel="nofollow">http://svn.devjavu.com/backgroundrb/trunk</a>  backgoundrb &#8221;</p>
<p>One more error I have found is that when I  run &#8216;./script/backgroundrb/start&#8217; after previous command I get following error:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
./script/backgroundrb/start:4:in `require&#8217;: no such file to load &#8212; script/backgroundrb/../../config/../vendor/plugins/backgroundrb/backgroundrb.rb (LoadError)<br />
        from ./script/backgroundrb/start:4<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>This might be coz  &#8220;rake backgroundrb:setup&#8221; doesnt install  backgroundrb.rb and backgroundrb_rails.rb files, is coz of different versions of back-DRb.</p>
<p>Here is a snapshot of my backgroundrb.yml :</p>
<p>&#8212;<br />
:backgroundrb:<br />
  :ip: localhost<br />
  :port: 11006<br />
  :environment: development<br />
  :log: foreground<br />
&#8212;</p>
<p>Here is a snapshot of a irb seesion</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Loading development environment.<br />
&gt;&gt; MiddleMan.worker(:billing_worker).charge_customer()<br />
{:type=&gt;:do_work, :worker=&gt;:billing_worker, :worker_method=&gt;:charge_customer}<br />
BackgrounDRb::BdrbConnError: BackgrounDRb::BdrbConnError<br />
        from /home/atul/apps/7/vendor/plugins/backgroundrb/lib/backgroundrb.rb:81:in `dump_object&#8217;<br />
        from /home/atul/apps/7/vendor/plugins/backgroundrb/lib/backgroundrb.rb:93:in `ask_work&#8217;<br />
        from /home/atul/apps/7/vendor/plugins/backgroundrb/lib/backgroundrb/rails_worker_proxy.rb:26:in `method_missing&#8217;<br />
        from (irb):1<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Hope you will find some clues in this. I really appreciate any help I can get on this.</p>
<p>Thanks,<br />
Atul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: John</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-842</link>
		<dc:creator>John</dc:creator>
		<pubDate>Mon, 19 May 2008 15:20:32 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-842</guid>
		<description>@Atul
Did you check out the Git version of backgrounDRb?  I&#039;ve heard some people having issues similar to yours with the Git version and they magically fix themselves after using the SVN version.

Also, what is in you /config/backgroundrb.yml file?</description>
		<content:encoded><![CDATA[<p>@Atul<br />
Did you check out the Git version of backgrounDRb?  I&#8217;ve heard some people having issues similar to yours with the Git version and they magically fix themselves after using the SVN version.</p>
<p>Also, what is in you /config/backgroundrb.yml file?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Atul</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-840</link>
		<dc:creator>Atul</dc:creator>
		<pubDate>Mon, 19 May 2008 06:50:25 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-840</guid>
		<description>Hi,

 I am using backgroundrb to receive emails in my rails app. But I am  unable to start the Backgroundrb server. After doing this: 

$  ./script/backgroundrb/start

I am getting following error:

---------------------------------------------------------------------------------------------
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant&#039;: uninitialized constant BackgrounDRb::MetaWorker (NameError)
        from /home/shashank/atul/live_apps/7_qlubb/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing&#039;
        from ./script/backgroundrb/../../config/../lib/workers/mailreceiver_worker.rb:3

-------------------------------------------------------------------------------

Here is my worker:  mailreceiver_worker.rb:3


require &#039;rubygems&#039;
require &#039;pop_ssl&#039;

class MailreceiverWorker &lt; BackgrounDRb::MetaWorker
  set_worker_name :mailreceiver_worker
  
  def create(args = nil)
    # this method is called, when worker is loaded for the first time
    
  end
  
  
  def receive_emails
  
#   I am receiving emails here..
  end
-----------------------------------------------------------------------------------------

I tried running some examples, and  found that worker with do_work are starting but those derived from MetaWorker are not.

I am using latest back-drb release.

Can you pl help me out of this?

Thanks in advance.

Atul</description>
		<content:encoded><![CDATA[<p>Hi,</p>
<p> I am using backgroundrb to receive emails in my rails app. But I am  unable to start the Backgroundrb server. After doing this: </p>
<p>$  ./script/backgroundrb/start</p>
<p>I am getting following error:</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:263:in `load_missing_constant&#8217;: uninitialized constant BackgrounDRb::MetaWorker (NameError)<br />
        from /home/shashank/atul/live_apps/7_qlubb/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:452:in `const_missing&#8217;<br />
        from ./script/backgroundrb/../../config/../lib/workers/mailreceiver_worker.rb:3</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Here is my worker:  mailreceiver_worker.rb:3</p>
<p>require &#8216;rubygems&#8217;<br />
require &#8216;pop_ssl&#8217;</p>
<p>class MailreceiverWorker &lt; BackgrounDRb::MetaWorker<br />
  set_worker_name :mailreceiver_worker</p>
<p>  def create(args = nil)<br />
    # this method is called, when worker is loaded for the first time</p>
<p>  end</p>
<p>  def receive_emails</p>
<p>#   I am receiving emails here..<br />
  end<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>I tried running some examples, and  found that worker with do_work are starting but those derived from MetaWorker are not.</p>
<p>I am using latest back-drb release.</p>
<p>Can you pl help me out of this?</p>
<p>Thanks in advance.</p>
<p>Atul</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: A Place for my head &#187; BackgrounDRb best practises</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-84</link>
		<dc:creator>A Place for my head &#187; BackgrounDRb best practises</dc:creator>
		<pubDate>Tue, 12 Feb 2008 06:59:40 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-84</guid>
		<description>[...] To debug backgroundrb problems. Its always a good idea to start bdrb in foreground mode by skipping &#8217;start&#8217; argument while start the bdrb server. After that, you should fire rails console and try invoking your tasks from rails console and find out whats happening. John Yerhot has posted an excellent write up about this,  here  [...]</description>
		<content:encoded><![CDATA[<p>[...] To debug backgroundrb problems. Its always a good idea to start bdrb in foreground mode by skipping &#8217;start&#8217; argument while start the bdrb server. After that, you should fire rails console and try invoking your tasks from rails console and find out whats happening. John Yerhot has posted an excellent write up about this,  here  [...]</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Ruby, Rails, RSpec, JavaScript, Ubuntu, Mac OS X &#171; exceptionz</title>
		<link>http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/comment-page-1/#comment-82</link>
		<dc:creator>Ruby, Rails, RSpec, JavaScript, Ubuntu, Mac OS X &#171; exceptionz</dc:creator>
		<pubDate>Tue, 12 Feb 2008 03:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://www.johnyerhot.com/2008/02/11/debugging-backgroundrb/#comment-82</guid>
		<description>[...] Tips for Debugging BackgroundDRB [...]</description>
		<content:encoded><![CDATA[<p>[...] Tips for Debugging BackgroundDRB [...]</p>
]]></content:encoded>
	</item>
</channel>
</rss>
