Peritor Open Source
  • Home
  • Webistrano
  • Login
  • Settings
  • Register
  • Help/Guide
  • About Trac
  • Wiki
  • Timeline
  • Roadmap
  • Browse Source
  • View Tickets
  • Search

Ticket Navigation

Ticket #15 (closed defect: fixed)

Opened 8 months ago

Last modified 8 months ago

svn up to r40, now getting mongrel startup error

Reported by: Stephen Bannasch <stephen.bannasch@gmail.com> Assigned to: 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

11/13/07 20:44:59 changed by Stephen Bannasch <stephen.bannasch@gmail.com>

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",
 "."]

11/13/07 21:04:14 changed by Stephen Bannasch <stephen.bannasch@gmail.com>

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",
 "."]

11/13/07 21:13:29 changed by Stephen Bannasch <stephen.bannasch@gmail.com>

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)

11/13/07 21:59:28 changed by Stephen Bannasch <stephen.bannasch@gmail.com>

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

11/14/07 19:40:51 changed by Stephen Bannasch <stephen.bannasch@gmail.com>

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

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

I'm investigating.

11/15/07 09:41:25 changed by Stephen Bannasch <stephen.bannasch@gmail.com>

  • 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

Download in other formats: Comma-delimited Text  Tab-delimited Text  RSS Feed  


© 2007 - 2008 Peritor Wissensmanagement GmbH | Impressum | Legal

Powered by Trac 0.10.4 | Edgewall Software