mdzidic / ovz-web-panel

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

Unable to install OWP 2.0 on CentOS 6.2 - Multiple Issues. #396

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. no ruby sqlite3 support identifed by install script (ai.sh)

And...

3. The hw-daemon.rb script deployed by ai.sh via web based wget method is a 
zero byte length file.  Did not test manual execute of ai.sh via tar expand of 
tar.gz file.  But there is an existing issue that reports that this has 
happened under other conditions as well.

And...

4. ai.sh script reports error attempting to use lsb_release on CentOS 6.x
Actual result:
Can't install OWP 2.0 on CentOS 6.2

Expected result:
Install OWP 2.0 on CentOS 6.2

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, OWP functional as expected.

BTW... lsb_release is not native to CentOS 6.x, it has to be explicitly addded, 
since it is not installed by default.  So use of this command generates error 
in ai.sh script, unless lsb_resource is explicitly installed.  Just so happens 
the error does not abort ai.sh script.

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

GoogleCodeExporter commented 9 years ago
Can you provide /tmp/ovz-web-panel.log ?

Original comment by sibprogrammer on 8 Feb 2012 at 1:03

GoogleCodeExporter commented 9 years ago
I am not sure why you are asking for the log?  I think it is clear what the 
issue is?  The ai.sh script has some issues, 1) one of the GEM packages has 
changed, and 2) under the right circumstances, the hw-daemon.rb file is an 
empty file, 3) lsb_release is not core to CentOS, and the ai.sh script doesn't 
hand that situation well.

Original comment by schors...@dc.rr.com on 10 Feb 2012 at 3:45

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
Cool.  Always nice when things are updated or supported.  :)

Original comment by schors...@dc.rr.com on 7 Apr 2012 at 2:52

GoogleCodeExporter commented 9 years ago
Panel installation works without errors on my CentOS 6.2 box. So if you have 
problems, you should answer on my questions. Also please don't promote hacked 
scripts, 'cause they can lead for more problems for me in the future. Such 
comments will be deleted.

Original comment by sibprogrammer on 1 May 2012 at 9:49

GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
[deleted comment]
GoogleCodeExporter commented 9 years ago
@sibprogrammer: no comments.

[root@132 ~]# cat /etc/issue
CentOS release 6.2 (Final)

[root@132 ~]# gem install sqlite3-ruby
Building native extensions.  This could take a while...

#######################################################

Hello! The sqlite3-ruby gem has changed it's name to just sqlite3.  Rather than
installing `sqlite3-ruby`, you should install `sqlite3`.  Please update your
dependencies accordingly.

Thanks from the Ruby sqlite3 team!

<3 <3 <3 <3

#######################################################

Successfully installed sqlite3-1.3.6
Successfully installed sqlite3-ruby-1.3.3
2 gems installed
Installing ri documentation for sqlite3-1.3.6...

No definition for libversion

Enclosing class/module 'mSqlite3' for class Statement not known
Installing ri documentation for sqlite3-ruby-1.3.3...
Installing RDoc documentation for sqlite3-1.3.6...

No definition for libversion

Enclosing class/module 'mSqlite3' for class Statement not known
Installing RDoc documentation for sqlite3-ruby-1.3.3...
[root@132 ~]# wget -O - http://ovz-web-panel.googlecode.com/svn/installer/ai.sh 
| sh -s 
DOWNLOAD_URL=http://owp.softunity.com.ru/download/ovz-web-panel-2.1-2012-05-02-0
701.tgz
--2012-05-03 00:20:23--  http://ovz-web-panel.googlecode.com/svn/installer/ai.sh
Resolving ovz-web-panel.googlecode.com... 173.194.66.82
Connecting to ovz-web-panel.googlecode.com|173.194.66.82|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 8675 (8.5K) [text/plain]
Saving to: âSTDOUTâ

100%[===========================================================================
==============================================>] 8,675       --.-K/s   in 0s

2012-05-03 00:20:23 (24.1 MB/s) - written to stdout [8675/8675]

-----------------------------------
OpenVZ Web Panel Installer.
-----------------------------------
Checking environment...
System info: Linux 132 2.6.32-042stab053.5 #1 SMP Wed May 2 02:37:44 BST 2012 
x86_64 x86_64 x86_64 GNU/Linux
Detecting distrib ID...
Checking presence of the command: lsb_release
Detected distrib ID: RedHat
OpenVZ virtual environment detected.
Resolving dependencies...
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.bytemark.co.uk
 * extras: mirror.bytemark.co.uk
 * updates: mirror.bytemark.co.uk
Setting up Install Process
Package ruby-1.8.7.352-7.el6_2.x86_64 already installed and latest version
Nothing to do
Checking presence of the command: gem
true
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
 * base: mirror.bytemark.co.uk
 * extras: mirror.bytemark.co.uk
 * updates: mirror.bytemark.co.uk
