Sorry the path I provided was wrong. This is the correct one: /usr/lib/one/sunstone/models/OpenNebulaJSON/PoolJSON.rb
On 31 July 2012 14:33, Bendix Harries <br4ve...@web.de> wrote: > You seem to be right the whole sunstone folder doesn't exist in > /var/lib/one. But how am I supposed to see the new webinterface then? Is > there a way to fix this? > Thanks for your help > > Gesendet: Montag, 30. Juli 2012 um 16:11 Uhr > > Von: "Daniel Molina" <dmol...@opennebula.org> > An: "Bendix Harries" <br4ve...@web.de> > Cc: users@lists.opennebula.org > Betreff: Re: Re: [one-users] Sunstone Error > It looks like the code you're running is not updated. Could you please > check the content of the > /var/lib/one/sunstone/model/OpenNebulaJSON/PoolJSON.rb file? > > It should look like this: > > ---------8<------ > ... > require 'OpenNebulaJSON/JSONUtils' > > module OpenNebulaJSON > class HostPoolJSON < OpenNebula::HostPool; include JSONUtils; end > class VirtualMachinePoolJSON < OpenNebula::VirtualMachinePool; > include JSONUtils; end > class VirtualNetworkPoolJSON < OpenNebula::VirtualNetworkPool; > include JSONUtils; end > class ImagePoolJSON < OpenNebula::ImagePool; include JSONUtils; end > class TemplatePoolJSON < OpenNebula::TemplatePool; include JSONUtils; end > class GroupPoolJSON < OpenNebula::GroupPool; include JSONUtils; end > class UserPoolJSON < OpenNebula::UserPool; include JSONUtils; end > class AclPoolJSON < OpenNebula::AclPool; include JSONUtils; end > class ClusterPoolJSON < OpenNebula::ClusterPool; include JSONUtils; end > class DatastorePoolJSON < OpenNebula::DatastorePool; include JSONUtils; end > end > ------>8-------- > > Cheers > > On 30 July 2012 15:11, Bendix Harries <br4ve...@web.de> wrote: >> Hi, >> I stopped sunstone before upgrade and started it afterwards, besides that >> I >> started and stopped it several times now. But it still doesn't work. >> >> Gesendet: Montag, 30. Juli 2012 um 11:40 Uhr >> Von: "Daniel Molina" <dmol...@opennebula.org> >> An: "Bendix Harries" <br4ve...@web.de> >> Cc: Opennebula <users@lists.opennebula.org> >> Betreff: Re: [one-users] Sunstone Error >> Hi, >> >> On 30 July 2012 10:54, Bendix Harries <br4ve...@web.de> wrote: >>> Hi guys, >>> I got some issues with my sunstone-server. After updating from opennebula >>> 3.0 to 3.6, I get an error when accessing sunstone through the >>> webinterface, >>> which is "It appears there was an exception, please check the server's >>> log.". For more detailed information I changed line 28 of >>> /usr/lib/one/sunstone/public/js/opennebula.js: from: error.error = >>> {message: >>> "It appears there was a server exception. Please check server's log."}; >>> to: >>> error.error = {message: resp.responseText }; >>> But I still can't figure out whats wrong there. >> >> Did you restart the sunstone server after upgrading? >> >> Cheers >> >>> The new Error message is : >>> >>> Error >>> >>> NameError: uninitialized constant SunstoneServer::DatastorePoolJSON >>> /usr/lib/one/sunstone/models/SunstoneServer.rb:62:in `get_pool' >>> /usr/lib/one/sunstone/sunstone-server.rb:323:in `GET /:pool' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1151:in `call' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1151:in `compile!' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:724:in `instance_eval' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:724:in `route_eval' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:708:in `route!' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:758:in `process_route' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:755:in `catch' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:755:in `process_route' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:707:in `route!' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:706:in `each' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:706:in `route!' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:843:in `dispatch!' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:644:in `call!' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `instance_eval' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `invoke' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `catch' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:808:in `invoke' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:644:in `call!' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:629:in `call' >>> /usr/lib/ruby/vendor_ruby/rack/commonlogger.rb:20:in `call' >>> /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:195:in `context' >>> /usr/lib/ruby/vendor_ruby/rack/session/abstract/id.rb:190:in `call' >>> /usr/lib/ruby/vendor_ruby/rack/head.rb:9:in `call' >>> /usr/lib/ruby/vendor_ruby/sinatra/showexceptions.rb:21:in `call' >>> /usr/lib/ruby/vendor_ruby/rack/methodoverride.rb:24:in `call' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1272:in `call' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1303:in `synchronize' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1272:in `call' >>> /usr/lib/ruby/vendor_ruby/thin/connection.rb:80:in `pre_process' >>> /usr/lib/ruby/vendor_ruby/thin/connection.rb:78:in `catch' >>> /usr/lib/ruby/vendor_ruby/thin/connection.rb:78:in `pre_process' >>> /usr/lib/ruby/vendor_ruby/thin/connection.rb:53:in `process' >>> /usr/lib/ruby/vendor_ruby/thin/connection.rb:38:in `receive_data' >>> /usr/lib/ruby/vendor_ruby/eventmachine.rb:257:in `run_machine' >>> /usr/lib/ruby/vendor_ruby/eventmachine.rb:257:in `run' >>> /usr/lib/ruby/vendor_ruby/thin/backends/base.rb:61:in `start' >>> /usr/lib/ruby/vendor_ruby/thin/server.rb:159:in `start' >>> /usr/lib/ruby/vendor_ruby/rack/handler/thin.rb:13:in `run' >>> /usr/lib/ruby/vendor_ruby/sinatra/base.rb:1234:in `run!' >>> /usr/lib/ruby/vendor_ruby/sinatra/main.rb:25 >>> /usr/lib/one/sunstone/sunstone-server.rb:414 >>> >>> Best regards >>> >>> >>> _______________________________________________ >>> Users mailing list >>> Users@lists.opennebula.org >>> http://lists.opennebula.org/listinfo.cgi/users-opennebula.org >>> >> >> >> >> -- >> Daniel Molina >> Project Engineer >> OpenNebula - The Open Source Solution for Data Center Virtualization >> www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula >> >> > > > > -- > Daniel Molina > Project Engineer > OpenNebula - The Open Source Solution for Data Center Virtualization > www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula > > -- Daniel Molina Project Engineer OpenNebula - The Open Source Solution for Data Center Virtualization www.OpenNebula.org | dmol...@opennebula.org | @OpenNebula _______________________________________________ Users mailing list Users@lists.opennebula.org http://lists.opennebula.org/listinfo.cgi/users-opennebula.org