Not able to start SunStone server after an installation from scratch


We are installing an OpenNebula test environment and I am getting the following error when trying to start the Sunstone server:

[ 2015-07-29 16:25:39.8620 5556/7fd738602700 App/Implementation.cpp:287 ]: Could not spawn process for   
application /usr/lib/one/sunstone: An error occured while starting up the preloader.
 Error ID: 651c1b3c
 Error details saved to: /tmp/passenger-error-AKihKL.html
 Message from application: cannot load such file -- routes/appmarket (LoadError)
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require'
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require'
 /usr/lib/one/sunstone/sunstone-server.rb:345:in `block in <top (required)>'
 /usr/lib/one/sunstone/sunstone-server.rb:344:in `each'
 /usr/lib/one/sunstone/sunstone-server.rb:344:in `<top (required)>'
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require'
 /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:53:in `require' `block in <main>'
 /usr/local/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `instance_eval'
 /usr/local/share/gems/gems/rack-1.6.4/lib/rack/builder.rb:55:in `initialize' `new' `<main>'
 /opt/passenger-5.0.4/helper-scripts/rack-preloader.rb:111:in `eval'
 /opt/passenger-5.0.4/helper-scripts/rack-preloader.rb:111:in `preload_app'
 /opt/passenger-5.0.4/helper-scripts/rack-preloader.rb:157:in `<module:App>'
 /opt/passenger-5.0.4/helper-scripts/rack-preloader.rb:29:in `<module:PhusionPassenger>'
 /opt/passenger-5.0.4/helper-scripts/rack-preloader.rb:28:in `<main>'

Probably, I am missing to install some package/gem or I am just missing something in the configuration. In any case, if you see a clear solution to solve this error, please let me know :smile:

Thanks in advance,

Yes you probably missing following command in installation process:


Above commend installs all necessary ruby modules for OpenNebula. If you have not run the install_gems script, please do.

Hi @kelepirci,

Thanks for answering me :smile:

We have decided to separate the OpenNebula, Sunstone and APP-Market in three different nodes, so I was just installing the appmarket RPMs on the APP-Market node. But it is also necessary to install the appmarket RPMs on the SunStone node in case of having OpenNebula, SunStone and APP-Market installed in different machines, or otherwise, it will not be possible to start sunstone server.


1 Like

hi and sorry for reupload the topic.

there are any solution to have Sunstone and Appmarket in differents nodes? because at now its only possible as @esfreire say… install appmarket in sunstone server and again install appmarket in other node.

SeeU :slight_smile:

No, they have to be in the same node.