Help with "Hobo::Dryml (NameError)"

32 views
Skip to first unread message

Brian Corbin

unread,
Mar 6, 2012, 10:54:37 PM3/6/12
to hobo...@googlegroups.com
A server died on us and I am having trouble getting the backup of the code working on the new system.  I think I have all of the required gems and same ruby version that the dead server had.  Here's the error I get when starting up:

ruby script/server
=> Booting WEBrick
=> Rails 2.3.14 application starting on http://0.0.0.0:3000
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/gem_dependency.rb:21.
NOTE: Gem::SourceIndex#initialize is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#initialize called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/vendor_gem_source_index.rb:100.
NOTE: Gem.source_index is deprecated, use Specification. It will be removed on or after 2011-11-01.
Gem.source_index called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/gem_dependency.rb:78.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/vendor_gem_source_index.rb:123.
NOTE: Gem::SourceIndex#each is deprecated with no replacement. It will be removed on or after 2011-11-01.
Gem::SourceIndex#each called from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/rails/vendor_gem_source_index.rb:124.
/usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:469:in `load_missing_constant': uninitialized constant Hobo::Dryml (NameError)
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:106:in `const_missing'
        from /var/www/admin/config/initializers/hobo.rb:7
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:171:in `load_without_new_constant_marking'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:171:in `load'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:171:in `load'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:622:in `load_application_initializers'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:621:in `each'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:621:in `load_application_initializers'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:176:in `process'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `send'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/initializer.rb:113:in `run'
        from /var/www/admin/config/environment.rb:9
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:547:in `new_constants_in'
        from /usr/lib/ruby/gems/1.8/gems/activesupport-2.3.14/lib/active_support/dependencies.rb:182:in `require'
        from /usr/lib/ruby/gems/1.8/gems/rails-2.3.14/lib/commands/server.rb:84
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
        from /usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:36:in `require'
        from script/server:3

And here are the installed gems:
gem list --local

*** LOCAL GEMS ***

actionmailer (2.3.14)
actionpack (2.3.14)
activerecord (2.3.14)
activerecord-sqlserver-adapter (2.3.14)
activeresource (2.3.14)
activesupport (2.3.14)
arel (3.0.2)
builder (3.0.0)
bundler (1.0.22)
dryml (1.1.0)
erubis (2.7.0)
hike (1.2.1)
hobo (1.1.0)
hobofields (1.1.0)
hobosupport (1.1.0)
i18n (0.6.0)
journey (1.0.3)
json (1.6.5)
mail (2.4.3)
mime-types (1.17.2)
multi_json (1.1.0)
polyglot (0.3.3)
rack (1.4.1, 1.1.3)
rack-cache (1.2)
rack-ssl (1.3.2)
rack-test (0.6.1)
rails (2.3.14)
rake (0.9.2.2)
rdoc (3.12)
rdoc-data (3.12)
sprockets (2.1.2)
thor (0.14.6)
tilt (1.3.3)
treetop (1.4.10)
tzinfo (0.3.32)
will_paginate (2.3.16)

I have also downgraded rubygems to the version that was on the dead server. (1.3.6).  That got rid of warnings about deprecations, but the "uninitialized constant Hobo::Dryml (NameError)" error remains.

Does anyone have any idea why Hobo::Dryml is undefined here?  Thanks!

Brian

Bryan Larsen

unread,
Mar 7, 2012, 7:09:48 AM3/7/12
to hobo...@googlegroups.com
You've stumbled upon the major difference between Hobo 1.0 and 1.1.
In 1.0 DRYML is part of Hobo. In 1.1 it's been split out into it's
own gem, thus is accessed as Dryml rather than Hobo::Dryml. You can
either try with Hobo 1.0 or you can edit config/initializers/hobo.rb
to replace Hobo::Dryml with Dryml.

cheers,
Bryan

> --
> You received this message because you are subscribed to the Google Groups
> "Hobo Users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/hobousers/-/tytWoHRBHOAJ.
> To post to this group, send email to hobo...@googlegroups.com.
> To unsubscribe from this group, send email to
> hobousers+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

Brian Corbin

unread,
Mar 7, 2012, 12:21:54 PM3/7/12
to hobo...@googlegroups.com
Well that was easy!  Thanks, Bryan!

Brian

> hobousers+unsubscribe@googlegroups.com.


> For more options, visit this group at
> http://groups.google.com/group/hobousers?hl=en.

> hobousers+unsubscribe@googlegroups.com.

Reply all
Reply to author
Forward
0 new messages