Path to upgrade pe-razor-server?

26 vues
Accéder directement au premier message non lu

Alex Scoble

non lue,
30 avr. 2015, 19:49:2130/04/2015
à puppet...@googlegroups.com
Hi,

Is there a path or procedure for upgrading from the tech preview version of Razor to Razor 1.0?

After upgrading the packages, I'm getting errors like:

```
16:38:13,506 ERROR [org.torquebox.core.runtime] (http-/0.0.0.0:8151-2) Error during execution: require %q(rack)
rackUpScript = File.read(%q(/opt/puppet/share/razor-server/config.ru))
eval(%Q(Rack::Builder.new{
#{rackUpScript}
}.to_app), TOPLEVEL_BINDING, %q(/opt/puppet/share/razor-server/config.ru), 0): org.jruby.exceptions.RaiseException: (TypeError) superclass mismatch for class ExtendedRack
        at RUBY.Sinatra(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra/base.rb:178)      at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra/base.rb:15)     at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra.rb:1)   at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra.rb:1)   at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/app.rb:1)      at org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1536) [jruby.jar:]
        at RUBY.(root)(/opt/puppet/share/razor-server/app.rb:2) at RUBY.(root)(/opt/puppet/share/razor-server/config.ru:1)      at org.jruby.RubyKernel.eval(org/jruby/RubyKernel.java:1123) [jruby.jar:]
        at RUBY.(/opt/puppet/share/razor-server/config.ru:2)
16:38:13,506 ERROR [org.torquebox.web.servlet.RackFilter] (http-/0.0.0.0:8151-2) Error invoking Rack filter: org.jruby.exceptions.RaiseException: (TypeError) superclass mismatch for class ExtendedRack
        at RUBY.Sinatra(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra/base.rb:178)      at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra/base.rb:15)     at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra.rb:1)   at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra.rb:1)   at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/app.rb:1)      at org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1536) [jruby.jar:]
        at RUBY.(root)(/opt/puppet/share/razor-server/app.rb:2) at RUBY.(root)(/opt/puppet/share/razor-server/config.ru:1)      at org.jruby.RubyKernel.eval(org/jruby/RubyKernel.java:1123) [jruby.jar:]
        at RUBY.(/opt/puppet/share/razor-server/config.ru:2)
16:38:13,507 ERROR [org.torquebox.web.servlet.RackFilter] (http-/0.0.0.0:8151-2) Underlying Ruby exception
16:38:13,507 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[default-host].[/].[torquebox.static]] (http-/0.0.0.0:8151-2) JBWEB000236: Servlet.service() for servlet torquebox.static threw exception: org.jruby.exceptions.RaiseException: (TypeError) superclass mismatch for class ExtendedRack
        at RUBY.Sinatra(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra/base.rb:178)      at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra/base.rb:15)     at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra.rb:1)   at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/vendor/bundle/jruby/1.9/gems/sinatra-1.4.4/lib/sinatra.rb:1)   at org.jruby.RubyKernel.require(org/jruby/RubyKernel.java:1084) [jruby.jar:]
        at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:55)     at Kernel.require(/opt/puppet/share/torquebox/jruby/lib/ruby/shared/rubygems/core_ext/kernel_require.rb:53)     at RUBY.(root)(/opt/puppet/share/razor-server/app.rb:1)      at org.jruby.RubyBasicObject.instance_eval(org/jruby/RubyBasicObject.java:1536) [jruby.jar:]
        at RUBY.(root)(/opt/puppet/share/razor-server/app.rb:2) at RUBY.(root)(/opt/puppet/share/razor-server/config.ru:1)      at org.jruby.RubyKernel.eval(org/jruby/RubyKernel.java:1123) [jruby.jar:]
        at RUBY.(/opt/puppet/share/razor-server/config.ru:2)
```

So, not sure that everything got upgraded properly. I can always uninstall and reinstall setting the protect_new_nodes setting to true, but I'd prefer to keep the data that's already on the razor servers intact.

Thanks,

Alex

Scott McClellan

non lue,
30 avr. 2015, 20:08:2730/04/2015
à puppet...@googlegroups.com
Hi Alex,
 
Is there a path or procedure for upgrading from the tech preview version of Razor to Razor 1.0?

The basic approach is to backup the database, install the new razor-server and its dependencies, run the database migration (there should be none in this case), then start up again.
Can you check which version of JRuby you have installed? Razor 1.0.0 uses 1.7.13. These errors seem like some sort of versioning issue, though it's not clear which.

Scott


--
Join us at PuppetConf 2015, October 5-9 in Portland, OR - http://2015.puppetconf.com.  
Register early to save 40%!

Alex Scoble

non lue,
1 mai 2015, 13:50:4901/05/2015
à puppet...@googlegroups.com
Hi Scott,

The version of jruby at /opt/puppet/share/torquebox/jruby/bin/jruby is 1.7.13

# /opt/puppet/share/torquebox/jruby/bin/jruby -v
jruby 1.7.13 (1.9.3p392) 2014-06-24 43f133c on OpenJDK 64-Bit Server VM 1.7.0_79-icedtea-mockbuild_2015_04_16_16_07-b00 [linux-amd64]

--Alex
Répondre à tous
Répondre à l'auteur
Transférer
0 nouveau message