[Backgroundrb-devel] Packet error on startup

Roggie Boone rogboone at yahoo.com
Thu Apr 3 14:25:58 EDT 2008


New BackgrounDrb user struggling for a couple of days to
get things up an going.


Ruby 1.8.6
Packet 0.1.5
chronic 0.2.3
BackgrounDrb 1.0.3  (downloaded 4/02/08 and 4/03/08)

I installed the packet and chronic gems as per instructions.
I used git to download BDrb as per instructions and ran the
rake setup script.

When I run  script/backgroundrb from my rails app main
directory, I get the following error: 

/usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:145:in `schedule_write': You have a nil object when you didn't expect it! (NoMethodError)
The error occurred while evaluating nil.instance        from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:57:in `write_and_schedule'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.0.2/lib/active_support/whiny_nil.rb:35:in `each_with_index'
        from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in `each'
        from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in `each_with_index'
        from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:51:in `write_and_schedule'
        from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:72:in `dump_object'
        from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:31:in `send_data'
        from /home/test/work/vendor/plugins/backgroundrb/server/lib/meta_worker.rb:284:in `register_status'
         ... 9 levels...
        from /usr/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:20:in `run'
        from /home/test/work/vendor/plugins/backgroundrb/server/lib/master_worker.rb:166:in `initialize'
        from script/backgroundrb:60:in `new'
        from script/backgroundrb:60


For added background, I installed BDrb from svn earlier and setup
a simple worker to count to 100,000 and in my Rails app had an ajax
view to issue the "ask_status" on the worker and update the web
view with the current location of the "count".  I was able to get
the ajax view to update automatically once, and then it no longer
update as if the worker was hung.  I saw in the archives that someone
else had a similar problem and it was recommended to download
BDrb from the git repository as it had a fix that might help. I 
did so (and removed the old background script that was setup by
the svn version and reran the setup script).  But the git version does not appeare to even start the background server due to the errors above.

Any help is appreciated.


You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080403/cf395f66/attachment-0001.html 

More information about the Backgroundrb-devel mailing list