unmk2 / ovz-web-panel

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

Can not install OS template #440

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. Select physical server
2. Click on button Install template OS and select Debian 6 64-bit
3. Click Install

Actual result:
Waiting... And receiving error message "Unable to start the installation of OS 
templates."

Expected result:
Install template OS

Version of the product:
2.1

Server OS:
Debian 6

Browser:
Safari 5.2

Additional information:

in log file:
root@openvz:~# tail -f /opt/ovz-web-panel/log/production.log
Processing Admin::OsTemplatesController#install (for 77.79.161.85 at 2012-05-29 
15:14:38) [POST]
  Parameters: {"selected_official_templates"=>"debian-6.0-x86_64", "template_url"=>"", "action"=>"install", "hardware_server_id"=>"1", "selected_contributed_templates"=>"", "controller"=>"admin/os_templates"}
Scheduling job: wget -P /cache/ 
ftp://download.openvz.org//template//precreated//debian-6.0-x86_64.tar.gz

Errno::ETIMEDOUT (Connection timed out - connect(2)):
    /usr/lib/ruby/1.8/net/http.rb:560:in `initialize'
    /usr/lib/ruby/1.8/net/http.rb:560:in `open'
    /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
    /usr/lib/ruby/1.8/timeout.rb:67:in `timeout'
    /usr/lib/ruby/1.8/timeout.rb:101:in `timeout'
    /usr/lib/ruby/1.8/net/http.rb:560:in `connect'
    /usr/lib/ruby/1.8/net/http.rb:553:in `do_start'
    /usr/lib/ruby/1.8/net/http.rb:548:in `start'
    /usr/lib/ruby/1.8/xmlrpc/client.rb:535:in `do_rpc'
    /usr/lib/ruby/1.8/xmlrpc/client.rb:420:in `call2'
    /lib/hw_daemon_client.rb:81:in `rpc_call'
    /lib/hw_daemon_client.rb:54:in `job'
    /app/models/os_template.rb:44:in `download'
    /app/models/os_template.rb:15:in `install_official'
    /app/controllers/admin/os_templates_controller.rb:39:in `install'
    /app/controllers/admin/os_templates_controller.rb:38:in `each'
    /app/controllers/admin/os_templates_controller.rb:38:in `install'
    /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/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/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/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
    /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in `require'
    //script/server:3

Internal error: Connection timed out - connect(2)

BUT!

root@openvz:~# wget -P /cache/ 
ftp://download.openvz.org//template//precreated//debian-6.0-x86_64.tar.gz
--2012-05-29 15:33:11--  
ftp://download.openvz.org//template//precreated//debian-6.0-x86_64.tar.gz
           => `/cache/debian-6.0-x86_64.tar.gz'
Resolving download.openvz.org... 64.131.90.11
Connecting to download.openvz.org|64.131.90.11|:21... connected.
Logging in as anonymous ... Logged in!
==> SYST ... done.    ==> PWD ... done.
==> TYPE I ... done.  ==> CWD (1) /template//precreated/ ... done.
==> SIZE debian-6.0-x86_64.tar.gz ... 158078884
==> PASV ... done.    ==> RETR debian-6.0-x86_64.tar.gz ... done.
Length: 158078884 (151M) (unauthoritative)

100%[========>] 158,078,884 1.16M/s   in 2m 13s  

2012-05-29 15:35:27 (1.13 MB/s) - `/cache/debian-6.0-x86_64.tar.gz' saved 
[158078884]

Proxy is not used, the server has a direct connection to the Internet.

Original issue reported on code.google.com by ufa...@gmail.com on 29 May 2012 at 9:36

GoogleCodeExporter commented 9 years ago
Sorry, i forgot to open the 7767 port on the firewall. All ok.

Original comment by ufa...@gmail.com on 30 May 2012 at 8:55

GoogleCodeExporter commented 9 years ago

Original comment by sibprogrammer on 30 May 2012 at 12:54