# SunStone fails to start, new install of OpenNebula from source

**URL:** <https://forum.opennebula.io/t/sunstone-fails-to-start-new-install-of-opennebula-from-source/991>\
**Category:** Product Support\
**Created:** [July 10, 2015, 8:03pm UTC](https://forum.opennebula.io/t/sunstone-fails-to-start-new-install-of-opennebula-from-source/991 "2015-07-10T20:03:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jamdev12](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jamdev12](https://forum.opennebula.io/u/jamdev12)\
**Post date:** [July 10, 2015, 8:03pm UTC](https://forum.opennebula.io/t/sunstone-fails-to-start-new-install-of-opennebula-from-source/991/1 "2015-07-10T20:03:42Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![dmolina](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/dmolina/32/22_2.png) [@dmolina](https://forum.opennebula.io/u/dmolina)\
**Post date:** [July 13, 2015, 9:01am UTC](https://forum.opennebula.io/t/sunstone-fails-to-start-new-install-of-opennebula-from-source/991/2 "2015-07-13T09:01:41Z")

</div>

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

[https://gist.github.com/dmamolina/6367cf17019fa4ce2b68](https://gist.github.com/dmamolina/6367cf17019fa4ce2b68)

---

<div class="post-metadata">

**Author:** ![jamdev12](https://avatars.discourse-cdn.com/v4/letter/j/0ea827/32.png) [@jamdev12](https://forum.opennebula.io/u/jamdev12)\
**Post date:** [July 20, 2015, 1:47am UTC](https://forum.opennebula.io/t/sunstone-fails-to-start-new-install-of-opennebula-from-source/991/3 "2015-07-20T01:47:05Z")

</div>

Thanks that worked.
