Ticket #15 (closed defect: fixed)

Opened 2 years ago

Last modified 6 months 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 2 years 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 2 years 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 2 years 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 2 years ago by Stephen Bannasch <stephen.bannasch@…>

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

Changed 2 years 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 2 years 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 15 months ago by sunrise

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

Changed 15 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 10 months 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 9 months 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.

Changed 8 months ago by deewang

Thanks for a resourceful content. this is what i have been looking for so long. I don't get the idea why they start these kind of trial when the criminal are old. Perhaps this more personal form of accountability will deter future actors where the fear of international condemnation has not. Ed Hardy stores are located in many locations internationally including the Americas, Europe and Asia.


Cheap Ed Hardy | Ed Hardy Shop | Ed Hardy Sale | Ed Hardy UK | Ed Hardy Clothing | Ed Hardy London | Ed Hardy Apparel | Ed Hardy T-Shirts

Changed 8 months ago by submit102

Recently, the U.S. media published a selection which was conducted by the professionals, concerning the most attractive women. Michelle Obama topped the rank. You should never surprise why so many charming creatures, such as Angelina Jolie and Gisele Bundchen, are left behind. The reason is simply. Just imagine the consequence of the women like them appearing in the office. Having no advantages in face and figure, Michelle Obama, however, draws the admiration of the majority of people for her sensitive taste on fashion and capacity on dresses and jewellery. In view of her figure, age, status, and taste, she is a new ideal model for global women in the middle class. As for these professional women with high positions, they also finally get a jewelry model who deserves to be imitated. Apart from the special affection toward pearls, Michelle Obama also tries to laminate her jewels, for example, she wears Cartier upon Tiffany, being envied by most women. Lamination plays an important role in keeping the focus of eyes and increasing the sense of gradation, making her look so exclusive and unbeatable price that is hard to be ignored. But the brilliance of these jewelries requires people having certain status, abilities, qualities, as well as experience, being suitable for professional women in high positions. And these women really need a piece of bright diamond jewel in order to be confident among women in the same class. But as for young ladies, lamination of diamonds is too dear. Besides, lamination is just a fashion to them, so Tiffany or Channel silver jewelries couldn't be better for them. Paying close attention to the first lady is to follow the fashion and enjoy happy life as office ladies.

Changed 6 months ago by submit102

There will never the last piece of jewelry in women's casket, for they could not resist the temptation of brilliant links of london . links of london More importantly, in our opinion the true love is beyond the price and does not need any kind of ornaments. links of london Because jewelries, worn properly, could increase your fascination by showing off your personal taste and distinctive qualities. links of london Maybe you are obsessed with various jewelries, but have you ever considered that whether the jewelries you obtained are really suitable for you? Do they highlight you? Do they make you be more attractive? I do not mean that your links of london are not fantastic, but the point is do they match with your face shape and hair style? Check them according to the following tips. links of london It would be great pride if the tips being provided here about match of jewelry have been of help to you. links of london Great attention should be paid to the coordination of the jewelries you chose to your face, complexion, temperament, hairstyle, etc. so that you can obtain the most suitable jewelries. links of london The most important code: on one hand, your jewels can't be the same shape with your face; on the other hand, they can't be extremely different from your face shape. links of london To balance the wide forehead of those who have heart shaped face should wear teardrop or similar shaped earrings and jewels that could soften and diminish the sharp angle of the chin. Avoid wearing very short earrings. links of london The Afro hairstyle could be matched with large and loud links of london . links of london Black clothes matching with brightly colored jewelries are eye-catching. links of london When having dinners, authentic jewelries will let you become the incarnation of nobility and elegance. links of london On the other hand, the red and other color could light up the skin of the people who have white and smooth skin. links of london As for ladies who are tall and plump can choose the links of london jewels in large size but not the small ones. links of london If you are dressed up like a fair lady, then the simple style links of london are the best ornaments which will let you look pure and holy. links of london

Note: See TracTickets for help on using tickets.