Setting up Install Process
Package sqlite-devel-3.6.20-1.el6.x86_64 already installed and latest version
Package 1:make-3.81-19.el6.x86_64 already installed and latest version
Package gcc-4.4.6-3.el6.x86_64 already installed and latest version
Nothing to do
Building native extensions.  This could take a while...
Successfully installed sqlite3-ruby-1.2.4
1 gem installed
Installing ri documentation for sqlite3-ruby-1.2.4...
Installing RDoc documentation for sqlite3-ruby-1.2.4...
Checking presence of the command: ruby
Ruby version: 1.8.7
Checking presence of the command: gem
RubyGems version: 1.3.7
Checking Ruby SQLite3 support: ruby -e "require 'rubygems'" -e "require 
'sqlite3/database'"
Fatal error: Ruby SQLite3 support not found. Please install it first.

Original comment by 0h546f6f...@gmail.com on 2 May 2012 at 8:26

GoogleCodeExporter commented 9 years ago
[root@132 ~]# cat /tmp/ovz-web-panel.log
Thu May 3 00:15:14 MSD 2012 -----------------------------------
Thu May 3 00:15:14 MSD 2012 OpenVZ Web Panel Installer.
Thu May 3 00:15:14 MSD 2012 -----------------------------------
Thu May 3 00:15:14 MSD 2012 Checking environment...
Thu May 3 00:15:14 MSD 2012 System info: Linux 132 2.6.32-042stab053.5 #1 SMP 
Wed May 2 02:37:44 BST 2012 x86_64 x86_64 x86_64 GNU/Linux
Thu May 3 00:15:14 MSD 2012 Detecting distrib ID...
Thu May 3 00:15:14 MSD 2012 Checking presence of the command: lsb_release
Thu May 3 00:15:14 MSD 2012 Detected distrib ID: RedHat
Thu May 3 00:15:14 MSD 2012 OpenVZ virtual environment detected.
Thu May 3 00:15:14 MSD 2012 Resolving dependencies...
Thu May 3 00:15:15 MSD 2012 Checking presence of the command: gem
Thu May 3 00:16:12 MSD 2012 Checking presence of the command: ruby
Thu May 3 00:16:12 MSD 2012 Ruby version: 1.8.7
Thu May 3 00:16:12 MSD 2012 Checking presence of the command: gem
Thu May 3 00:16:12 MSD 2012 RubyGems version: 1.3.7
Thu May 3 00:16:12 MSD 2012 Checking Ruby SQLite3 support: ruby -e "require 
'rubygems'" -e "require 'sqlite3/database'"
Thu May 3 00:16:12 MSD 2012 Fatal error: Ruby SQLite3 support not found. Please 
install it first.
Thu May 3 00:20:23 MSD 2012 -----------------------------------
Thu May 3 00:20:23 MSD 2012 OpenVZ Web Panel Installer.
Thu May 3 00:20:23 MSD 2012 -----------------------------------
Thu May 3 00:20:23 MSD 2012 Checking environment...
Thu May 3 00:20:23 MSD 2012 System info: Linux 132 2.6.32-042stab053.5 #1 SMP 
Wed May 2 02:37:44 BST 2012 x86_64 x86_64 x86_64 GNU/Linux
Thu May 3 00:20:23 MSD 2012 Detecting distrib ID...
Thu May 3 00:20:23 MSD 2012 Checking presence of the command: lsb_release
Thu May 3 00:20:23 MSD 2012 Detected distrib ID: RedHat
Thu May 3 00:20:23 MSD 2012 OpenVZ virtual environment detected.
Thu May 3 00:20:23 MSD 2012 Resolving dependencies...
Thu May 3 00:20:23 MSD 2012 Checking presence of the command: gem
Thu May 3 00:20:35 MSD 2012 Checking presence of the command: ruby
Thu May 3 00:20:35 MSD 2012 Ruby version: 1.8.7
Thu May 3 00:20:35 MSD 2012 Checking presence of the command: gem
Thu May 3 00:20:35 MSD 2012 RubyGems version: 1.3.7
Thu May 3 00:20:35 MSD 2012 Checking Ruby SQLite3 support: ruby -e "require 
'rubygems'" -e "require 'sqlite3/database'"
Thu May 3 00:20:35 MSD 2012 Fatal error: Ruby SQLite3 support not found. Please 
install it first.

Original comment by 0h546f6f...@gmail.com on 2 May 2012 at 8:30

GoogleCodeExporter commented 9 years ago
All problems described here were solved. Thanks for collaboration.

Original comment by sibprogrammer on 3 May 2012 at 12:58

GoogleCodeExporter commented 9 years ago
Hello, i installed recently the control panel but i dont understand about this 
manual:

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

Where is the "hw-daemon.rb" source?

Original comment by enzo.arr...@gmail.com on 13 Jul 2012 at 10:25