Bug #749
Sunstone in 3.0b1 doesn't start
Status: | Closed | Start date: | 07/22/2011 | |
---|---|---|---|---|
Priority: | Normal | Due date: | ||
Assignee: | Javi Fontan | % Done: | 0% | |
Category: | Sunstone | |||
Target version: | Release 3.4 | |||
Resolution: | duplicate | Pull request: | ||
Affected Versions: | OpenNebula 3.0 |
Description
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
Related issues
History
#1 Updated by Hector Sanjuan almost 10 years ago
- Category set to Sunstone
- Assignee set to Hector Sanjuan
Hello,
can you give some details about the distro, the install mode, the gem versions you are using?
#2 Updated by Grzegorz Kocur almost 10 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 1.8.7.302-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
#3 Updated by Hector Sanjuan almost 10 years ago
Hi,
I believe there might be some incompatibilities among the gems you are using. Can you try updating them to the latest version (maybe uninstalling and then via 'gem install')?
#4 Updated by Grzegorz Kocur almost 10 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.
#5 Updated by Hector Sanjuan almost 10 years ago
- Status changed from New to Closed
- Resolution set to fixed
Ubuntu is rather tricky when it comes to handling gems. Will keep your suggestion in mind. Thanks for your interest.
#6 Updated by Florian Heigl over 9 years ago
Hi,
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 &&
gdebi opennebula_3.0.0-1_amd64.deb
on a ubuntu 10.10 box will REALLY handle all dependencies and not leave killer features like Sunstone broken.
#7 Updated by Ruben S. Montero over 9 years ago
- Assignee changed from Hector Sanjuan to Javi Fontan
- Target version set to Release 3.4
- Affected Versions OpenNebula 3.0 added
#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?
#9 Updated by Ruben S. Montero over 9 years ago
- Status changed from Closed to New
- Target version changed from Release 3.4 to Release 3.2
Agree, reopening it...
#10 Updated by Ruben S. Montero over 9 years ago
- Status changed from New to Assigned
#11 Updated by Ruben S. Montero over 9 years ago
- Status changed from Assigned to Closed
- Resolution changed from fixed to duplicate
#12 Updated by Lars Kellogg-Stedman over 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!
#13 Updated by Lars Kellogg-Stedman over 9 years ago
I should add some details. We're running:
- ONE 3.2.1.
- CentOS 6.2
#14 Updated by Ruben S. Montero over 9 years ago
- Status changed from Closed to New
- Target version changed from Release 3.2 to Release 3.4
#15 Updated by Daniel Molina over 9 years ago
This problem is related to the sinatra gem version. Please try updating the gem.
FYI, if you use the install_gems script included in OpenNebula, it will handle these dependencies.
/usr/share/one/install_gems sunstone
#16 Updated by nicolas diogo over 9 years ago
i would agree with the view that installation should be done successfully by using only packages provided by the distribution repos.
otherwise it will become difficult to maintain servers on the long run.
using Debian x64 6.0.4
opennebula 3.3.0.1
#17 Updated by Javi Fontan over 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.
#18 Updated by Javi Fontan about 9 years ago
- Status changed from New to Closed