# Not able to start SunStone server after an installation from scratch

**URL:** <https://forum.opennebula.io/t/not-able-to-start-sunstone-server-after-an-installation-from-scratch/1048>\
**Category:** Product Support\
**Created:** [July 29, 2015, 3:11pm UTC](https://forum.opennebula.io/t/not-able-to-start-sunstone-server-after-an-installation-from-scratch/1048 "2015-07-29T15:11:54Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![esfreire](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@esfreire](https://forum.opennebula.io/u/esfreire)\
**Post date:** [July 29, 2015, 3:11pm UTC](https://forum.opennebula.io/t/not-able-to-start-sunstone-server-after-an-installation-from-scratch/1048/1 "2015-07-29T15:11:54Z")

</div>

Hi,

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'
 config.ru:9:in `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'
 config.ru:1:in `new'
 config.ru:1:in `<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 😄

Thanks in advance,  
Esteban

---

<div class="post-metadata">

**Author:** ![kelepirci](https://avatars.discourse-cdn.com/v4/letter/k/c57346/32.png) [@kelepirci](https://forum.opennebula.io/u/kelepirci)\
**Post date:** [July 30, 2015, 8:13am UTC](https://forum.opennebula.io/t/not-able-to-start-sunstone-server-after-an-installation-from-scratch/1048/2 "2015-07-30T08:13:46Z")

</div>

Yes you probably missing following command in installation process:

> /usr/share/one/install\_gems

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

---

<div class="post-metadata">

**Author:** ![esfreire](https://avatars.discourse-cdn.com/v4/letter/e/f4b2a3/32.png) [@esfreire](https://forum.opennebula.io/u/esfreire)\
**Post date:** [July 30, 2015, 11:33am UTC](https://forum.opennebula.io/t/not-able-to-start-sunstone-server-after-an-installation-from-scratch/1048/3 "2015-07-30T11:33:53Z")

</div>

Hi @kelepirci,

Thanks for answering me 😄

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.

Thanks,  
Esteban

---

<div class="post-metadata">

**Author:** ![alfeijoo](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/alfeijoo/32/8586_2.png) [@alfeijoo](https://forum.opennebula.io/u/alfeijoo)\
**Post date:** [August 11, 2015, 11:26am UTC](https://forum.opennebula.io/t/not-able-to-start-sunstone-server-after-an-installation-from-scratch/1048/4 "2015-08-11T11:26:19Z")

</div>

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 🙂

---

<div class="post-metadata">

**Author:** ![jmelis](https://yyz1.discourse-cdn.com/flex031/user_avatar/forum.opennebula.io/jmelis/32/24_2.png) [@jmelis](https://forum.opennebula.io/u/jmelis)\
**Post date:** [August 12, 2015, 8:40am UTC](https://forum.opennebula.io/t/not-able-to-start-sunstone-server-after-an-installation-from-scratch/1048/5 "2015-08-12T08:40:51Z")

</div>

No, they have to be in the same node.
