SunStone fails to start, new install of OpenNebula from source

After installing OpenNebula for the first time from source we get the following error when starting SunStone WebUI:

/usr/lib/one/sunstone/sunstone-server.rb:112: syntax error, unexpected ‘:’, expecting kEND
memcache_server: memcache_server,
^
/usr/lib/one/sunstone/sunstone-server.rb:113: syntax error, unexpected ‘:’, expecting '='
namespace: $conf[:memcache_namespace],
^
/usr/lib/one/sunstone/sunstone-server.rb:114: syntax error, unexpected ‘:’, expecting '='
cache: Dalli::Client.new
^
/usr/lib/one/sunstone/sunstone-server.rb:115: syntax error, unexpected kELSE, expecting $end

Looking at the file in question we see these lines:

use Rack::Session::Dalli,
  memcache_server: memcache_server,
  namespace: $conf[:memcache_namespace],
  cache: Dalli::Client.new

Commenting out these lines, lets the service start as expected. Is there something specific about this block of code that doesn’t work with the version of Ruby that I have? I have version 1.8.7. Do I require to have 1.9+? Based on the documentation it seems all I need is 1.8.6+

Thanks

This is indeed a bug, you can fix it applying the following patch

https://gist.github.com/dmamolina/6367cf17019fa4ce2b68

Thanks that worked.