[Backgroundrb-devel] Setting up release-1.0.1

andre andre at myavalaunch.com
Mon Jan 28 21:40:33 EST 2008


hemant wrote:
> On Tue, Jan 29, 2008 at 5:43 AM, Andre Borrelly <andre at myavalaunch.com> wrote:
>   
>>  Hello,
>>
>>  I am unable to get the backgroundrb server to run.
>>
>>  Initially I got:
>>
>>
>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:263:in
>> `load_missing_constant': uninitialized constant BackgrounDRb::MasterProxy
>> (NameError)
>>    from
>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in
>> `const_missing'
>>    from ./script/backgroundrb:41
>>
>>  Then after doing this:
>>
>>  Index: script/backgroundrb
>>  ===================================================================
>>  --- script/backgroundrb (revision 313)
>>  +++ script/backgroundrb (working copy)
>>  @@ -6,8 +6,10 @@
>>   WORKER_ROOT = rails_root + "/lib/workers"
>>   SERVER_LOGGER = rails_root + "/log/backgroundrb_server.log"
>>
>>  -["server","framework","lib"].each { |x| $LOAD_PATH.unshift(PACKET_APP +
>> "/#{x}")}
>>  -$LOAD_PATH.unshift(WORKER_ROOT)
>>  +#["server","framework","lib"].each { |x| $LOAD_PATH.unshift(PACKET_APP +
>> "/#{x}")}
>>  +["server","framework","lib"].each { |x| $:.push(PACKET_APP + "/#{x}")}
>>  +#$LOAD_PATH.unshift(WORKER_ROOT)
>>  +$:.push(WORKER_ROOT)
>>
>>   require RAILS_HOME + '/config/boot.rb'
>>   require "active_record"
>>
>>
>>  and adding in "environment.rb"
>>
>>    config.load_paths +=
>> Dir["#{RAILS_ROOT}/vendor/plugins/backgroundrb/server"]
>>    config.load_paths +=
>> Dir["#{RAILS_ROOT}/vendor/plugins/backgroundrb/framework"]
>>
>>  I get this:
>>
>>
>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:249:in
>> `load_missing_constant': Expected
>> RAILS_HOME/vendor/plugins/backgroundrb/server/master_worker.rb to define
>> MasterWorker (LoadError)
>>    from
>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:453:in
>> `const_missing'
>>    from
>> /usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:465:in
>> `const_missing'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/framework/packet_master.rb:96:in
>> `const_get'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/framework/packet_master.rb:96:in
>> `load_workers'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/framework/packet_master.rb:93:in
>> `each'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/framework/packet_master.rb:93:in
>> `load_workers'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/framework/packet_master.rb:19:in
>> `run'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/server/master_worker.rb:163:in
>> `initialize'
>>    from ./script/backgroundrb:62:in `new'
>>    from ./script/backgroundrb:62
>>  RAILS_HOME/vendor/plugins/backgroundrb/lib/../framework/nbio.rb:23:in
>> `read_data': Packet::DisconnectError (Packet::DisconnectError)
>>    from RAILS_HOME/vendor/plugins/backgroundrb/framework/worker.rb:47:in
>> `handle_internal_messages'
>>    from RAILS_HOME/vendor/plugins/backgroundrb/framework/core.rb:158:in
>> `start_reactor'
>>    from RAILS_HOME/vendor/plugins/backgroundrb/framework/core.rb:156:in
>> `each'
>>    from RAILS_HOME/vendor/plugins/backgroundrb/framework/core.rb:156:in
>> `start_reactor'
>>    from RAILS_HOME/vendor/plugins/backgroundrb/framework/core.rb:147:in
>> `loop'
>>    from RAILS_HOME/vendor/plugins/backgroundrb/framework/core.rb:147:in
>> `start_reactor'
>>    from RAILS_HOME/vendor/plugins/backgroundrb/framework/worker.rb:21:in
>> `start_worker'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/framework/packet_master.rb:134:in
>> `fork_and_load'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/framework/packet_master.rb:115:in
>> `start_worker'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/server/master_worker.rb:165:in
>> `initialize'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/framework/packet_master.rb:18:in
>> `run'
>>    from
>> RAILS_HOME/vendor/plugins/backgroundrb/server/master_worker.rb:163:in
>> `initialize'
>>    from ./script/backgroundrb:62:in `new'
>>    from ./script/backgroundrb:62
>>
>>     
>
> Did you actually delete your old, script/backgroundrb file and ran
>
> rake backgroundrb:setup
>
> Often you get start problems with new releases, because your plugin is
> upgraded, but start/stop script is not.
> Which OS you are on?
>   
Yes I have just followed those steps, but still no go.
I get:
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:266:in 
`load_missing_constant': uninitialized constant MasterWorker (NameError)

If I add this in the environment.rb
  config.load_paths += 
Dir["#{RAILS_ROOT}/vendor/plugins/backgroundrb/server"]
  config.load_paths += 
Dir["#{RAILS_ROOT}/vendor/plugins/backgroundrb/framework"]
I get
/usr/local/lib/ruby/gems/1.8/gems/activesupport-2.0.1/lib/active_support/dependencies.rb:249:in 
`load_missing_constant': Expected 
RAILS_HOME/vendor/plugins/backgroundrb/server/master_worker.rb to define 
MasterWorker (LoadError)


I'm running:
 Kubuntu 7.10: the Gutsy Gibbon Release.
 ruby 1.8.6 (2007-03-13 patchlevel 0) [i686-linux]
actionmailer (2.0.2, 2.0.1, 1.3.5, 1.3.3)
actionpack (2.0.2, 2.0.1, 1.13.6, 1.13.5, 1.13.3)
actionwebservice (1.2.6, 1.2.5, 1.2.3)
activeldap (0.9.0)
activerecord (2.0.2, 2.0.1, 1.15.6, 1.15.5, 1.15.3)
activeresource (2.0.2, 2.0.1)
activesupport (2.0.2, 2.0.1, 1.4.4, 1.4.2)
bleak_house (3.7, 3.5.1, 3.2)
ccsv (0.1, 0.0.2)
cgi_multipart_eof_fix (2.5.0, 2.3)
daemons (1.0.9, 1.0.8)
fastthread (1.0.1, 1.0)
gem_plugin (0.2.3, 0.2.2)
hoe (1.4.0, 1.3.0)
httpclient (2.1.2)
log4r (1.0.5)
mailtrap (0.2.1)
memcache-client (1.5.0)
mongrel (1.1.3, 1.1.1, 1.0.1)
mysql (2.7)
rails (2.0.2, 2.0.1, 1.2.5, 1.2.3)
rake (0.8.1, 0.7.3)
rcov (0.8.1.2.0, 0.8.0.2)
RedCloth (3.0.4)
rspec (1.1.2, 1.0.8)
ruby-debug-base (0.10.0, 0.9.3)
ruby-debug-ide (0.1.9, 0.1.8)
rubyforge (0.4.4)
rubygems-update (1.0.1, 0.9.5, 0.9.4)
sources (0.0.1)
transaction-simple (1.4.0)
trollop (1.7.2, 1.7)
tzinfo (0.3.6, 0.3.5, 0.3.4)
ZenTest (3.8.0, 3.7.2)


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20080128/f8f1d0ff/attachment.html 


More information about the Backgroundrb-devel mailing list