Greg Campbell
2008-Feb-14 19:12 UTC
[Backgroundrb-devel] Problem with new version from git repository
Hello all, I recently grabbed the 1.0.3 prerelease from gitorious as requested by Hemant, and I had an odd issue - I''m wondering if anyone else is seeing the same thing. When I attempt to start the backgroundrb server, I get the following error output. Is the problem in the first line ("no such worker log_worker"), or is there something else going on? no such worker log_worker /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_meta_pimp.rb:48:in `process_request'': You have a nil object when you didn''t expect it! (NoMethodError) The error occurred while evaluating nil.send_request from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_meta_pimp.rb:27:in `handle_object'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_meta_pimp.rb:20:in `receive_data'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_parser.rb:37:in `call'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_parser.rb:37:in `extract'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_meta_pimp.rb:18:in `receive_data'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_master.rb:64:in `handle_internal_messages'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:171:in `handle_read_event'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:169:in `each'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:169:in `handle_read_event'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:125:in `start_reactor'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:120:in `loop'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:120:in `start_reactor'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_master.rb:21:in `run'' from /(my site folder)/trunk/vendor/plugins/backgroundrb/server/lib/master_worker.rb:161:in `initialize'' from script/backgroundrb:55:in `new'' from script/backgroundrb:55 /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_nbio.rb:25:in `read_data'': Packet::DisconnectError (Packet::DisconnectError) from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_worker.rb:46:in `handle_internal_messages'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:171:in `handle_read_event'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:169:in `each'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:169:in `handle_read_event'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:125:in `start_reactor'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:120:in `loop'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_core.rb:120:in `start_reactor'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_worker.rb:20:in `start_worker'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_master.rb:133:in `fork_and_load'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_master.rb:96:in `load_workers'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_master.rb:91:in `each'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_master.rb:91:in `load_workers'' from /usr/local/lib/ruby/gems/1.8/gems/packet-0.1.4/lib/packet/packet_master.rb:20:in `run'' from /(my site folder)/trunk/vendor/plugins/backgroundrb/server/lib/master_worker.rb:161:in `initialize'' from script/backgroundrb:55:in `new'' from script/backgroundrb:55 Thanks, Greg Campbell -------------- next part -------------- An HTML attachment was scrubbed... URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080214/9b95ef98/attachment.html
hemant
2008-Feb-14 19:32 UTC
[Backgroundrb-devel] Problem with new version from git repository
On 2/15/08, Greg Campbell <gtcampbell at gmail.com> wrote:> Hello all, > > I recently grabbed the 1.0.3 prerelease from gitorious as requested by > Hemant, and I had an odd issue - I''m wondering if anyone else is seeing the > same thing. When I attempt to start the backgroundrb server, I get the > following error output. Is the problem in the first line ("no such worker > log_worker"), or is there something else going on? >I think I forgot to commit this fix somehow. When I go home, I will commit the fix, but currently open file "backgroundrb" present in script directory of your rails root and: remove this: - ["server","framework","lib"].each { |x| $LOAD_PATH.unshift(PACKET_APP + "/#{x}")} and add this: + ["server","server/lib","lib"].each { |x| $LOAD_PATH.unshift(PACKET_APP + "/#{x}")} This should fix your problem.