<html>
<head>
<meta content="text/html; charset=ISO-8859-2"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
The same results from chromium and firefox.<br>
<br>
It seems to be an older version of sinatra installed with Opennebula
3.6 on Ubuntu 12.04:<br>
<small>oneadmin@myto-node:~/images$ dpkg -l |grep sinatra<br>
ii ruby-sinatra
1.2.6-1+build1 Ruby web-development
dressed in a DSL</small><br>
<br>
But editing occi-server.rb helps.<br>
<br>
Jan<br>
<br>
<div class="moz-cite-prefix">Dňa 13.07.2012 14:41, Hector Sanjuan
wrote / napísal(a):<br>
</div>
<blockquote
cite="mid:op.whdxiqm2lpo1op@hecturchi.intranet.convivencial.org"
type="cite">Great! Can you confirm me that you are using Sinatra
1.3.2 as well? I would like to keep track of this...
<br>
<br>
Hector
<br>
<br>
En Fri, 13 Jul 2012 14:38:18 +0200, Jan Benadik
<a class="moz-txt-link-rfc2396E" href="mailto:jan.benadik@atos.net"><jan.benadik@atos.net></a> escribió:
<br>
<br>
<blockquote type="cite">Hi,
<br>
<br>
THANKS A LOT!!!
<br>
<br>
Editing that /usr/lib/one/ruby/cloud/occi/occi-server.rb helped.
<br>
<br>
Jan
<br>
<br>
Dňa 13.07.2012 14:17, Hector Sanjuan wrote / napísal(a):
<br>
<br>
Hi,
<br>
<br>
I managed to reproduce this once, then I went directly to
/ui/login and
<br>
everything went fine again :S So far I have been able to bring
the issue back,
<br>
which is puzzling me...
<br>
<br>
The problem is that the public folders (containing css/js files)
are not being
<br>
served as such and since the requests are not authenticated
sinatra fails to
<br>
serve them.
<br>
<br>
I wonder if this happens to you from different browsers on
different computers?
<br>
If so we could discard that the issue is in a specific
client/browser (I suppose
<br>
you removed cookies along with cache as well?).
<br>
<br>
Secondly I would make sure that occi-server restart is working
(i.e. theres is
<br>
not an old server running all the time which hasn't been
shutdown for whatever
<br>
reason).
<br>
<br>
Last, you could go to
/usr/lib/one/ruby/cloud/occi/occi-server.rb and edit line
<br>
92 from:
<br>
<br>
set :public_folder, Proc.new { File.join(root, "ui/public") }
<br>
<br>
to
<br>
<br>
set :public, Proc.new { File.join(root, "ui/public") }
<br>
<br>
and restart occi-server.
<br>
<br>
Let me know if any of these tips can fix it, otherwise we can
keep looking.
<br>
Thanks for your patience.
<br>
<br>
Hector
<br>
<br>
En Fri, 13 Jul 2012 12:51:39 +0200, Jan Benadik
<a class="moz-txt-link-rfc2396E" href="mailto:jan.benadik@atos.net"><jan.benadik@atos.net></a> escribió:
<br>
<br>
Gem update says nothing to update ...
<br>
<br>
occi-server.log:
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /ui?username=test&password=abcdef
<br>
HTTP/1.1" 200 1810 0.0011
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /css/login.css
<br>
HTTP/1.1" 401 - 0.0685
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
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
<br>
HTTP/1.1" 401 - 0.0537
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
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
<br>
HTTP/1.1" 401 - 0.0057
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
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
<br>
HTTP/1.1" 401 - 0.0057
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /js/locale.js
<br>
HTTP/1.1" 401 - 0.0061
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /js/occi.js
<br>
HTTP/1.1" 401 - 0.0079
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /customize/custom.js
<br>
HTTP/1.1" 401 - 0.0058
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /js/login.js
<br>
HTTP/1.1" 401 - 0.0060
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /images/ajax-loader.gif
<br>
HTTP/1.1" 401 - 0.0057
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
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
<br>
HTTP/1.1" 401 - 0.0056
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /js/locale.js
<br>
HTTP/1.1" 401 - 0.0053
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /js/occi.js
<br>
HTTP/1.1" 401 - 0.0058
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /customize/custom.js
<br>
HTTP/1.1" 401 - 0.0065
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /js/login.js
<br>
HTTP/1.1" 401 - 0.0075
<br>
Fri Jul 13 15:17:19 2012 [E]: User not authorized
<br>
Fri Jul 13 15:17:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
15:17:19] "GET /images/ajax-loader.gif
<br>
HTTP/1.1" 401 - 0.0066
<br>
<br>
occi-server.error:
<br>
empty
<br>
<br>
Dňa 13.07.2012 12:11, Hector Sanjuan wrote / napísal(a):
<br>
<br>
<br>
Hello,
<br>
<br>
sorry I have asked you for sunstone.log/error where it should
have been occi-server.log/error.
<br>
<br>
Still, thinking of it, it might be a problem with an old version
of sinatra. Can
<br>
you do a 'gem update', relaunch occi-server and retry?
<br>
<br>
Hector
<br>
<br>
En Fri, 13 Jul 2012 11:18:45 +0200, Jan Benadik
<a class="moz-txt-link-rfc2396E" href="mailto:jan.benadik@atos.net"><jan.benadik@atos.net></a> escribió:
<br>
<br>
sunstone.log:
<br>
Fri Jul 13 13:44:04 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:04] "GET /vnet?timeout=true
<br>
HTTP/1.1" 200 2295 0.0384
<br>
Fri Jul 13 13:44:08 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:08] "GET /user?timeout=true
<br>
HTTP/1.1" 200 1703 0.0069
<br>
Fri Jul 13 13:44:10 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:10] "GET /group?timeout=true
<br>
HTTP/1.1" 200 1001 0.0061
<br>
Fri Jul 13 13:44:14 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:14] "GET /cluster?timeout=true
<br>
HTTP/1.1" 200 27 0.0054
<br>
Fri Jul 13 13:44:14 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:14] "GET /host?timeout=true
<br>
HTTP/1.1" 200 2665 0.0076
<br>
Fri Jul 13 13:44:29 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:29] "GET /acl?timeout=true
<br>
HTTP/1.1" 200 377 0.0075
<br>
Fri Jul 13 13:44:30 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:30] "GET /vmtemplate?timeout=true
<br>
HTTP/1.1" 200 8612 0.0138
<br>
Fri Jul 13 13:44:31 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:31] "GET /image?timeout=true
<br>
HTTP/1.1" 200 10404 0.0150
<br>
Fri Jul 13 13:44:36 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:36] "GET /datastore?timeout=true
<br>
HTTP/1.1" 200 2612 0.0077
<br>
Fri Jul 13 13:44:55 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:44:55] "GET /vm?timeout=true
<br>
HTTP/1.1" 200 3113 0.0086
<br>
Fri Jul 13 13:45:18 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:45:18] "GET /user?timeout=true
<br>
HTTP/1.1" 200 1703 0.0069
<br>
Fri Jul 13 13:45:19 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:45:19] "GET /group?timeout=true
<br>
HTTP/1.1" 200 1001 0.0062
<br>
Fri Jul 13 13:45:23 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:45:23] "GET /vnet?timeout=true
<br>
HTTP/1.1" 200 2295 0.0095
<br>
Fri Jul 13 13:45:33 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:45:33] "GET /cluster?timeout=true
<br>
HTTP/1.1" 200 27 0.0053
<br>
Fri Jul 13 13:45:34 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:45:34] "GET /acl?timeout=true
<br>
HTTP/1.1" 200 377 0.0054
<br>
Fri Jul 13 13:45:40 2012 [I]: 10.0.3.51 - - [13/Jul/2012
13:45:40] "GET /host?timeout=true
<br>
HTTP/1.1" 200 2665 0.0601
<br>
<br>
sunstone.error:
<br>
nothing
<br>
<br>
in browser:
<br>
nothing
<br>
<br>
Dňa 13.07.2012 11:00, Hector Sanjuan wrote / napísal(a):
<br>
<br>
<br>
Hello,
<br>
<br>
any messages in sunstone.log, sunstone.error? Perhaps anything
showing up in
<br>
your browser console as javascripts errors?
<br>
<br>
Hector
<br>
<br>
En Fri, 13 Jul 2012 10:26:44 +0200, Jan Benadik
<a class="moz-txt-link-rfc2396E" href="mailto:jan.benadik@atos.net"><jan.benadik@atos.net></a> escribió:
<br>
<br>
Yes - I did it. Doesn't help ...
<br>
<br>
Jan
<br>
<br>
Dňa 12.07.2012 14:14, Hector Sanjuan wrote / napísal(a):
<br>
<br>
Hi,
<br>
<br>
have you tried deleting browsers cache?
<br>
<br>
Hector
<br>
<br>
En Thu, 12 Jul 2012 14:09:35 +0200, Jan Benadik
<a class="moz-txt-link-rfc2396E" href="mailto:jan.benadik@atos.net"><jan.benadik@atos.net></a>
<br>
escribió:
<br>
<br>
Hi all,
<br>
<br>
after the upgrade to OpenNebula ver. 3.6 my OCCI user interface
looks like
<br>
picture attached - logging doesn't work, no error messages in
oned.log or syslog.
<br>
What I did wrong?
<br>
<br>
Jan
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
<br>
</blockquote>
<br>
<br>
</blockquote>
<br>
<div class="moz-signature">-- <br>
<meta http-equiv="content-type" content="text/html;
charset=ISO-8859-2">
<title></title>
<font size="3" color="black" face="Verdana"> <img alt=""
src="cid:part1.06040808.09010006@atos.net" width="252"
height="15"><br>
<b>Ján Beňadik</b><br>
<font size="2" face="Verdana"> Managed Services - Solution
Design Architect<br>
+421 46 5151 332<br>
+421 903 691 634<br>
<a href="mailto://jan.benadik@atos.net">jan.benadik@atos.net</a><br>
Vinohradnícka 6, 971 01 Prievidza<br>
<a href="http://www.sk.atos.net">www.sk.atos.net</a><br>
__________________________________<br>
<br>
<img alt="" src="cid:part4.09040400.01010209@atos.net"
width="261" height="58"><br>
</font> </font></div>
<br>
<br>
</body>
</html>