Updated from 5.0 to 5.0.1 and sunstone doesnot works

Hi!

I’ve updated from ONE 5.0 to ONE 5.0.1, but when I restart the Sunstone, I get the 500 internal error.

I’ve watching the logs, and in /var/log/one/ sched.log I can see:

TIMEOUT=60

Tue Jun 28 11:41:44 2016 [Z0][SCHED][I]: XML-RPC client using 1073741824 bytes for response buffer.

Tue Jun 28 11:41:44 2016 [Z0][SCHED][E]: Cannot contact oned, will retry… Error: HTTP POST to URL ‘http://localhost:2633/RPC2’ failed. libcurl failed even to execute the HTTP transaction, explaining: Failed connect to localhost:2633; Connection refused
Tue Jun 28 11:41:46 2016 [Z0][SCHED][E]: Cannot contact oned, will retry… Error: HTTP POST to URL ‘http://localhost:2633/RPC2’ failed. libcurl failed even to execute the HTTP transaction, explaining: Failed connect to localhost:2633; Connection refused
Tue Jun 28 11:41:48 2016 [Z0][SCHED][I]: oned successfully contacted.
Tue Jun 28 11:41:48 2016 [Z0][SCHED][I]: Configuring scheduler for Zone ID: 0
Tue Jun 28 11:41:48 2016 [Z0][SCHED][I]: Starting scheduler loop…
Tue Jun 28 11:41:48 2016 [Z0][SCHED][I]: Scheduler loop started.

All my configuration is for 2633 port, and I can see with the lsof that the port is listening:

COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
oned 1984 oneadmin 28u IPv4 18925 0t0 TCP *:2633 (LISTEN)

Can anybody help me?

Thanks.

I can see this in /var/log/messages:

Jun 28 12:19:40 cumulo ruby: NoMethodError - undefined method cloud_view_instance_types' for #<Sinatra::Application:0x0000000206cbb8>: Jun 28 12:19:40 cumulo ruby: /usr/lib/one/sunstone/views/index.erb:108:inblock in singleton class’
Jun 28 12:19:40 cumulo ruby: /usr/lib/one/sunstone/views/index.erb:-8:in instance_eval' Jun 28 12:19:40 cumulo ruby: /usr/lib/one/sunstone/views/index.erb:-8:insingleton class’
Jun 28 12:19:40 cumulo ruby: /usr/lib/one/sunstone/views/index.erb:-10:in __tilt_6272620' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/tilt-1.4.1/lib/tilt/template.rb:170:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/tilt-1.4.1/lib/tilt/template.rb:170:in evaluate' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/tilt-1.4.1/lib/tilt/template.rb:103:inrender’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:814:in render' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:665:inerb’
Jun 28 12:19:40 cumulo ruby: /usr/lib/one/sunstone/sunstone-server.rb:471:in block in <main>' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1603:in block in compile!' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in[]'
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in block (3 levels) in route!' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:985:inroute_eval’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:966:in block (2 levels) in route!' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1006:inblock in process_route’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:in catch' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1004:inprocess_route’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:964:in block in route!' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:ineach’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:963:in route!' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1076:inblock in dispatch!'
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in block in invoke' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:incatch’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in invoke' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1073:indispatch!‘
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in block in call!' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:inblock in invoke’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:in catch' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1058:ininvoke’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:898:in call!' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:886:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-1.6.0/lib/rack/commonlogger.rb:33:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:217:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-1.6.0/lib/rack/deflater.rb:35:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:225:incontext’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-1.6.0/lib/rack/session/abstract/id.rb:220:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/xss_header.rb:18:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/path_traversal.rb:16:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/json_csrf.rb:18:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/base.rb:49:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-protection-1.5.3/lib/rack/protection/frame_options.rb:31:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-1.6.0/lib/rack/nulllogger.rb:9:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-1.6.0/lib/rack/head.rb:13:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/rack-1.6.0/lib/rack/methodoverride.rb:22:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/show_exceptions.rb:21:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:180:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:2014:in call' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:inblock in call’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1788:in synchronize' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/sinatra-1.4.5/lib/sinatra/base.rb:1478:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/thin-1.6.3/lib/thin/connection.rb:86:in block in pre_process' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/thin-1.6.3/lib/thin/connection.rb:84:incatch’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/thin-1.6.3/lib/thin/connection.rb:84:in pre_process' Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/eventmachine-1.0.7/lib/eventmachine.rb:1054:incall’
Jun 28 12:19:40 cumulo ruby: /usr/local/share/gems/gems/eventmachine-1.0.7/lib/eventmachine.rb:1054:in `block in spawn_threadpool’

Hi,

Could you double check the installed version is in fact 5.0.1?
The index.erb file does not contain any cloud_view_instance_types call… but it did in 4.12.1

I’ve updated from 4.12.1 to 5.0, and it worked.

Now, I upgraded from 5.0 to 5.0.1 and it doesnot work.

I’m sure using the 5.0.1, show:

oned -v

Copyright 2002-2016, OpenNebula Project, OpenNebula Systems

OpenNebula 5.0.1 is distributed and licensed for use under the terms of the
Apache License, Version 2.0 (http://www.apache.org/licenses/LICENSE-2.0).

And:

opennebula-server-5.0.1-1.x86_64
opennebula-ruby-5.0.1-1.x86_64
opennebula-5.0.1-1.x86_64
opennebula-sunstone-5.0.1-1.x86_64
opennebula-common-5.0.1-1.x86_64
opennebula-flow-5.0.1-1.x86_64

Can you share the contents of /usr/lib/one/sunstone/views/index.erb?

Also, what distribution and version are you using?

Solved.

You yourself gave me the answer: the index.erb file.

It is a file maintained since version 4.12 , and now I have restored the original from the RPM version 5.0.1 and it works .

Thank you very much!!!

So does it mean when upgrade from 4.12 to 5.0, the index.erb file not replaced with new one? Perhaps you can provide the details such as distro name and version so that the developers can check their packaging.