The same results from chromium and firefox.
It seems to be an older version of sinatra installed with Opennebula 3.6
on
Ubuntu 12.04:
oneadmin@myto-node:~/images$ dpkg -l |grep sinatra
ii ruby-sinatra 1.2.6-1+build1 Ruby web-development dressed in a DSL
But editing occi-server.rb helps.
Jan
Dňa 13.07.2012 14:41, Hector Sanjuan wrote / napísal(a):
Great! Can you confirm me that you are using Sinatra 1.3.2 as well? I
would like
to keep track of this...
Hector
En Fri, 13 Jul 2012 14:38:18 +0200, Jan Benadik <jan.bena...@atos.net>
escribió:
Hi,
THANKS A LOT!!!
Editing that /usr/lib/one/ruby/cloud/occi/occi-server.rb helped.
Jan
Dňa 13.07.2012 14:17, Hector Sanjuan wrote / napísal(a):
Hi,
I managed to reproduce this once, then I went directly to /ui/login and
everything went fine again :S So far I have been able to bring the issue
back,
which is puzzling me...
The problem is that the public folders (containing css/js files) are not
being
served as such and since the requests are not authenticated sinatra
fails to
serve them.
I wonder if this happens to you from different browsers on different
computers?
If so we could discard that the issue is in a specific client/browser (I
suppose
you removed cookies along with cache as well?).
Secondly I would make sure that occi-server restart is working (i.e.
theres is
not an old server running all the time which hasn't been shutdown for
whatever
reason).
Last, you could go to /usr/lib/one/ruby/cloud/occi/occi-server.rb and
edit line
92 from:
set :public_folder, Proc.new { File.join(root, "ui/public") }
to
set :public, Proc.new { File.join(root, "ui/public") }
and restart occi-server.
Let me know if any of these tips can fix it, otherwise we can keep
looking.
Thanks for your patience.
Hector
En Fri, 13 Jul 2012 12:51:39 +0200, Jan Benadik <jan.bena...@atos.net>
escribió:
Gem update says nothing to update ...
occi-server.log:
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/ui?username=test&password=abcdef
HTTP/1.1" 200 1810 0.0011
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/css/login.css
HTTP/1.1" 401 - 0.0685
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/vendor/jQueryUI/jquery-ui-1.8.16.custom.css
HTTP/1.1" 401 - 0.0537
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/vendor/jQuery/jquery-1.7.2.min.js
HTTP/1.1" 401 - 0.0057
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/vendor/crypto-js/2.3.0-crypto-sha1.js
HTTP/1.1" 401 - 0.0057
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/js/locale.js
HTTP/1.1" 401 - 0.0061
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/js/occi.js
HTTP/1.1" 401 - 0.0079
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/customize/custom.js
HTTP/1.1" 401 - 0.0058
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/js/login.js
HTTP/1.1" 401 - 0.0060
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/images/ajax-loader.gif
HTTP/1.1" 401 - 0.0057
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/vendor/crypto-js/2.3.0-crypto-sha1.js
HTTP/1.1" 401 - 0.0056
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/js/locale.js
HTTP/1.1" 401 - 0.0053
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/js/occi.js
HTTP/1.1" 401 - 0.0058
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/customize/custom.js
HTTP/1.1" 401 - 0.0065
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/js/login.js
HTTP/1.1" 401 - 0.0075
Fri Jul 13 15:17:19 2012 [E]: User not authorized
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 15:17:19] "GET
/images/ajax-loader.gif
HTTP/1.1" 401 - 0.0066
occi-server.error:
empty
Dňa 13.07.2012 12:11, Hector Sanjuan wrote / napísal(a):
Hello,
sorry I have asked you for sunstone.log/error where it should have been
occi-server.log/error.
Still, thinking of it, it might be a problem with an old version of
sinatra. Can
you do a 'gem update', relaunch occi-server and retry?
Hector
En Fri, 13 Jul 2012 11:18:45 +0200, Jan Benadik <jan.bena...@atos.net>
escribió:
sunstone.log:
Fri Jul 13 13:44:04 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:04] "GET
/vnet?timeout=true
HTTP/1.1" 200 2295 0.0384
Fri Jul 13 13:44:08 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:08] "GET
/user?timeout=true
HTTP/1.1" 200 1703 0.0069
Fri Jul 13 13:44:10 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:10] "GET
/group?timeout=true
HTTP/1.1" 200 1001 0.0061
Fri Jul 13 13:44:14 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:14] "GET
/cluster?timeout=true
HTTP/1.1" 200 27 0.0054
Fri Jul 13 13:44:14 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:14] "GET
/host?timeout=true
HTTP/1.1" 200 2665 0.0076
Fri Jul 13 13:44:29 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:29] "GET
/acl?timeout=true
HTTP/1.1" 200 377 0.0075
Fri Jul 13 13:44:30 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:30] "GET
/vmtemplate?timeout=true
HTTP/1.1" 200 8612 0.0138
Fri Jul 13 13:44:31 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:31] "GET
/image?timeout=true
HTTP/1.1" 200 10404 0.0150
Fri Jul 13 13:44:36 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:36] "GET
/datastore?timeout=true
HTTP/1.1" 200 2612 0.0077
Fri Jul 13 13:44:55 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:44:55] "GET
/vm?timeout=true
HTTP/1.1" 200 3113 0.0086
Fri Jul 13 13:45:18 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:45:18] "GET
/user?timeout=true
HTTP/1.1" 200 1703 0.0069
Fri Jul 13 13:45:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:45:19] "GET
/group?timeout=true
HTTP/1.1" 200 1001 0.0062
Fri Jul 13 13:45:23 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:45:23] "GET
/vnet?timeout=true
HTTP/1.1" 200 2295 0.0095
Fri Jul 13 13:45:33 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:45:33] "GET
/cluster?timeout=true
HTTP/1.1" 200 27 0.0053
Fri Jul 13 13:45:34 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:45:34] "GET
/acl?timeout=true
HTTP/1.1" 200 377 0.0054
Fri Jul 13 13:45:40 2012 [I]: 10.0.3.51 - - [13/Jul/2012 13:45:40] "GET
/host?timeout=true
HTTP/1.1" 200 2665 0.0601
sunstone.error:
nothing
in browser:
nothing
Dňa 13.07.2012 11:00, Hector Sanjuan wrote / napísal(a):
Hello,
any messages in sunstone.log, sunstone.error? Perhaps anything showing
up in
your browser console as javascripts errors?
Hector
En Fri, 13 Jul 2012 10:26:44 +0200, Jan Benadik <jan.bena...@atos.net>
escribió:
Yes - I did it. Doesn't help ...
Jan
Dňa 12.07.2012 14:14, Hector Sanjuan wrote / napísal(a):
Hi,
have you tried deleting browsers cache?
Hector
En Thu, 12 Jul 2012 14:09:35 +0200, Jan Benadik <jan.bena...@atos.net>
escribió:
Hi all,
after the upgrade to OpenNebula ver. 3.6 my OCCI user interface looks
like
picture attached - logging doesn't work, no error messages in oned.log
or syslog.
What I did wrong?
Jan