sibprogrammer / owp

OpenVZ Web Panel
http://owp.softunity.com.ru/
Other
296 stars 106 forks source link

Install failure on OpenVZ 7.1 #70

Open azilber opened 7 years ago

azilber commented 7 years ago

Install via wget -O - https://raw.githubusercontent.com/sibprogrammer/owp/master/installer/ai.sh | sh fails

Gem files will remain installed in /usr/local/share/gems/gems/sqlite3-1.3.13 for inspection. Results logged to /usr/local/share/gems/gems/sqlite3-1.3.13/ext/sqlite3/gem_make.out Checking presence of the command: ruby Fatal error: Panel requires Ruby 1.8 (Ruby 1.9 is not supported).

azilber commented 7 years ago

You should install via RVM.

ericmaster commented 7 years ago

I managed to install and run owp by switching back to old ruby version 1.8.7 with rvm, what I did was

rvm install 1.8.7

then I grabbed the latest version of the installer

 wget -O - https://raw.githubusercontent.com/sibprogrammer/owp/master/installer/ai.sh | sh -s DOWNLOAD_URL=http://ow.com.ru/download/ovz-web-panel-latest.tgz

I had some trouble installing some dependencies which seemed to be fixed by running 'gem update --system 1.8.25'. Everthing seemed to have gone well after restarting the owp daemon

# /etc/init.d/owp start
Starting OpenVZ Web Panel...
Starting watchdog daemon...
[OK] Watchdog daemon was started.
Starting web server webrick on 0.0.0.0:3000...
[OK] Web server was started.
Starting hardware node daemon...
[OK] Hardware node daemon was started.
Syncing hardware nodes states...
[OK] Hardware nodes information was synced.

I was able to enter through the browser in port 3000 and log into the admin interface, however, no local physical server was detected, when tried to add one I got Internal error: no such file to load -- net/ssh. After digging a bit more I found that net-ssh and net-sftp gems where needed. gem install net-ssh didn't work as needed a newer version of ruby. Fortunately I found them under the /opt/ovz-web-panel/vendor/ directory. Running the following allowed me to manually install those

ruby setup.rb config
ruby setup.rb install

Restarted the server, logged in to the panel, added the physical server (in my case it was in localhost). This time the entry was added but no containers or vms are listed and no information about physical server was displayed. So I'm wondering, was this ever tested with OpenVZ 7? Anyone managed to make it work?