Unable to run WebVZ 2.0

7 views
Skip to first unread message

Ken Chong

unread,
Dec 14, 2008, 1:00:41 AM12/14/08
to Webvz: OpenVZ Web Management Tool
Hello, it is the first time I ever try using a web interface/control
panel for OpenVZ.

It is not had to install Ruby and RoR (I never use that before), and I
also installed Mongrel as recommended by others. Everything seems
fine.

After that I extracted the WebVZ package, and when I want to start
Mongrel, it gives me the following:

===== Error message start =====
** Starting Mongrel listening at 0.0.0.0:3000
** Starting Rails with development environment...
/usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/initializer.rb:
530:in `send': undefined method `cache_template_extensions=' for
ActionView::Base:Class (NoMethodError)
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:530:in `initialize_framework_settings'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:529:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:529:in `initialize_framework_settings'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:526:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:526:in `initialize_framework_settings'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:154:in `process'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:112:in `send'
from /usr/local/lib/ruby/gems/1.8/gems/rails-2.2.2/lib/
initializer.rb:112:in `run'
from /usr/rorapp/webvz.2.0/config/environment.rb:13
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../
lib/mongrel/rails.rb:147:in `rails'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:113:in `cloaker_'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../
lib/mongrel/configurator.rb:149:in `call'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../
lib/mongrel/configurator.rb:149:in `listener'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:99:in `cloaker_'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../
lib/mongrel/configurator.rb:50:in `call'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../
lib/mongrel/configurator.rb:50:in `initialize'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:84:in `new'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:84:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/../
lib/mongrel/command.rb:212:in `run'
from /usr/local/lib/ruby/gems/1.8/gems/mongrel-1.1.5/bin/
mongrel_rails:281
from /usr/local/bin/mongrel_rails:19:in `load'
from /usr/local/bin/mongrel_rails:19
===== Error message end =====

This is the environment I am testing on:

System version CentOS 5.2
Ruby version 1.8.7 (i686-linux)
RubyGems version 1.3.1
Rails version 2.2.2
Active Record version 2.2.2
Action Pack version 2.2.2
Active Resource version 2.2.2
Action Mailer version 2.2.2
Active Support version 2.2.2
Database adapter sqlite3
Database schema version 20080906232725

Am I missing something or I found a bug?
Hope the above information helps, and thank you for your work!

Ken

Shuaib Zahda

unread,
Dec 14, 2008, 1:07:02 AM12/14/08
to we...@googlegroups.com
Hi

I am glad that you are trying out webvz.

Your problem seems to be simple. I designed webvz on rails 2.0.1 and your rails verstion is 2.2.2

The solution would be to edit some files or a better on is to replace them

I suggest you replace them

do the following

create new rails application (in order to get the suitable files for your system)

# rails new_webvz

go to
# cd new_webvz/config

copy the file environments.rb and the directory environment to the webvz/config (replace them)

I guess this is the solution

please let me know if you need further assistance
--
Shuaib Zahda
www.shobiddak.com

Ken Chong

unread,
Dec 15, 2008, 9:53:12 AM12/15/08
to Webvz: OpenVZ Web Management Tool
Hello!

Thank you for your suggestion. The problem fixed!


To thank you for your response, and as a first time user of WebVZ, I
have the following comments:

1. WebVZ is the most functional open source/free control panel I can
found. Most of the normal operations can be done on the web.
2. The user management is what I think the most useful addition to the
original OpenVZ tools. Allowing the VPS owners to manage their own
servers is a MUST.
3. I don't know anything about ruby or rails, but it seems that both
are quite new and under heavy development. Normally this is a good
thing, but from my experience of installing WebVZ, people may get
confused, or the author may need more time taking care such version
things ... Anyway, my suggestion is: you can tell the users how to
avoid this case, or instead providing different versions for different
rails (at least for those changed files.)
4. Is it possible to use Ajax to keep updating the statistics?
Examples: CPU/RAM usage of VMs. I suggest this because I am also
trying Proxmox: http://pve.proxmox.com/wiki/Main_Page , you may try it
out. It is also a good implementation, but it is a full solution and
(I think) the control panel cannot be installed manually. In the
roadmap they said they will also add user management in version 2.
5. Maybe you can add some information about the optional Mongrel
server (rails seems to prefer using it?) and WEBrick/Mongrel options,
at least the -d (daemonize).
6. The line "IP Address: 127.0.0.1" showing at the top of every page
is not useful because (I guess) it is detecting the web server's IP,
but it just see the "lo" interface. (Or this is a bug?)

I know that WebVZ is still young, so I am really happy with this
version. Thank you again, and I hope this project can last as long as
OpenVZ, being its best partner!


Ken
Reply all
Reply to author
Forward
0 new messages