Sunstone in 3.0b1 doesn't start
|Assignee:||Javi Fontan||% Done:|
|Target version:||Release 3.4|
|Affected Versions:||OpenNebula 3.0|
Starting sunstone 3.0b1 in ubuntu 11.04 (log file):
(__DELEGATE__):2:in `settings': stack level too deep (SystemStackError) from (__DELEGATE__):2:in `send' from (__DELEGATE__):2:in `settings' from (__DELEGATE__):2:in `send' from (__DELEGATE__):2:in `settings' from (__DELEGATE__):2:in `send' from (__DELEGATE__):2:in `settings' from (__DELEGATE__):2:in `send' from (__DELEGATE__):2:in `settings' ... 3765 levels... from /usr/lib/ruby/1.8/rack/builder.rb:46:in `instance_eval' from /usr/lib/ruby/1.8/rack/builder.rb:46:in `initialize' from /usr/lib/one/sunstone/config.ru:1:in `new' from /usr/lib/one/sunstone/config.ru:1
#2 Updated by Grzegorz Kocur over 9 years ago
As I mentioned, it's Ubuntu 11.04 Server. All gems are installed from ubuntu repo.
Opennebula is installed from deb.
libdaemons-ruby1.8 1.0.10-2 libeventmachine-ruby1.8 0.12.10-1 libjson-ruby 1.1.9-1 libmysql-ruby 2.8.2-1 libmysql-ruby1.8 2.8.2-1 librack-ruby1.8 1.1.0-4ubuntu1 libruby1.8 188.8.131.522-2 libsequel-ruby 3.13.0-1 libsinatra-ruby 1.0.really1.0-1 libsqlite3-ruby 1.3.1-2 rubygems 1.3.7-3 thin1.8 1.2.4-1.1
#4 Updated by Grzegorz Kocur over 9 years ago
After uninstalling systems gems and installing it via 'gem install' Sunsone starts.
Additional steps to do under Ubuntu:
1. Link 'rackup' to somewhere in PATH (ex. /usr/local/bin)
2. export RUBYLIB=/var/lib/gems/1.8/gems/rack-1.3.2/lib/ (rackup does't run without it).
IMO best solution in Ubuntu systems is using the repository, my way to start sunstone it somewhat tricky.
#6 Updated by Florian Heigl over 9 years ago
I ran into the same issues.
It's not really understandable why the downloadable packages (3.0 for Ubuntu 10.10) are not working with the ruby packages that are coming with Ubuntu.
Using gem for installing is totally awesome if you're a dev and this is your dev box, but for a server automatic updates might be more interesting. :>
Please, if you want people to use opennebula, then ensure that running
apt-get install gdebi &&
on a ubuntu 10.10 box will REALLY handle all dependencies and not leave killer features like Sunstone broken.
#8 Updated by Anonymous over 9 years ago
It would seem based on multiple questions related to this error on the Users listserv that this issue has not been resolved in a preventative manner. From my understanding, there is a dependency issue with regard to several Ruby libraries which Sunstone is dependent upon. All errors seem to have been encountered when installing those dependencies from the official repositories. However, installing using 'gem' seems to work.
Therefore, could this ticket be reinstated unless a definitive list of package dependencies are given such as the Ruby libraries required, their version numbers, and what sets of library versions work with one another to provide a working Sunstone server?
#12 Updated by Lars Kellogg-Stedman about 9 years ago
We've hitting this bug on CentOS 6. I see this bug has been marked "duplicate", but there doesn't appear to be a link to the bug of which this is a duplicate. Can anyone provide details on what causes this error? Is it a particular gem that needs to be more recent than what's available in the distribution repositories? Thanks!
#17 Updated by Javi Fontan about 9 years ago
Unfortunately there are some gems not packaged and the versions that come prepackaged are too old to be compatible. OpenNebula is being packaged for Debian and other distributions. Part of the packaging is also the dependencies so there will be packages for all OpenNebula dependencies, gems included.