GuBonjour / ovz-web-panel

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

Internal error: non absolute home #431

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1.Install new CentOS 6.2, OpenVZ, OWP 2.1
2.Log in
3.Try to add another server

Actual result:
The result from /opt/ovz-web-panel/log/production.log:

Processing Admin::HardwareServersController#save (for [local IP Address] at 
2012-05-12 01:42:06) [POST]
  Parameters: {"daemon_port"=>"7767", "auth_key"=>"", "id"=>"", "action"=>"save", "controller"=>"admin/hardware_servers", "description"=>"", "host"=>"[IP Address]", "root_password"=>"[FILTERED]"}

ArgumentError (non-absolute home):
    /vendor/gems/net-ssh-2.0.23/lib/net/ssh/config.rb:59:in `expand_path'
    /vendor/gems/net-ssh-2.0.23/lib/net/ssh/config.rb:59:in `load'
    /vendor/gems/net-ssh-2.0.23/lib/net/ssh/config.rb:49:in `for'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `inject'
    /vendor/gems/net-ssh-2.0.23/lib/net/ssh/config.rb:49:in `each'
    /vendor/gems/net-ssh-2.0.23/lib/net/ssh/config.rb:49:in `inject'
    /vendor/gems/net-ssh-2.0.23/lib/net/ssh/config.rb:49:in `for'
    /vendor/gems/net-ssh-2.0.23/lib/net/ssh.rb:212:in `configuration_for'
    /vendor/gems/net-ssh-2.0.23/lib/net/ssh.rb:159:in `start'
    /app/models/hardware_server.rb:41:in `install_daemon'
    /app/models/hardware_server.rb:22:in `connect'
    /app/controllers/admin/hardware_servers_controller.rb:21:in `save'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:1253:in `perform_action_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:617:in `call_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:610:in `perform_action_without_benchmark'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /usr/lib/ruby/1.8/benchmark.rb:293:in `measure'
    /vendor/rails/actionpack/lib/action_controller/benchmarking.rb:68:in `perform_action_without_rescue'
    /vendor/rails/actionpack/lib/action_controller/rescue.rb:136:in `perform_action_without_caching'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:13:in `perform_action'
    /vendor/rails/activerecord/lib/active_record/connection_adapters/abstract/query_cache.rb:34:in `cache'
    /vendor/rails/activerecord/lib/active_record/query_cache.rb:8:in `cache'
    /vendor/rails/actionpack/lib/action_controller/caching/sql_cache.rb:12:in `perform_action'
    /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `send'
    /vendor/rails/actionpack/lib/action_controller/base.rb:524:in `process_without_filters'
    /vendor/rails/actionpack/lib/action_controller/filters.rb:606:in `process_without_session_management_support'
    /vendor/rails/actionpack/lib/action_controller/session_management.rb:134:in `process'
    /vendor/rails/actionpack/lib/action_controller/base.rb:392:in `process'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:183:in `handle_request'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:110:in `dispatch_unlocked'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:123:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `synchronize'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:122:in `dispatch'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:132:in `dispatch_cgi'
    /vendor/rails/actionpack/lib/action_controller/dispatcher.rb:39:in `dispatch'
    /vendor/rails/railties/lib/webrick_server.rb:103:in `handle_dispatch'
    /vendor/rails/railties/lib/webrick_server.rb:74:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:104:in `service'
    /usr/lib/ruby/1.8/webrick/httpserver.rb:65:in `run'
    /usr/lib/ruby/1.8/webrick/server.rb:173:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:162:in `start_thread'
    /usr/lib/ruby/1.8/webrick/server.rb:95:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `each'
    /usr/lib/ruby/1.8/webrick/server.rb:92:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:37:in `start'
    /usr/lib/ruby/1.8/webrick/server.rb:82:in `start'
    /vendor/rails/railties/lib/webrick_server.rb:60:in `dispatch'
    /vendor/rails/railties/lib/commands/servers/webrick.rb:66
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
    /vendor/rails/railties/lib/commands/server.rb:49
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
    //script/server:3

Internal error: non-absolute home

Expected result:

I expected to add a physical server to my panel

Version of the product:
Logo OpenVZ Web Panel 2.1

Server OS:
CentOS 6.2 , 2.6.32-042stab053.5

Browser:
Chrome 18 and Firefox 12

Additional information:

Original issue reported on code.google.com by hnth...@gmail.com on 11 May 2012 at 12:00

GoogleCodeExporter commented 9 years ago
The physical server I want to add running OWP 2.0

Original comment by hnth...@gmail.com on 11 May 2012 at 12:03

GoogleCodeExporter commented 9 years ago
Having the same problem whith the same OS and OWP versions, have no idea what 
to do :(

Original comment by ebra...@elephantheadsoft.com on 8 Jun 2012 at 9:57

GoogleCodeExporter commented 9 years ago
same problem

CentOS release 6.2 (Final) 2.6.32-042stab055.16 #1 SMP Fri Jun 8 19:22:28 MSD 
2012 x86_64 x86_64 x86_64 GNU/Linux

Original comment by spokko2...@gmail.com on 13 Jun 2012 at 2:47

GoogleCodeExporter commented 9 years ago
I can confirm this issue using the exact same setup. local host works fine but 
trying to add additional servers results in the above error.

Original comment by brandon7...@gmail.com on 23 Jun 2012 at 6:35

GoogleCodeExporter commented 9 years ago
Confirmed. 

CentOS release 6.3 (Final). 2.6.32-042stab055.16 #1 SMP Fri Jun 8 19:22:28 MSD 
2012 x86_64 x86_64 x86_64 GNU/Linux
Besides - this hapened on two hosts. Identical results.
This might be problem with Ruby path settings (Google shows similar results). 
But I have no idea, should we change this setting somewhere in the application, 
or it should be a global variable. In latter case - what should be the variable?
Please post, if You managed to solve this problem.

Original comment by ernests....@gmail.com on 10 Oct 2012 at 12:33