wrewolf / ovz-web-panel

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

Error Errno::EHOSTUNREACH (No route to host - connect(2)): when trying to download templates #424

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. Install ovz-web-panel on a management server (non-openvz)
2. Add a openvz server to the web panel
3. Navigate to the server in the web panel
4. Click "OS Templates"
5. Click "Install New OS Template"
6. Select an offical template
7. Click Install

Actual result:
Error Message "Failed to start installation of OS templates."
error log attached 

Expected result:
Installation of template

Additional information:
Am able to run the wget command shown in the log manually on both servers with 
success so this isn't a generic routing / network issue.

Original issue reported on code.google.com by j...@younghouse.info on 18 Apr 2012 at 11:07

Attachments:

GoogleCodeExporter commented 9 years ago
After further investigation it appears that was caused by the management server 
not being able to connect to the hardware daemon on the hardware node.

To fix (for future googlers) navigate to /opt/ovz-web-panel/utils/hw-daemon on 
the hardware node and start the hardware daemon with:
ruby hw-daemon.rb start

You can check it's running with netstat -tnlp | grep ruby

You should see an entry showing a ruby process listening on port 7767.You'll 
also want to make an appropriate firewall hole between your management server 
and the hardware node.

Original comment by j...@younghouse.info on 18 Apr 2012 at 2:58

GoogleCodeExporter commented 9 years ago
My take on this issue is that it should be turned into a bug to give a more 
informative error message when there is a failure to communicate with the 
hardware daemon on a node.

Original comment by j...@younghouse.info on 18 Apr 2012 at 3:00

GoogleCodeExporter commented 9 years ago
I have the same problem now and I have tried many ways,but fail.hardware works 
well ,the ruby process listening on the port 7767,but I cant synchronize the 
server and load os templates.When I try to synchronize ,the log give me the 
information:Failed to synchronize 10.10.10.201 server state.When I try to load 
OS templates,the log give me the information:Errno::EHOSTUNREACH (No route to 
host - connect(2))

I dont know why and what to do.

Who can help me?

Original comment by 66xiaoh...@gmail.com on 4 Nov 2013 at 7:51

GoogleCodeExporter commented 9 years ago
I have solve my problem,I forget to stop the firewall.After I stop the 
firewall,I can connect another servers and do everything ,of course,including 
seeing  the physical statistics infromation and load OS templates.

Original comment by 66xiaoh...@gmail.com on 4 Nov 2013 at 1:27