Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to start owp #52

Open
alex3137 opened this issue Jan 8, 2015 · 5 comments
Open

Unable to start owp #52

alex3137 opened this issue Jan 8, 2015 · 5 comments

Comments

@alex3137
Copy link

alex3137 commented Jan 8, 2015

Hello.

owp was working fine until I tried to connect to it. I wanted to restart it, here is the output of /etc/init.d/owp restart:

root[/home/alex]# /etc/init.d/owp restart
Stopping OpenVZ Web Panel server...
Stopping hardware node daemon...
[FAIL] Unable to stop hardware node daemon.
Stopping watchdog daemon...
[FAIL] Unable to stop watchdog daemon.
Starting OpenVZ Web Panel...
Starting watchdog daemon...
[FAIL] Unable to start watchdog daemon.
Starting web server webrick on 0.0.0.0:3000...
[FAIL] Unable to start web server.
Starting hardware node daemon...
[FAIL] Unable to start hardware node daemon.
Syncing hardware nodes states...
[FAIL] Unable to sync information about hardware nodes.

Any clue what to try / where to look ?

@sibprogrammer
Copy link
Owner

Most probably it means lack of resources (RAM).

@alex3137
Copy link
Author

No I have plenty of RAM left (1 GB+). Actually the problem is I updated to Ruby 1.9 but owp seems only compatible with Ruby 1.8.

Would it be possible to make it compatible with more recent versions of Ruby ?

@cybernet
Copy link

+1

@afiskon
Copy link

afiskon commented Oct 26, 2015

Same issue here

$ ruby --version
ruby 1.8.7 (2013-06-27 patchlevel 374) [x86_64-linux]

$ cat /etc/redhat-release 
CentOS release 6.6 (Final)

You can easily reproduce it by creating centos6 box in Vagrant and trying to install owp according to Installation section at http://owp.softunity.com.ru/

@afiskon
Copy link

afiskon commented Oct 27, 2015

For the record: I have found a workaround. You can remove > /dev/null 2>&1 code from /etc/init.d/owp script to see error messages. In my case it was:

/opt/ovz-web-panel//script/../config/../vendor/rails/railties/lib/rails/gem_dependency.rb:21:in `add_frozen_gem_path': undefined method `source_index' for Gem:Module (NoMethodError)
    from /opt/ovz-web-panel//script/../config/../vendor/rails/railties/lib/initializer.rb:273:in `add_gem_load_paths'
    from /opt/ovz-web-panel//script/../config/../vendor/rails/railties/lib/initializer.rb:131:in `process'
    from /opt/ovz-web-panel//script/../config/../vendor/rails/railties/lib/initializer.rb:112:in `send'
    from /opt/ovz-web-panel//script/../config/../vendor/rails/railties/lib/initializer.rb:112:in `run'
    from /opt/ovz-web-panel/config/environment.rb:6
    from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:54:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /opt/ovz-web-panel/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /opt/ovz-web-panel/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /opt/ovz-web-panel/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /opt/ovz-web-panel/vendor/rails/railties/lib/commands/servers/webrick.rb:59
    from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:54:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /opt/ovz-web-panel/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /opt/ovz-web-panel/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    from /opt/ovz-web-panel/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    from /opt/ovz-web-panel/vendor/rails/railties/lib/commands/server.rb:49
    from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:54:in `gem_original_require'
    from /usr/lib/ruby/site_ruby/1.8/rubygems/core_ext/kernel_require.rb:54:in `require'
    from /opt/ovz-web-panel//script/server:3

Solution was found on stackoverflow: http://stackoverflow.com/questions/15349869/undefined-method-source-index-for-gemmodule-nomethoderror

sudo gem update --system 1.8.25

Than remove /var/lock/owp to get rid of:

[FAIL] OpenVZ Web Panel is already running.

... error. Now OWP should start!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants