Re: [one-users] OCCI user interface - SOLVED

2012-07-13 Thread Jan Benadik

  
  
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=testpassword=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 

Re: [one-users] OCCI user interface - SOLVED

2012-07-13 Thread Hector Sanjuan
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=testpassword=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  

Re: [one-users] OCCI user interface - SOLVED

2012-07-13 Thread Jan Benadik

  
  
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=testpassword=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

Re: [one-users] OCCI user interface - SOLVED

2012-07-13 Thread Hector Sanjuan
ah.. perhaps uninstalling the  package and [re]installing latest version  
with 'gem' helps then?


Hector

En Fri, 13 Jul 2012 14:50:37 +0200, Jan Benadik jan.bena...@atos.net  
escribió:



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=testpassword=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.



Re: [one-users] OCCI user interface - SOLVED

2012-07-13 Thread Jan Benadik

  
  
Hi,

I reinstalled sinatra to 1.3.2 
- back /usr/lib/one/ruby/cloud/occi/occi-server.rb, line 92 to
previous version
set :public_folder, Proc.new { File.join(root, "ui/public") }

- restarted occi-server

  Result - server doesn't work ...

- with sinatra 1.3.2
- edit /usr/lib/one/ruby/cloud/occi/occi-server.rb, line 92 to new
version
set :public, Proc.new { File.join(root, "ui/public") }

- restart occi-server

Result - occi-server works

Jan


Dňa 13.07.2012 14:53, Hector Sanjuan
  wrote / napísal(a):

ah.. perhaps uninstalling the  package and
  [re]installing latest version with 'gem' helps then?
  
  
  Hector
  
  
  En Fri, 13 Jul 2012 14:50:37 +0200, Jan Benadik
  jan.bena...@atos.net escribió:
  
  
  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=testpassword=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