Ticket #15 (closed defect: fixed)

Opened 20 months ago

Last modified 11 days ago

svn up to r40, now getting mongrel startup error

Reported by: Stephen Bannasch <stephen.bannasch@…> Owned by: somebody
Priority: blocker Milestone:
Component: component1 Version:
Keywords: Cc:

Description

I updated webistrano to r40 and am now getting mongrel errors when starting. These errors often occur when a gem or plugin is missing. I DO NOT get the error on my laptop. I DO get the error on the server.

Here's what starting in development mode on the server looks like

$ script/server
=> Booting Mongrel (use 'script/server webrick' to force WEBrick)
=> Rails application starting on http://0.0.0.0:3000
=> Call with -d to detach
=> Ctrl-C to shutdown server
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
Exiting
/web/cosmos.concord.org/manage/vendor/rails/railties/lib/commands/servers/mongrel.rb:16: warning: already initialized constant OPTIONS
/web/cosmos.concord.org/manage/vendor/rails/railties/lib/commands/servers/mongrel.rb:19: undefined method `options' for []:Array (NoMethodError)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require'
        from /web/cosmos.concord.org/manage/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /web/cosmos.concord.org/manage/vendor/rails/activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /web/cosmos.concord.org/manage/vendor/rails/activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /web/cosmos.concord.org/manage/vendor/rails/railties/lib/commands/server.rb:39
        from script/server:3:in `require'
        from script/server:3

Here's a mongrel log when starting in production mode:

** Starting Mongrel listening at 127.0.0.1:8697
** Initiating groups for "mongrel":"mongrel".
** Changing group to "mongrel".
** Changing user to "mongrel".
** Starting Rails with production environment...
** Rails loaded.
** Loading any Rails specific GemPlugins
/usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require': no such file to load -- /usr/local/lib/ruby/gems/1.8/gems/ruport-0.8.11/lib/ruport/init.rb (MissingSourceFile)
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require'
        from /web/cosmos.concord.org/manage/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /web/cosmos.concord.org/manage/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:342:in `new_constants_in'
        from /web/cosmos.concord.org/manage/vendor/rails/activerecord/lib/../../activesupport/lib/active_support/dependencies.rb:495:in `require'
        from /usr/local/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:134:in `load'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:166:in `each'
        from /usr/local/lib/ruby/site_ruby/1.8/rubygems/source_index.rb:166:in `each'
        from /usr/local/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib/gem_plugin.rb:112:in `load'
         ... 9 levels...
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib/mongrel/command.rb:212:in `run'
        from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/mongrel_rails:281
        from /usr/local/bin/mongrel_rails:16:in `load'
        from /usr/local/bin/mongrel_rails:16

Change History

Changed 20 months ago by Stephen Bannasch <stephen.bannasch@…>

I added:

pp $:

to the end of environment.rb to get this list of what webstrano is loading:

["/web/cosmos.concord.org/manage/vendor/rails/actionmailer/lib/action_mailer/vendor/",
 "/web/cosmos.concord.org/manage/vendor/rails/actionpack/lib/action_controller/vendor/html-scanner",
 "/web/cosmos.concord.org/manage/test/mocks/development",
 "/web/cosmos.concord.org/manage/app/controllers/",
 "/web/cosmos.concord.org/manage/app",
 "/web/cosmos.concord.org/manage/app/models",
 "/web/cosmos.concord.org/manage/app/controllers",
 "/web/cosmos.concord.org/manage/app/helpers",
 "/web/cosmos.concord.org/manage/components",
 "/web/cosmos.concord.org/manage/config",
 "/web/cosmos.concord.org/manage/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/syntax-1.0.0/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/query_trace/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/open4-0.9.3/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/net-ssh-1.1.2/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/net-sftp-1.1.0/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/needle-1.3.0/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/multiple_select/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/mocha-0.4.0/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/highline-1.2.7/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/exception_notification/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/capistrano-2.1.0/lib",
 "/web/cosmos.concord.org/manage/vendor/plugins/browser_filters/lib",
 "/web/cosmos.concord.org/manage/vendor",
 "./script/../config/../vendor/rails/railties/lib/../builtin/rails_info/",
 "/web/cosmos.concord.org/manage/vendor/rails/railties",
 "/web/cosmos.concord.org/manage/vendor/rails/railties/lib",
 "/web/cosmos.concord.org/manage/vendor/rails/actionpack/lib",
 "/web/cosmos.concord.org/manage/vendor/rails/activesupport/lib",
 "/web/cosmos.concord.org/manage/vendor/rails/activerecord/lib",
 "/web/cosmos.concord.org/manage/vendor/rails/activeresource/lib",
 "/web/cosmos.concord.org/manage/vendor/rails/actionmailer/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin/../lib",
 "projects/mongrel_experimental/lib/",
 "/web/cosmos.concord.org/manage/vendor/rails/activesupport/lib/active_support/vendor",
 "./script/../config/../vendor/rails/railties/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/bin",
 "/usr/local/lib/ruby/gems/1.8/gems/gem_plugin-0.2.3/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/cgi_multipart_eof_fix-2.5.0/bin",
 "/usr/local/lib/ruby/gems/1.8/gems/cgi_multipart_eof_fix-2.5.0/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.9/bin",
 "/usr/local/lib/ruby/gems/1.8/gems/daemons-1.0.9/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/fastthread-1.0.1/bin",
 "/usr/local/lib/ruby/gems/1.8/gems/fastthread-1.0.1/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext",
 "/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/bin",
 "/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.1/ext",
 "/usr/local/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/bin",
 "/usr/local/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib",
 "/usr/local/lib/ruby/site_ruby/1.8",
 "/usr/local/lib/ruby/site_ruby/1.8/i686-linux",
 "/usr/local/lib/ruby/site_ruby",
 "/usr/local/lib/ruby/1.8",
 "/usr/local/lib/ruby/1.8/i686-linux",
 "."]

