Hi all. I''m hoping this is a really simple issue, but I''ve been scouring the web for a few hours and have come up with nothing. I am running the newest backgroundrb from git (1.1) on a Mac running Leopard. Environment below. I have installed packet 0.1.14 and chronic 0.2.3 as well as run the setup rake task (and made sure all my files in the script/ directory were cleaned out). When I start backgroundrb - /script/backgroundrb start I get the following in the debug log /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `gem_original_require'': no such file to load -- log_worker (LoadError) from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in `require'' from /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:35:in `load_worker'' from /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:26:in `initialize'' from /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47:in `new'' from /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47 from /usr/bin/packet_worker_runner:19:in `load'' from /usr/bin/packet_worker_runner:19 The server is running, but when it tries to run one of my workers, it reports the same "no such file to load" error. Can anyone help out? Thanks in advance Adam Kenger ------------------------- RubyGems Environment: - RUBYGEMS VERSION: 1.2.0 - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby - EXECUTABLE DIRECTORY: /usr/bin - RUBYGEMS PLATFORMS: - ruby - universal-darwin-9 - GEM PATHS: - /Library/Ruby/Gems/1.8 - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"] - REMOTE SOURCES: - http://gems.rubyforge.org/ - http://gems.github.com *** LOCAL GEMS *** actionmailer (2.1.1, 2.1.0, 2.0.2, 1.3.6, 1.3.3) actionpack (2.1.1, 2.1.0, 2.0.2, 1.13.6, 1.13.5, 1.13.3) actionwebservice (1.2.6) activerecord (2.1.1, 2.1.0, 2.0.2, 1.15.6, 1.15.5, 1.15.3) activeresource (2.1.1, 2.1.0, 2.0.2) activesupport (2.1.1, 2.1.0, 2.0.2, 1.4.4, 1.4.2) acts_as_ferret (0.4.3, 0.4.1) adzap-ar_mailer (1.4.3) bcrypt-ruby (2.0.3, 2.0.2) capistrano (2.5.0, 2.4.3, 2.2.0, 2.1.0, 2.0.0) cgi_multipart_eof_fix (2.5.0) chronic (0.2.3) composite_primary_keys (0.9.93) daemons (1.0.10, 1.0.9) dnssd (0.7.0, 0.6.0) fastthread (1.0.1) fcgi (0.8.7) ferret (0.11.6, 0.11.4) gem_plugin (0.2.3) highline (1.4.0, 1.2.9) hoe (1.8.0, 1.7.0) hpricot (0.6.161, 0.6) libxml-ruby (0.8.3, 0.5.4, 0.5.2.0) linecache (0.43) mongrel (1.1.5, 1.1.4, 1.1.2) mysql (2.7) needle (1.3.0) net-scp (1.0.1) net-sftp (2.0.1, 1.1.1, 1.1.0) net-ssh (2.0.4, 2.0.3, 1.1.2) net-ssh-gateway (1.0.0) packet (0.1.14) rails (2.1.1, 2.1.0, 2.0.2, 1.2.6, 1.2.3) rake (0.8.3, 0.8.1, 0.7.3) RedCloth (4.0.4, 4.0.1, 3.0.4) ruby-debug-base (0.10.2, 0.10.1, 0.10.0) ruby-debug-ide (0.3.1, 0.2.0, 0.1.10) ruby-openid (2.1.2, 2.0.4, 2.0.1, 1.1.4) ruby-yadis (0.3.4) rubyforge (1.0.0) rubygems-update (1.3.0, 1.2.0, 1.1.1, 0.9.5) rubynode (0.1.5, 0.1.4, 0.1.3) sources (0.0.1) sqlite3-ruby (1.2.4, 1.2.2, 1.2.1) termios (0.9.4) -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20081015/36c502bf/attachment-0001.html>
I reported a similar error on Leopard on Sept. 12th (check archives). Hemant suggested the following, which worked for me, but the context was running ''god'':> Looks like, PATH is not proper when god is automatically starting it. > Check if "packet_worker_runner" script is in PATH.Its a executable, > that > packet installs when gem gets installed.I''m not sure where you''d set the PATH so packet_worker_runner can find your workers. Somehow, you want to add the /Library/Ruby/Gems/1.8/.../packet_worker_runner path somewhere. By the way, since you''re on Leopard, you may have more luck running your own versions of ruby and rubygems by following these excellent instructions: http://hivelogic.com/articles/2008/02/ruby-rails-leopard John On Oct 15, 2008, at 1:15 PM, Adam Kenger wrote:> Hi all. I''m hoping this is a really simple issue, but I''ve been > scouring the web for a few hours and have come up with nothing. > > I am running the newest backgroundrb from git (1.1) on a Mac running > Leopard. Environment below. > > I have installed packet 0.1.14 and chronic 0.2.3 as well as run the > setup rake task (and made sure all my files in the script/ directory > were cleaned out). > > When I start backgroundrb - > > /script/backgroundrb start > > I get the following in the debug log > > /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'': no such file to load -- log_worker (LoadError) > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in > `require'' > from /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:35:in `load_worker'' > from /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:26:in `initialize'' > from /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:47:in `new'' > from /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:47 > from /usr/bin/packet_worker_runner:19:in `load'' > from /usr/bin/packet_worker_runner:19 > > The server is running, but when it tries to run one of my workers, > it reports the same "no such file to load" error. > > Can anyone help out? > > Thanks in advance > > Adam Kenger > > ------------------------- > > > > RubyGems Environment: > - RUBYGEMS VERSION: 1.2.0 > - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal- > darwin9.0] > - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 > - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/ > Versions/1.8/usr/bin/ruby > - EXECUTABLE DIRECTORY: /usr/bin > - RUBYGEMS PLATFORMS: > - ruby > - universal-darwin-9 > - GEM PATHS: > - /Library/Ruby/Gems/1.8 > - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/ > lib/ruby/gems/1.8 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com > "] > - REMOTE SOURCES: > - http://gems.rubyforge.org/ > - http://gems.github.com > > > *** LOCAL GEMS *** > > actionmailer (2.1.1, 2.1.0, 2.0.2, 1.3.6, 1.3.3) > actionpack (2.1.1, 2.1.0, 2.0.2, 1.13.6, 1.13.5, 1.13.3) > actionwebservice (1.2.6) > activerecord (2.1.1, 2.1.0, 2.0.2, 1.15.6, 1.15.5, 1.15.3) > activeresource (2.1.1, 2.1.0, 2.0.2) > activesupport (2.1.1, 2.1.0, 2.0.2, 1.4.4, 1.4.2) > acts_as_ferret (0.4.3, 0.4.1) > adzap-ar_mailer (1.4.3) > bcrypt-ruby (2.0.3, 2.0.2) > capistrano (2.5.0, 2.4.3, 2.2.0, 2.1.0, 2.0.0) > cgi_multipart_eof_fix (2.5.0) > chronic (0.2.3) > composite_primary_keys (0.9.93) > daemons (1.0.10, 1.0.9) > dnssd (0.7.0, 0.6.0) > fastthread (1.0.1) > fcgi (0.8.7) > ferret (0.11.6, 0.11.4) > gem_plugin (0.2.3) > highline (1.4.0, 1.2.9) > hoe (1.8.0, 1.7.0) > hpricot (0.6.161, 0.6) > libxml-ruby (0.8.3, 0.5.4, 0.5.2.0) > linecache (0.43) > mongrel (1.1.5, 1.1.4, 1.1.2) > mysql (2.7) > needle (1.3.0) > net-scp (1.0.1) > net-sftp (2.0.1, 1.1.1, 1.1.0) > net-ssh (2.0.4, 2.0.3, 1.1.2) > net-ssh-gateway (1.0.0) > packet (0.1.14) > rails (2.1.1, 2.1.0, 2.0.2, 1.2.6, 1.2.3) > rake (0.8.3, 0.8.1, 0.7.3) > RedCloth (4.0.4, 4.0.1, 3.0.4) > ruby-debug-base (0.10.2, 0.10.1, 0.10.0) > ruby-debug-ide (0.3.1, 0.2.0, 0.1.10) > ruby-openid (2.1.2, 2.0.4, 2.0.1, 1.1.4) > ruby-yadis (0.3.4) > rubyforge (1.0.0) > rubygems-update (1.3.0, 1.2.0, 1.1.1, 0.9.5) > rubynode (0.1.5, 0.1.4, 0.1.3) > sources (0.0.1) > sqlite3-ruby (1.2.4, 1.2.2, 1.2.1) > termios (0.9.4) > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20081015/7c9f4ed9/attachment.html>
Did you remove both "backgroundrb" and "load_worker_env.rb" script from script directory of your rails app, before running "rake backgroundrb:setup" ? On Wed, Oct 15, 2008 at 10:45 PM, Adam Kenger <akenger at gmail.com> wrote:> Hi all. I''m hoping this is a really simple issue, but I''ve been scouring > the web for a few hours and have come up with nothing. > I am running the newest backgroundrb from git (1.1) on a Mac running > Leopard. Environment below. > I have installed packet 0.1.14 and chronic 0.2.3 as well as run the setup > rake task (and made sure all my files in the script/ directory were cleaned > out). > When I start backgroundrb - > /script/backgroundrb start > I get the following in the debug log > /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'': no such file to load -- log_worker (LoadError) > from /Library/Ruby/Site/1.8/rubygems/custom_require.rb:27:in > `require'' > from > /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:35:in > `load_worker'' > from > /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:26:in > `initialize'' > from > /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47:in > `new'' > from > /Library/Ruby/Gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47 > from /usr/bin/packet_worker_runner:19:in `load'' > from /usr/bin/packet_worker_runner:19 > The server is running, but when it tries to run one of my workers, it > reports the same "no such file to load" error. > Can anyone help out? > Thanks in advance > Adam Kenger > ------------------------- > > > RubyGems Environment: > - RUBYGEMS VERSION: 1.2.0 > - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal-darwin9.0] > - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 > - RUBY EXECUTABLE: > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby > - EXECUTABLE DIRECTORY: /usr/bin > - RUBYGEMS PLATFORMS: > - ruby > - universal-darwin-9 > - GEM PATHS: > - /Library/Ruby/Gems/1.8 > - > /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/gems/1.8 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com"] > - REMOTE SOURCES: > - http://gems.rubyforge.org/ > - http://gems.github.com > > *** LOCAL GEMS *** > actionmailer (2.1.1, 2.1.0, 2.0.2, 1.3.6, 1.3.3) > actionpack (2.1.1, 2.1.0, 2.0.2, 1.13.6, 1.13.5, 1.13.3) > actionwebservice (1.2.6) > activerecord (2.1.1, 2.1.0, 2.0.2, 1.15.6, 1.15.5, 1.15.3) > activeresource (2.1.1, 2.1.0, 2.0.2) > activesupport (2.1.1, 2.1.0, 2.0.2, 1.4.4, 1.4.2) > acts_as_ferret (0.4.3, 0.4.1) > adzap-ar_mailer (1.4.3) > bcrypt-ruby (2.0.3, 2.0.2) > capistrano (2.5.0, 2.4.3, 2.2.0, 2.1.0, 2.0.0) > cgi_multipart_eof_fix (2.5.0) > chronic (0.2.3) > composite_primary_keys (0.9.93) > daemons (1.0.10, 1.0.9) > dnssd (0.7.0, 0.6.0) > fastthread (1.0.1) > fcgi (0.8.7) > ferret (0.11.6, 0.11.4) > gem_plugin (0.2.3) > highline (1.4.0, 1.2.9) > hoe (1.8.0, 1.7.0) > hpricot (0.6.161, 0.6) > libxml-ruby (0.8.3, 0.5.4, 0.5.2.0) > linecache (0.43) > mongrel (1.1.5, 1.1.4, 1.1.2) > mysql (2.7) > needle (1.3.0) > net-scp (1.0.1) > net-sftp (2.0.1, 1.1.1, 1.1.0) > net-ssh (2.0.4, 2.0.3, 1.1.2) > net-ssh-gateway (1.0.0) > packet (0.1.14) > rails (2.1.1, 2.1.0, 2.0.2, 1.2.6, 1.2.3) > rake (0.8.3, 0.8.1, 0.7.3) > RedCloth (4.0.4, 4.0.1, 3.0.4) > ruby-debug-base (0.10.2, 0.10.1, 0.10.0) > ruby-debug-ide (0.3.1, 0.2.0, 0.1.10) > ruby-openid (2.1.2, 2.0.4, 2.0.1, 1.1.4) > ruby-yadis (0.3.4) > rubyforge (1.0.0) > rubygems-update (1.3.0, 1.2.0, 1.1.1, 0.9.5) > rubynode (0.1.5, 0.1.4, 0.1.3) > sources (0.0.1) > sqlite3-ruby (1.2.4, 1.2.2, 1.2.1) > termios (0.9.4) > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >-- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org
its been two days that i am struggling with this error. i have followed all the instructions in http://backgroundrb.rubyforge.org. when i start the server i get the following error 1. /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: 27:in `gem_original_require'': no such file to load -- task_alert_worker (LoadError) 2. from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ custom_require.rb:27:in `require'' 3. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ packet_worker_runner:35:in `load_worker'' 4. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ packet_worker_runner:26:in `initialize'' 5. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ packet_worker_runner:47:in `new'' 6. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ packet_worker_runner:47 7. from /opt/local/bin/packet_worker_runner:19:in `load'' 8. from /opt/local/bin/packet_worker_runner:19 9. /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: 27:in `gem_original_require'': no such file to load -- task_alert_worker (LoadError) 10. from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ custom_require.rb:27:in `require'' 11. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ packet_worker_runner:35:in `load_worker'' 12. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ packet_worker_runner:26:in `initialize'' 13. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ packet_worker_runner:47:in `new'' 14. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ packet_worker_runner:47 15. from /opt/local/bin/packet_worker_runner:19:in `load'' 16. from /opt/local/bin/packet_worker_runner:19 somewhere i read that this can be fixed by rolling back the packet gem to version 0.1.5. it did fix the start up problem but then when i call a worker from the console i get the following error which i guess has to do with the dependency. 1. /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ active_support/dependencies.rb:279:in `load_missing_constant'': uninitialized constant Packet::BinParser (NameError) 2. from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ active_support/dependencies.rb:468:in `const_missing'' 3. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/server/lib/master_worker.rb:165:in `post_init'' 4. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_connection.rb:21:in `invoke_init'' 5. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:302:in `decorate_handler'' 6. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:76:in `accept_connection'' 7. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:202:in `handle_external_messages'' 8. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:178:in `handle_read_event'' 9. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:174:in `each'' 10. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:174:in `handle_read_event'' 11. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:130:in `start_reactor'' 12. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:124:in `loop'' 13. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:124:in `start_reactor'' 14. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:21:in `run'' 15. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/server/lib/master_proxy.rb:14:in `initialize'' 16. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `new'' 17. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `start'' 18. from ./script/backgroundrb:35 19. /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_nbio.rb:25:in `read_data'': Packet::DisconnectError (Packet::DisconnectError) 20. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_worker.rb:46:in `handle_internal_messages'' 21. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:176:in `handle_read_event'' 22. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:174:in `each'' 23. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:174:in `handle_read_event'' 24. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:130:in `start_reactor'' 25. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:124:in `loop'' 26. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:124:in `start_reactor'' 27. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_worker.rb:20:in `start_worker'' 28. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:133:in `fork_and_load'' 29. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:96:in `load_workers'' 30. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:91:in `each'' 31. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:91:in `load_workers'' 32. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:20:in `run'' 33. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/server/lib/master_proxy.rb:14:in `initialize'' 34. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `new'' 35. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `start'' 36. from ./script/backgroundrb:35 37. /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_nbio.rb:25:in `read_data'': Packet::DisconnectError (Packet::DisconnectError) 38. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_worker.rb:46:in `handle_internal_messages'' 39. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:176:in `handle_read_event'' 40. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:174:in `each'' 41. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:174:in `handle_read_event'' 42. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:130:in `start_reactor'' 43. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:124:in `loop'' 44. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_core.rb:124:in `start_reactor'' 45. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_worker.rb:20:in `start_worker'' 46. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:133:in `fork_and_load'' 47. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:108:in `start_worker'' 48. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/server/lib/master_proxy.rb:16:in `initialize'' 49. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ packet_master.rb:19:in `run'' 50. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/server/lib/master_proxy.rb:14:in `initialize'' 51. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `new'' 52. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `start'' 53. from ./script/backgroundrb:35 i am running os x. my gem versions : *** LOCAL GEMS *** actionmailer (2.1.1, 1.3.5) actionpack (2.1.1, 1.13.5) actionwebservice (1.2.5) activerecord (2.1.1, 1.15.5) activeresource (2.1.1) activesupport (2.1.1, 1.4.4) arrayfields (4.6.0) capistrano (2.5.0) capistrano-ext (1.2.1) cgi_multipart_eof_fix (2.5.0) cheat (1.2.1) chronic (0.2.3) daemons (1.0.10) eventmachine (0.12.2) fastercsv (1.4.0) fastthread (1.0.1) fattr (1.0.3) gem_plugin (0.2.3) git (1.0.5) git-rails (0.2.1) highline (1.4.0) hoe (1.7.0) hpricot (0.6.161) libxml-ruby (0.8.3) main (2.8.2) memcache-client (1.5.0) mongrel (1.1.5) mysql (2.7) net-scp (1.0.1) net-sftp (2.0.1) net-ssh (2.0.4) net-ssh-gateway (1.0.0) packet (0.1.14) rails (2.1.1, 1.2.5) rake (0.8.3) rubyforge (1.0.0) starling (0.9.8) SyslogLogger (1.4.0) ZenTest (3.10.0) by the way every time i changed something i removed ./script/ load_worker_env.rb and ./script/backgroundrb and ran rake backgroundrb:setup how can i fix this problem. aslan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20081022/7704487b/attachment-0001.html>
Were you upgrading from old version or fresh install? Try to reproduce the problem with a fresh rails application and send me the zipped copy, if it still doesn''t work. Afaik, looks like "lib/workers" is not in path. Are you using config.pluigns directive in your rails application? On Thu, Oct 23, 2008 at 2:52 AM, Aslan Neishaboori <aneishaboori at socialvibe.com> wrote:> its been two days that i am struggling with this error. i have followed all > the instructions in http://backgroundrb.rubyforge.org. > > when i start the server i get the following error > > 1. /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'': no such file to load -- task_alert_worker > (LoadError) > 2. from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > 3. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:35:in > `load_worker'' > 4. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:26:in > `initialize'' > 5. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47:in > `new'' > 6. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47 > 7. from /opt/local/bin/packet_worker_runner:19:in `load'' > 8. from /opt/local/bin/packet_worker_runner:19 > 9. /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in > `gem_original_require'': no such file to load -- task_alert_worker > (LoadError) > 10. from > /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in > `require'' > 11. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:35:in > `load_worker'' > 12. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:26:in > `initialize'' > 13. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47:in > `new'' > 14. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/packet_worker_runner:47 > 15. from /opt/local/bin/packet_worker_runner:19:in `load'' > 16. from /opt/local/bin/packet_worker_runner:19 > > > > somewhere i read that this can be fixed by rolling back the packet gem to > version 0.1.5. it did fix the start up problem but then when i call a worker > from the console i get the following error which i guess has to do with the > dependency. > > 1. > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:279:in > `load_missing_constant'': uninitialized constant Packet::BinParser > (NameError) > 2. from > /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/active_support/dependencies.rb:468:in > `const_missing'' > 3. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/server/lib/master_worker.rb:165:in > `post_init'' > 4. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_connection.rb:21:in > `invoke_init'' > 5. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:302:in > `decorate_handler'' > 6. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:76:in > `accept_connection'' > 7. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:202:in > `handle_external_messages'' > 8. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:178:in > `handle_read_event'' > 9. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:174:in > `each'' > 10. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:174:in > `handle_read_event'' > 11. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:130:in > `start_reactor'' > 12. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:124:in > `loop'' > 13. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:124:in > `start_reactor'' > 14. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:21:in > `run'' > 15. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:14:in > `initialize'' > 16. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in > `new'' > 17. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in > `start'' > 18. from ./script/backgroundrb:35 > 19. > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:25:in > `read_data'': Packet::DisconnectError (Packet::DisconnectError) > 20. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:46:in > `handle_internal_messages'' > 21. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:176:in > `handle_read_event'' > 22. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:174:in > `each'' > 23. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:174:in > `handle_read_event'' > 24. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:130:in > `start_reactor'' > 25. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:124:in > `loop'' > 26. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:124:in > `start_reactor'' > 27. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:20:in > `start_worker'' > 28. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:133:in > `fork_and_load'' > 29. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:96:in > `load_workers'' > 30. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:91:in > `each'' > 31. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:91:in > `load_workers'' > 32. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:20:in > `run'' > 33. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:14:in > `initialize'' > 34. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in > `new'' > 35. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in > `start'' > 36. from ./script/backgroundrb:35 > 37. > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_nbio.rb:25:in > `read_data'': Packet::DisconnectError (Packet::DisconnectError) > 38. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:46:in > `handle_internal_messages'' > 39. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:176:in > `handle_read_event'' > 40. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:174:in > `each'' > 41. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:174:in > `handle_read_event'' > 42. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:130:in > `start_reactor'' > 43. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:124:in > `loop'' > 44. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_core.rb:124:in > `start_reactor'' > 45. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_worker.rb:20:in > `start_worker'' > 46. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:133:in > `fork_and_load'' > 47. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:108:in > `start_worker'' > 48. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:16:in > `initialize'' > 49. from > /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/packet_master.rb:19:in > `run'' > 50. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/server/lib/master_proxy.rb:14:in > `initialize'' > 51. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in > `new'' > 52. from /Users/aslan/Documents/Aptana > Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in > `start'' > 53. from ./script/backgroundrb:35 > > > i am running os x. > my gem versions : > *** LOCAL GEMS *** > > actionmailer (2.1.1, 1.3.5) > actionpack (2.1.1, 1.13.5) > actionwebservice (1.2.5) > activerecord (2.1.1, 1.15.5) > activeresource (2.1.1) > activesupport (2.1.1, 1.4.4) > arrayfields (4.6.0) > capistrano (2.5.0) > capistrano-ext (1.2.1) > cgi_multipart_eof_fix (2.5.0) > cheat (1.2.1) > chronic (0.2.3) > daemons (1.0.10) > eventmachine (0.12.2) > fastercsv (1.4.0) > fastthread (1.0.1) > fattr (1.0.3) > gem_plugin (0.2.3) > git (1.0.5) > git-rails (0.2.1) > highline (1.4.0) > hoe (1.7.0) > hpricot (0.6.161) > libxml-ruby (0.8.3) > main (2.8.2) > memcache-client (1.5.0) > mongrel (1.1.5) > mysql (2.7) > net-scp (1.0.1) > net-sftp (2.0.1) > net-ssh (2.0.4) > net-ssh-gateway (1.0.0) > packet (0.1.14) > rails (2.1.1, 1.2.5) > rake (0.8.3) > rubyforge (1.0.0) > starling (0.9.8) > SyslogLogger (1.4.0) > ZenTest (3.10.0) > > by the way every time i changed something i removed > ./script/load_worker_env.rb and ./script/backgroundrb and ran > rake backgroundrb:setup > > how can i fix this problem. > > aslan > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >-- Let them talk of their oriental summer climes of everlasting conservatories; give me the privilege of making my own summer with my own coals. http://gnufied.org
> Hi Hemant > > This is a fresh new application with no code in it except the small > code i made to test backgroundrb. as you have actually pointed out i > did run a $: on the console and lib was there but no lib/workers > (with s). so that could be the reason but why is it not there and > how can i add it ?On Oct 23, 2008, at 1:28 AM, hemant wrote:> Were you upgrading from old version or fresh install? > > Try to reproduce the problem with a fresh rails application and send > me the zipped copy, if it still doesn''t work. > > Afaik, looks like "lib/workers" is not in path. Are you using > config.pluigns directive in your rails application? > > > > On Thu, Oct 23, 2008 at 2:52 AM, Aslan Neishaboori > <aneishaboori at socialvibe.com> wrote: >> its been two days that i am struggling with this error. i have >> followed all >> the instructions in http://backgroundrb.rubyforge.org. >> >> when i start the server i get the following error >> >> 1. /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: >> 27:in >> `gem_original_require'': no such file to load -- task_alert_worker >> (LoadError) >> 2. from >> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in >> `require'' >> 3. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ >> packet_worker_runner:35:in >> `load_worker'' >> 4. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ >> packet_worker_runner:26:in >> `initialize'' >> 5. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ >> packet_worker_runner:47:in >> `new'' >> 6. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ >> packet_worker_runner:47 >> 7. from /opt/local/bin/packet_worker_runner:19:in `load'' >> 8. from /opt/local/bin/packet_worker_runner:19 >> 9. /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: >> 27:in >> `gem_original_require'': no such file to load -- task_alert_worker >> (LoadError) >> 10. from >> /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:27:in >> `require'' >> 11. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ >> packet_worker_runner:35:in >> `load_worker'' >> 12. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ >> packet_worker_runner:26:in >> `initialize'' >> 13. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ >> packet_worker_runner:47:in >> `new'' >> 14. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ >> packet_worker_runner:47 >> 15. from /opt/local/bin/packet_worker_runner:19:in `load'' >> 16. from /opt/local/bin/packet_worker_runner:19 >> >> >> >> somewhere i read that this can be fixed by rolling back the packet >> gem to >> version 0.1.5. it did fix the start up problem but then when i call >> a worker >> from the console i get the following error which i guess has to do >> with the >> dependency. >> >> 1. >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ >> active_support/dependencies.rb:279:in >> `load_missing_constant'': uninitialized constant Packet::BinParser >> (NameError) >> 2. from >> /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ >> active_support/dependencies.rb:468:in >> `const_missing'' >> 3. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/server/lib/master_worker.rb: >> 165:in >> `post_init'' >> 4. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_connection.rb:21:in >> `invoke_init'' >> 5. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:302:in >> `decorate_handler'' >> 6. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:76:in >> `accept_connection'' >> 7. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:202:in >> `handle_external_messages'' >> 8. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:178:in >> `handle_read_event'' >> 9. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:174:in >> `each'' >> 10. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:174:in >> `handle_read_event'' >> 11. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:130:in >> `start_reactor'' >> 12. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:124:in >> `loop'' >> 13. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:124:in >> `start_reactor'' >> 14. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:21:in >> `run'' >> 15. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/server/lib/master_proxy.rb: >> 14:in >> `initialize'' >> 16. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/ >> bdrb_start_stop.rb:50:in >> `new'' >> 17. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/ >> bdrb_start_stop.rb:50:in >> `start'' >> 18. from ./script/backgroundrb:35 >> 19. >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_nbio.rb:25:in >> `read_data'': Packet::DisconnectError (Packet::DisconnectError) >> 20. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_worker.rb:46:in >> `handle_internal_messages'' >> 21. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:176:in >> `handle_read_event'' >> 22. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:174:in >> `each'' >> 23. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:174:in >> `handle_read_event'' >> 24. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:130:in >> `start_reactor'' >> 25. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:124:in >> `loop'' >> 26. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:124:in >> `start_reactor'' >> 27. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_worker.rb:20:in >> `start_worker'' >> 28. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:133:in >> `fork_and_load'' >> 29. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:96:in >> `load_workers'' >> 30. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:91:in >> `each'' >> 31. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:91:in >> `load_workers'' >> 32. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:20:in >> `run'' >> 33. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/server/lib/master_proxy.rb: >> 14:in >> `initialize'' >> 34. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/ >> bdrb_start_stop.rb:50:in >> `new'' >> 35. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/ >> bdrb_start_stop.rb:50:in >> `start'' >> 36. from ./script/backgroundrb:35 >> 37. >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_nbio.rb:25:in >> `read_data'': Packet::DisconnectError (Packet::DisconnectError) >> 38. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_worker.rb:46:in >> `handle_internal_messages'' >> 39. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:176:in >> `handle_read_event'' >> 40. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:174:in >> `each'' >> 41. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:174:in >> `handle_read_event'' >> 42. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:130:in >> `start_reactor'' >> 43. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:124:in >> `loop'' >> 44. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_core.rb:124:in >> `start_reactor'' >> 45. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_worker.rb:20:in >> `start_worker'' >> 46. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:133:in >> `fork_and_load'' >> 47. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:108:in >> `start_worker'' >> 48. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/server/lib/master_proxy.rb: >> 16:in >> `initialize'' >> 49. from >> /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ >> packet_master.rb:19:in >> `run'' >> 50. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/server/lib/master_proxy.rb: >> 14:in >> `initialize'' >> 51. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/ >> bdrb_start_stop.rb:50:in >> `new'' >> 52. from /Users/aslan/Documents/Aptana >> Studio/play/vendor/plugins/backgroundrb/lib/backgroundrb/ >> bdrb_start_stop.rb:50:in >> `start'' >> 53. from ./script/backgroundrb:35 >> >> >> i am running os x. >> my gem versions : >> *** LOCAL GEMS *** >> >> actionmailer (2.1.1, 1.3.5) >> actionpack (2.1.1, 1.13.5) >> actionwebservice (1.2.5) >> activerecord (2.1.1, 1.15.5) >> activeresource (2.1.1) >> activesupport (2.1.1, 1.4.4) >> arrayfields (4.6.0) >> capistrano (2.5.0) >> capistrano-ext (1.2.1) >> cgi_multipart_eof_fix (2.5.0) >> cheat (1.2.1) >> chronic (0.2.3) >> daemons (1.0.10) >> eventmachine (0.12.2) >> fastercsv (1.4.0) >> fastthread (1.0.1) >> fattr (1.0.3) >> gem_plugin (0.2.3) >> git (1.0.5) >> git-rails (0.2.1) >> highline (1.4.0) >> hoe (1.7.0) >> hpricot (0.6.161) >> libxml-ruby (0.8.3) >> main (2.8.2) >> memcache-client (1.5.0) >> mongrel (1.1.5) >> mysql (2.7) >> net-scp (1.0.1) >> net-sftp (2.0.1) >> net-ssh (2.0.4) >> net-ssh-gateway (1.0.0) >> packet (0.1.14) >> rails (2.1.1, 1.2.5) >> rake (0.8.3) >> rubyforge (1.0.0) >> starling (0.9.8) >> SyslogLogger (1.4.0) >> ZenTest (3.10.0) >> >> by the way every time i changed something i removed >> ./script/load_worker_env.rb and ./script/backgroundrb and ran >> rake backgroundrb:setup >> >> how can i fix this problem. >> >> aslan >> _______________________________________________ >> Backgroundrb-devel mailing list >> Backgroundrb-devel at rubyforge.org >> http://rubyforge.org/mailman/listinfo/backgroundrb-devel >> > > > > -- > Let them talk of their oriental summer climes of everlasting > conservatories; give me the privilege of making my own summer with my > own coals. > > http://gnufied.org
Hi Adam... following is what i got. Hemant told me to check to see if the lib/ workers is loaded into the path. I ran the $: on console and didnt see it there. anyways let me know if find a solution. thanks Aslan Macintosh-8:~ aslan$ gem env RubyGems Environment: - RUBYGEMS VERSION: 1.2.0 - RUBY VERSION: 1.8.7 (2008-08-11 patchlevel 72) [i686-darwin9] - INSTALLATION DIRECTORY: /opt/local/lib/ruby/gems/1.8 - RUBY EXECUTABLE: /opt/local/bin/ruby - EXECUTABLE DIRECTORY: /opt/local/bin - RUBYGEMS PLATFORMS: - ruby - x86-darwin-9 - GEM PATHS: - /opt/local/lib/ruby/gems/1.8 - GEM CONFIGURATION: - :update_sources => true - :verbose => true - :benchmark => false - :backtrace => false - :bulk_threshold => 1000 - REMOTE SOURCES: - http://gems.rubyforge.org/ On Oct 24, 2008, at 10:22 AM, Adam Kenger wrote:> Aslan - can you do a $>gem env at the command prompt and paste the > output? I fought a lot with this myself a couple weeks ago (similar > error - no such file to load) and traded a bunch of emails with > Hemant and it turns out that I don''t think this package works too > well with the default ruby installation done from Apple. Below is > my environment which I could NOT get working at all on my Mac. I > decided that since my production env. wasn''t going to be my mac but > a Linux machine with a slightly different release of Ruby and Gems, > as long as it worked there, that was good enough for me. The > environment that Hemant used to do all the testing on OS X was a > custom ruby installation. > > Hope that helps > > Adam > > ------------------- > > RubyGems Environment: > - RUBYGEMS VERSION: 1.2.0 > - RUBY VERSION: 1.8.6 (2008-03-03 patchlevel 114) [universal- > darwin9.0] > - INSTALLATION DIRECTORY: /Library/Ruby/Gems/1.8 > - RUBY EXECUTABLE: /System/Library/Frameworks/Ruby.framework/ > Versions/1.8/usr/bin/ruby > - EXECUTABLE DIRECTORY: /usr/bin > - RUBYGEMS PLATFORMS: > - ruby > - universal-darwin-9 > - GEM PATHS: > - /Library/Ruby/Gems/1.8 > - /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/ > lib/ruby/gems/1.8 > - GEM CONFIGURATION: > - :update_sources => true > - :verbose => true > - :benchmark => false > - :backtrace => false > - :bulk_threshold => 1000 > - :sources => ["http://gems.rubyforge.org/", "http://gems.github.com > "] > - REMOTE SOURCES: > - http://gems.rubyforge.org/ > - http://gems.github.com > > > On Wed, Oct 22, 2008 at 5:22 PM, Aslan Neishaboori <aneishaboori at socialvibe.com > > wrote: > its been two days that i am struggling with this error. i have > followed all the instructions in http://backgroundrb.rubyforge.org. > > when i start the server i get the following error > > 1. /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require'': no such file to load -- > task_alert_worker (LoadError) > 2. from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ > custom_require.rb:27:in `require'' > 3. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:35:in `load_worker'' > 4. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:26:in `initialize'' > 5. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:47:in `new'' > 6. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:47 > 7. from /opt/local/bin/packet_worker_runner:19:in `load'' > 8. from /opt/local/bin/packet_worker_runner:19 > 9. /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb: > 27:in `gem_original_require'': no such file to load -- > task_alert_worker (LoadError) > 10. from /opt/local/lib/ruby/vendor_ruby/1.8/rubygems/ > custom_require.rb:27:in `require'' > 11. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:35:in `load_worker'' > 12. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:26:in `initialize'' > 13. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:47:in `new'' > 14. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.14/bin/ > packet_worker_runner:47 > 15. from /opt/local/bin/packet_worker_runner:19:in `load'' > 16. from /opt/local/bin/packet_worker_runner:19 > > > > somewhere i read that this can be fixed by rolling back the packet > gem to version 0.1.5. it did fix the start up problem but then when > i call a worker from the console i get the following error which i > guess has to do with the dependency. > > 1. /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/lib/ > active_support/dependencies.rb:279:in `load_missing_constant'': > uninitialized constant Packet::BinParser (NameError) > 2. from /opt/local/lib/ruby/gems/1.8/gems/activesupport-2.1.1/ > lib/active_support/dependencies.rb:468:in `const_missing'' > 3. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/server/lib/master_worker.rb:165:in `post_init'' > 4. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_connection.rb:21:in `invoke_init'' > 5. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:302:in `decorate_handler'' > 6. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:76:in `accept_connection'' > 7. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:202:in `handle_external_messages'' > 8. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:178:in `handle_read_event'' > 9. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:174:in `each'' > 10. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:174:in `handle_read_event'' > 11. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:130:in `start_reactor'' > 12. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:124:in `loop'' > 13. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:124:in `start_reactor'' > 14. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:21:in `run'' > 15. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/server/lib/master_proxy.rb:14:in `initialize'' > 16. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `new'' > 17. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `start'' > 18. from ./script/backgroundrb:35 > 19. /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ > packet_nbio.rb:25:in `read_data'': Packet::DisconnectError > (Packet::DisconnectError) > 20. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_worker.rb:46:in `handle_internal_messages'' > 21. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:176:in `handle_read_event'' > 22. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:174:in `each'' > 23. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:174:in `handle_read_event'' > 24. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:130:in `start_reactor'' > 25. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:124:in `loop'' > 26. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:124:in `start_reactor'' > 27. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_worker.rb:20:in `start_worker'' > 28. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:133:in `fork_and_load'' > 29. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:96:in `load_workers'' > 30. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:91:in `each'' > 31. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:91:in `load_workers'' > 32. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:20:in `run'' > 33. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/server/lib/master_proxy.rb:14:in `initialize'' > 34. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `new'' > 35. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `start'' > 36. from ./script/backgroundrb:35 > 37. /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/packet/ > packet_nbio.rb:25:in `read_data'': Packet::DisconnectError > (Packet::DisconnectError) > 38. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_worker.rb:46:in `handle_internal_messages'' > 39. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:176:in `handle_read_event'' > 40. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:174:in `each'' > 41. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:174:in `handle_read_event'' > 42. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:130:in `start_reactor'' > 43. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:124:in `loop'' > 44. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_core.rb:124:in `start_reactor'' > 45. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_worker.rb:20:in `start_worker'' > 46. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:133:in `fork_and_load'' > 47. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:108:in `start_worker'' > 48. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/server/lib/master_proxy.rb:16:in `initialize'' > 49. from /opt/local/lib/ruby/gems/1.8/gems/packet-0.1.5/lib/ > packet/packet_master.rb:19:in `run'' > 50. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/server/lib/master_proxy.rb:14:in `initialize'' > 51. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `new'' > 52. from /Users/aslan/Documents/Aptana Studio/play/vendor/plugins/ > backgroundrb/lib/backgroundrb/bdrb_start_stop.rb:50:in `start'' > 53. from ./script/backgroundrb:35 > > > i am running os x. > my gem versions : > *** LOCAL GEMS *** > > actionmailer (2.1.1, 1.3.5) > actionpack (2.1.1, 1.13.5) > actionwebservice (1.2.5) > activerecord (2.1.1, 1.15.5) > activeresource (2.1.1) > activesupport (2.1.1, 1.4.4) > arrayfields (4.6.0) > capistrano (2.5.0) > capistrano-ext (1.2.1) > cgi_multipart_eof_fix (2.5.0) > cheat (1.2.1) > chronic (0.2.3) > daemons (1.0.10) > eventmachine (0.12.2) > fastercsv (1.4.0) > fastthread (1.0.1) > fattr (1.0.3) > gem_plugin (0.2.3) > git (1.0.5) > git-rails (0.2.1) > highline (1.4.0) > hoe (1.7.0) > hpricot (0.6.161) > libxml-ruby (0.8.3) > main (2.8.2) > memcache-client (1.5.0) > mongrel (1.1.5) > mysql (2.7) > net-scp (1.0.1) > net-sftp (2.0.1) > net-ssh (2.0.4) > net-ssh-gateway (1.0.0) > packet (0.1.14) > rails (2.1.1, 1.2.5) > rake (0.8.3) > rubyforge (1.0.0) > starling (0.9.8) > SyslogLogger (1.4.0) > ZenTest (3.10.0) > > by the way every time i changed something i removed ./script/ > load_worker_env.rb and ./script/backgroundrb and ran > rake backgroundrb:setup > > how can i fix this problem. > > aslan > > _______________________________________________ > Backgroundrb-devel mailing list > Backgroundrb-devel at rubyforge.org > http://rubyforge.org/mailman/listinfo/backgroundrb-devel >-------------- next part -------------- An HTML attachment was scrubbed... URL: <http://rubyforge.org/pipermail/backgroundrb-devel/attachments/20081024/0d74a290/attachment-0001.html>