Getting an error after upgrading to Medusa from 5.2


(sanyo) #1

After login page

application error
NoMethodError at /
undefined method `get_all_labels’ for #SunstoneViews:0x00000002679268

file: index.erb
location: block in singleton class
line: 26

BACKTRACE

(expand)

JUMP TO: GET POST COOKIES ENV

/usr/lib/one/sunstone/views/index.erb in block in singleton class
    $views_config.get_all_labels(session[:user_gname]).join('","')
/usr/lib/ruby/vendor_ruby/tilt/template.rb in call
    method.bind(scope).call(locals, &block)
/usr/lib/ruby/vendor_ruby/tilt/template.rb in evaluate
    method.bind(scope).call(locals, &block)
/usr/lib/ruby/vendor_ruby/tilt/template.rb in render
    evaluate scope, locals || {}, &block
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in render
    output = template.render(scope, locals, &block)
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in erb
    render(:erb, template, options, locals, &block)
/usr/lib/one/sunstone/sunstone-server.rb in block in <main>
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in call
    proc { |a,p| unbound_method.bind(a).call }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block in compile!
    proc { |a,p| unbound_method.bind(a).call }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in []
    route_eval { block[*args] }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block (3 levels) in route!
    route_eval { block[*args] }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in route_eval
    throw :halt, yield
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block (2 levels) in route!
    route_eval { block[*args] }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block in process_route
    block ? block[self, values] : yield(self, values)
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in catch
    catch(:pass) do
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in process_route
    catch(:pass) do
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block in route!
    returned_pass_block = process_route(pattern, keys, conditions) do |*args|
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in each
    routes.each do |pattern, keys, conditions, block|
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in route!
    routes.each do |pattern, keys, conditions, block|
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block in dispatch!
    route!
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block in invoke
    res = catch(:halt) { yield }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in catch
    res = catch(:halt) { yield }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in invoke
    res = catch(:halt) { yield }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in dispatch!
    invoke do
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block in call!
    invoke { dispatch! }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block in invoke
    res = catch(:halt) { yield }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in catch
    res = catch(:halt) { yield }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in invoke
    res = catch(:halt) { yield }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in call!
    invoke { dispatch! }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in call
    dup.call!(env)
/usr/lib/ruby/vendor_ruby/rack/commonlogger.rb in call
    status, header, body = @app.call(env)
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in call
    call_without_check(env)
/usr/lib/ruby/vendor_ruby/rack/deflater.rb in call
    status, headers, body = @app.call(env)
/usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb in context
    status, headers, body = app.call(env)
/usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb in call
    context(env)
/usr/lib/ruby/vendor_ruby/rack/protection/xss_header.rb in call
    status, headers, body = @app.call(env)
/usr/lib/ruby/vendor_ruby/rack/protection/path_traversal.rb in call
    app.call env
/usr/lib/ruby/vendor_ruby/rack/protection/json_csrf.rb in call
    status, headers, body = app.call(env)
/usr/lib/ruby/vendor_ruby/rack/protection/base.rb in call
    result or app.call(env)
/usr/lib/ruby/vendor_ruby/rack/protection/base.rb in call
    result or app.call(env)
/usr/lib/ruby/vendor_ruby/rack/protection/frame_options.rb in call
    status, headers, body = @app.call(env)
/usr/lib/ruby/vendor_ruby/rack/nulllogger.rb in call
    @app.call(env)
/usr/lib/ruby/vendor_ruby/rack/head.rb in call
    status, headers, body = @app.call(env)
/usr/lib/ruby/vendor_ruby/rack/methodoverride.rb in call
    @app.call(env)
/usr/lib/ruby/vendor_ruby/sinatra/show_exceptions.rb in call
    @app.call(env)
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in call
    result, callback = app.call(env), env['async.callback']
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in call
    @stack.call(env)
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in block in call
    synchronize { prototype.call(env) }
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in synchronize
    yield
/usr/lib/ruby/vendor_ruby/sinatra/base.rb in call
    synchronize { prototype.call(env) }
/usr/lib/ruby/vendor_ruby/thin/connection.rb in block in pre_process
    response = @app.call(@request.env)
/usr/lib/ruby/vendor_ruby/thin/connection.rb in catch
    catch(:async) do
/usr/lib/ruby/vendor_ruby/thin/connection.rb in pre_process
    catch(:async) do
/usr/lib/ruby/vendor_ruby/eventmachine.rb in call
    result = op.call
/usr/lib/ruby/vendor_ruby/eventmachine.rb in block in spawn_threadpool
    result = op.call

GET

No GET data.
POST

No POST data.


(Juan Jose Montiel Cano) #2

Hello!

Can you try to enter with a incognito window?

Thanks!


(sanyo) #3

Here is the solltion:
http://aulix.com/opennebula-debian