diaryniang / ovz-web-panel

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

Failure at adding another physical server #282

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 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 9 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 9 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 9 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 9 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 9 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 9 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 9 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 9 years ago

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

GoogleCodeExporter commented 9 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