Ticket #101 (new defect)

Opened 1 month ago

Last modified 2 weeks ago

Error thrown by packet gem

Reported by: ngty..@gmail.com Assigned to: gethema..@gmail.com
Priority: minor Milestone: 1.0 Release
Component: rails_integration Version: 1.0
Keywords: packet_master packet_worker_runner Cc:

Description

Using the billing example provided at http://backgroundrb.rubyforge.org, when running ./script/backgroundrb -e development

I got:

var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:109:in `exec': No such file or directory - packet_worker_runner 7:6:log_worker:17:/pub/misc/home/ngtzeyang/com/icresource/bzr/harvest/dev-ngtzeyang/lib/workers:/pub/misc/home/ngtzeyang/com/icresource/bzr/harvest/dev-ngtzeyang/script/load_worker_env (Errno::ENOENT)
	from /var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:109:in `fork_and_load'
	from /var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:80:in `start_worker'
	from /pub/misc/home/ngtzeyang/com/icresource/bzr/harvest/dev-ngtzeyang/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:16:in `initialize'
	from /var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:19:in `run'
	from /pub/misc/home/ngtzeyang/com/icresource/bzr/harvest/dev-ngtzeyang/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:14:in `initialize'
	from ./script/backgroundrb:68:in `new'
	from ./script/backgroundrb:68
/var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:109:in `exec': No such file or directory - packet_worker_runner 10:9:billing_worker:4:/pub/misc/home/ngtzeyang/com/icresource/bzr/harvest/dev-ngtzeyang/lib/workers:/pub/misc/home/ngtzeyang/com/icresource/bzr/harvest/dev-ngtzeyang/script/load_worker_env (Errno::ENOENT)
	from /var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:109:in `fork_and_load'
	from /var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:68:in `load_workers'
	from /var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:63:in `each'
	from /var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:63:in `load_workers'
	from /var/lib/gems/1.8/gems/packet-0.1.9/lib/packet/packet_master.rb:20:in `run'
	from /pub/misc/home/ngtzeyang/com/icresource/bzr/harvest/dev-ngtzeyang/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:14:in `initialize'
	from ./script/backgroundrb:68:in `new'
	from ./script/backgroundrb:68

I'm using: rails-2.1.0, backgrounddrb plugin showing latest contribution on '2008-06-19'

And i've tried: the packet gems 0.1.7, 0.1.8 and 0.1.9, edge version from GIT.

And all of them shows the same problem. Nobody seems the encounter the same problem as me, what could have gone wrong ??

Change History

07/31/08 02:25:28 changed by fot..@funtasia.gr

The gem packet installs one binary packet_worker_runner. Make sure it's in your PATH.

Judging from your log messages, most probably, you will find the binary in /var/lib/gems/1.8/bin.

08/17/08 19:28:41 changed by ngty..@gmail.com

Yup, you are correct. Adding /var/lib/gems/1.8/bin to my PATH does solve the problem. Did a quick search on google and and found that many people did encounter similar problem due to failure to update PATH. If only the log messages can be more indicative.