wrewolf / ovz-web-panel

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

Failure at adding another physical server #282

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
Steps to reproduce:
1.Add server
2.Click its ip/hostname
3. try doing something jsut get an error

Actual result:Fails todo anything

Expected result:to sync the nodes

Version of the product:

Server OS:debian sqeeze both box's are upto date running same stack

Browser: firefox 4 + win 7

Additional information:

Original issue reported on code.google.com by hacking...@gmail.com on 21 Apr 2011 at 3:11

GoogleCodeExporter commented 8 years ago
this is the error 
Unable to synchronize information on some physical servers

Original comment by hacking...@gmail.com on 21 Apr 2011 at 3:36

GoogleCodeExporter commented 8 years ago
Please provide the tail of /opt/ovz-web-panel/log/production.log right after 
getting error in UI. Try to remove physical server from the list of servers and 
add it again. Can you did it? Do you see any errors? 

Original comment by sibprogrammer on 24 Apr 2011 at 1:24

GoogleCodeExporter commented 8 years ago
Here is the error. The password is OK, but response is 401 Unauthorized:

Processing Admin::HardwareServersController#sync (for 195.47.93.114 at 
2011-05-13 08:34:26) [POST]
  Parameters: {"ids"=>"3", "command"=>"", "action"=>"sync", "controller"=>"admin/hardware_servers"}
XML-RPC runtime error: Authorization failed.
HTTP-Error: 401 Unauthorized
Failed to synchronize vps1.we.cz server state.
Completed in 11ms (View: 0, DB: 3) | 200 OK 
[http://77.93.218.246/admin/hardware-servers/sync]

Original comment by dom...@we.cz on 13 May 2011 at 6:38

GoogleCodeExporter commented 8 years ago
Check if you have gem ssh and gem sftp installed. If not, install them.

Commands:
gem install net-ssh
gem install net-sftp

Then restart OVZ.

Original comment by dom...@we.cz on 17 Jun 2011 at 7:24

GoogleCodeExporter commented 8 years ago
There is no need to install net-ssh and net-sftp gems manually. They are 
shipped with Owp distribution (see /opt/ovz-web-panel/vendor/gems/).

Original comment by sibprogrammer on 18 Jun 2011 at 2:48

GoogleCodeExporter commented 8 years ago
I have same problem. After upgrade from 1.7 -> 2.0. 
I have hung the old process hw-daemon. And the log 
/opt/ovz-web-panel/utils/hw-daemon/hw-daemon.log have written:
INFO  WEBrick 1.3.1
INFO  ruby 1.8.7 (2010-08-16) [x86_64-linux]
WARN  TCPServer Error: Address already in use - bind(2)
I just killed hung process and restarted hw-daemon.
And problem is solved.

Original comment by w33dw0...@gmail.com on 1 Jul 2011 at 11:20

GoogleCodeExporter commented 8 years ago
I have exactly the same problem and I've been unable to resolve it. The file 
/opt/ovz-web-panel/utils/hw-daemon/hw-daemon.log is empty. And 
/opt/ovz-web-panel/log/production.log shows the same error that appears in 
comment 3. I'm using a new installation on a debian squeeze server and I 
installed the panel using the automatic installation.

In the web panel, I'm able to add a physical server (the one I just installed) 
but it doesn't show any statistics nor I can synchronize it.

(I haven't created any containers yet because I'm unable to install templates 
either)

The solution proposted on comment 6 didn't work for me.

Original comment by marcpal...@gmail.com on 30 Jul 2011 at 5:58

GoogleCodeExporter commented 8 years ago

Original comment by sibprogrammer on 1 May 2012 at 10:07

GoogleCodeExporter commented 8 years ago
I have the same problem proposted on comment 7
OS CentOS 6.4

My /opt/ovz-web-panel/log/production.log:

Processing Admin::HardwareServersController#list_data (for 192.168.7.200 at 
2013-06-18 13:59:59) [GET]
  Parameters: {"action"=>"list_data", "controller"=>"admin/hardware_servers", "_dc"=>"1371549612987"}
Completed in 3ms (View: 0, DB: 1) | 200 OK 
[http://192.168.6.156/admin/hardware-servers/list_data?_dc=1371549612987]

Processing Admin::HardwareServersController#save (for 192.168.7.200 at 
2013-06-18 14:00:16) [POST]
  Parameters: {"auth_key"=>"", "action"=>"save", "id"=>"", "description"=>"test", "controller"=>"admin/hardware_servers", "host"=>"192.168.6.156", "root_password"=>"[FILTERED]", "daemon_port"=>"7767"}
Failed to synchronize 192.168.6.156 server state.
Physical server 192.168.6.156 was connected.
Completed in 261ms (View: 0, DB: 6) | 200 OK 
[http://192.168.6.156/admin/hardware-servers/save]

/opt/ovz-web-panel/utils/hw-daemon/hw-daemon.rb was started and listen on port 
7787 

Original comment by kindzaza...@gmail.com on 18 Jun 2013 at 10:10

GoogleCodeExporter commented 8 years ago
Hello Guys,

     When I try to add another OpenVZ node / Server I get the following error:
Internal error: no such file to load -- net/ssh

Any help would be appreciated, the last few lines 
/opt/ovz-web-panel/log/production.log

Are attaced in a text file.

Thanks,
Michael

Original comment by NexusGu...@gmail.com on 6 Jul 2013 at 2:33

Attachments:

GoogleCodeExporter commented 8 years ago
I also have the same problem proposted on comment 9

Original comment by 66xiaoh...@gmail.com on 16 Oct 2013 at 9:00

GoogleCodeExporter commented 8 years ago
i have the same problem to

MissingSourceFile (no such file to load -- net/ssh):
    /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    /vendor/rails/activesupport/lib/active_support/dependencies.rb:155:in `require'
    /app/models/hardware_server.rb:39:in `install_daemon'
    /app/models/hardware_server.rb:24: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/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36: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/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
    /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
    //script/server:3

Internal error: no such file to load -- net/ssh

The solution proposted on comment 6 didn't work for me to.

Original comment by lagu...@gmail.com on 6 Dec 2013 at 8:51

GoogleCodeExporter commented 8 years ago
same issue here. 
Internal error: no such file to load -- net/ssh

since this is a very old issue as it looks. is there any solution?

Original comment by lsas...@gmail.com on 7 Mar 2015 at 12:10