mdzidic / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
0 stars 0 forks source link

hw-daemon.rb empty #395

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:  See notes below for detailed information)

1. wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh
2. open owp via browser
3. attempt to add OS template, get connection refused error 2

Actual result:
can'g add OS template

Expected result:
add OS template

Version of the product:
2.0

Server OS:
CentOS 6.2

Browser:
Microsoft IE 9

Additional information:
Installation of OWP on CentOS 6 is a bit of work...

# yum install ruby-devel sqlite sqlite-devel ruby-rdoc
# yum install make gcc
# yum install lsb_release
# gem install sqlite3-ruby
# wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh | sh

Checking Ruby SQLite3 support: ruby -e "require 'rubygems'" -e "require 
'sqlite3/database'"
Fatal error: Ruby SQLite3 support not found. Please install it first.

Downloaded ai.sh script, commented out line that reports the error.  

# wget http://ovz-web-panel.googlecode.com/svn/installer/ai.sh
# vi ai.sh

From...
[ $? -ne 0 ] && fatal_error "Ruby SQLite3 support not found. Please install it 
first."

To...
#[ $? -ne 0 ] && fatal_error "Ruby SQLite3 support not found. Please install it 
first."

Since ruby sqlite support really is already in place via the direct gem command 
above.  Then, re-ran customized ai.sh script.  OWP up and running.

Then manual expand of tar.gz file for owp, and copied hw-daemon.rb script to 
/opt/... location, overwriting the empty hw-daemon.rb file.

# cp hw-daemon.rb /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb
cp: overwrite `/opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb'? y

After copying correct vesion of hw-daemon.rb file over empty file...

# ruby /opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb status
Daemon is running.

Now... load of OS templates works!

Original issue reported on code.google.com by schors...@dc.rr.com on 26 Jan 2012 at 3:01

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 13 Mar 2012 at 12:49