Changed 20 months ago by Stephen Bannasch <stephen.bannasch@…>

I was wrong earlier -- I am having the problem on my laptop also!

FYI: On the server webistrano is named manage.

>> pp $:.find_all { |s| !s[/manage/] }
["/usr/local/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/bin",
 "/usr/local/lib/ruby/gems/1.8/gems/RedCloth-3.0.4/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/fastthread-1.0.1/bin",
 "/usr/local/lib/ruby/gems/1.8/gems/fastthread-1.0.1/lib",
 "/usr/local/lib/ruby/gems/1.8/gems/fastthread-1.0.1/ext",
 "/usr/local/lib/ruby/site_ruby/1.8",
 "/usr/local/lib/ruby/site_ruby/1.8/i686-linux",
 "/usr/local/lib/ruby/site_ruby",
 "/usr/local/lib/ruby/1.8",
 "/usr/local/lib/ruby/1.8/i686-linux",
 "."]

Changed 20 months ago by Stephen Bannasch <stephen.bannasch@…>

Aha, the problem is still there if I revert back to r35 -- so it appears to be an interaction with some change I made on the server last night -- I don't test nearly as often on my laptop.

This is what I upgraded on the server last night:

  $ gem outdated
  Bulk updating Gem source index for: http://gems.rubyforge.org
  fastercsv (1.2.0 < 1.2.1)
  ruby-debug (0.8.1 < 0.9.3)
  mofo (0.2.1 < 0.2.10)
  mongrel (1.0.1 < 1.1.1)
  rails (1.2.4 < 1.2.5)
  actionwebservice (1.2.4 < 1.2.5)
  ruby-debug-base (0.8.1 < 0.9.3)
  activerecord (1.15.4 < 1.15.5)
  tzinfo (0.3.3 < 0.3.5)
  gem_plugin (0.2.2 < 0.2.3)
  libxml-ruby (0.3.8.4.1 < 0.5.2.0)
  ruport (0.8.12 < 1.2.2)
  image_science (1.1.1 < 1.1.3)
  erubis (2.2.0 < 2.4.1)
  uuidtools (1.0.0 < 1.0.2)
  cgi_multipart_eof_fix (2.1 < 2.5.0)
  attributes (4.0.0 < 5.0.0)
  net-ssh (1.0.10 < 1.1.2)
  mongrel_cluster (1.0.2 < 1.0.4)
  capistrano (1.4.1 < 2.1.0)
  merb (0.2.0 < 0.4.1)
  actionmailer (1.3.4 < 1.3.5)
  actionpack (1.13.4 < 1.13.5)
  json (1.0.1 < 1.1.1)
  daemons (1.0.5 < 1.0.9)
  RubyInline (3.6.2 < 3.6.5)
  activesupport (1.4.3 < 1.4.4)
  builder (2.1.1 < 2.1.2)
  hpricot (0.5.110 < 0.6)
  fastthread (1.0 < 1.0.1)

Changed 20 months ago by Stephen Bannasch <stephen.bannasch@…>

Another clue: I updated to ruby 1.8.6 patchlevel 111 last night.

Changed 20 months ago by Stephen Bannasch <stephen.bannasch@…>

This ticket in the rails trac describes a similar issue and solution:

http://dev.rubyonrails.org/ticket/9743

I'm investigating.

Changed 20 months ago by Stephen Bannasch <stephen.bannasch@…>

  • status changed from new to closed
  • resolution set to fixed

It appears to have been an interaction between one problem gem, ruby gems, mongrel and the plugin by the mongrel author gem_plugin.

See: http://rubyforge.org/pipermail/mongrel-users/2007-November/004499.html and: http://rubyforge.org/pipermail/rubygems-developers/2007-November/003292.html

Changed 7 months ago by sunrise

This works ok for me.. but It probably needs feedback. Force Air Jordan

Changed 6 months ago by solar

wuchangxianxie Sunpower Solar Water Heater Co., Ltd is a private company, professional producing solar water heater, and having the most advanced production line in Chinese, like automatic foaming machine imported from Italy, automatic argon arc welding machine from America, and numerical control punch. We use Germany Bayer's polyurethane and SUS304 stainless steel from Korea and Taiwan. Our company is one of the earliest companies engaging in exporting, having many years experience in exporting, and 90% of our products are exported to overseas market.

Sunpower Solar Energy Industry Co., Ltd, covers an area of nearly 150000 square metre, Now it has more than 300 workers and staff members among which the primary. Medium and high grade technicians share 65% of the total personnel. It is of abumdant technical force, advanced craft testing means. Its annual productive capacity reaches to 300000 sets. Our factory is the first to pass the ISO9001: 2000 quality system attestation among the same trade. Our products have get EN12975: 2 certificate, and all of the products are strictly complied with its standard. The goods reach to the first-class international standard. Now already export 62 counties. Our gain is "Where is sunlight, where is Sunpower". OEM also welcome.

http://www.solar-water-heaters.com.cn

Changed 7 weeks ago by jing

People who began the day a good healthy breakfast does not have loss weight diet throughout the day than those who do not eat breakfast.

Changed 11 days ago by bigqin

I'm gonna be 14 this summer. I have been looking online for jobs for 14 year olds are aloud to have. and i have some ideas already but I'm not sure if i wanna do them. i also wanted to know, are 14 year olds aloud to work as waitresses? idk. does anyone have any ideas? Besides the fact that jobs for 16 year olds are hard to come by, most places won't hire anyone that is 14. They aren't ALLOWED to due to labor laws. 16 is usually the youngest they allow.

Note: See TracTickets for help on using tickets.