unmk2 / ovz-web-panel

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

non-absolute home error #416

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. Install OWP
2. Log in
3. Try to add another server

Actual result:
I get the following traceback:
Processing Admin::HardwareServersController#save (for <IP> at 2012-03-16 
20:17:54) [POST]
  Parameters: {"id"=>"", "host"=>"<HOSTNAME>", "action"=>"save", "root_password"=>"[FILTERED]", "description"=>"", "auth_key"=>"", "controller"=>"admin/hardware_servers", "daemon_port"=>"7767"}

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:36: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:19: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:
It should ssh into other server an install hw-daemon

Version of the product:
OpenVZ Web Panel 2.0

Server OS:
Linux  2.6.32-042stab049.6 #1 SMP Mon Feb 6 19:17:43 MSK 2012 x86_64 x86_64 
x86_64 GNU/Linux

Browser:
Chrome 17

Additional information:
Based on some quick research, that seems to be related to using ~/ paths in 
certain (notably Ruby SSH) files.

This is a new install of OWP, however there was previously an install of 
hw-daemon on the server I'm trying to add to the panel. I think I cleared it 
out completely, though.

Original issue reported on code.google.com by schoe...@schoenbaumlab.org on 17 Mar 2012 at 12:24

GoogleCodeExporter commented 9 years ago
One thing I just noticed:

If I run the server on port 80, this error occurs.. If I revert it back to port 
3000, the error goes away.

Original comment by schoe...@schoenbaumlab.org on 17 Mar 2012 at 12:40

GoogleCodeExporter commented 9 years ago
Shoot.. I realized I was logged into the wrong account when I submitted this 
issue. Is there anyway to change who reported it?

Original comment by rie...@squishypuppy.com on 17 Mar 2012 at 12:41

GoogleCodeExporter commented 9 years ago
Sorry. Comment #1 seems to be a fluke. I just changed it back and the problem 
reappeared..

Original comment by rie...@squishypuppy.com on 17 Mar 2012 at 12:45

GoogleCodeExporter commented 9 years ago

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

GoogleCodeExporter commented 9 years ago
Fixed. See 
https://github.com/sibprogrammer/owp/commit/57b7beeb1a505741f01a124b423d6b80366d
9906

Original comment by sibprogrammer on 3 Feb 2013 at 4:06