mdzidic / ovz-web-panel

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

`getaddrinfo': getaddrinfo: Name or service not known (SocketError) #267

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Steps to reproduce:
1. owp start

Actual result:

Starting OpenVZ Web Panel
=> Booting WEBrick...
/usr/lib64/ruby/1.8/drb/drb.rb:840:in `getaddrinfo': getaddrinfo: Name or 
service not known (SocketError)
        from /usr/lib64/ruby/1.8/drb/drb.rb:840:in `open_server_inaddr_any'
        from /usr/lib64/ruby/1.8/drb/drb.rb:859:in `open_server'
        from /usr/lib64/ruby/1.8/drb/drb.rb:759:in `open_server'
        from /usr/lib64/ruby/1.8/drb/drb.rb:757:in `each'
        from /usr/lib64/ruby/1.8/drb/drb.rb:757:in `open_server'
        from /usr/lib64/ruby/1.8/drb/drb.rb:1342:in `initialize'
        from /usr/lib64/ruby/1.8/drb/drb.rb:1630:in `new'
        from /usr/lib64/ruby/1.8/drb/drb.rb:1630:in `start_service'
        from /opt/openvz/lib/watchdog_client.rb:6:in `initialize'
        from /opt/openvz/config/environment.rb:26:in `new'
        from /opt/openvz/config/environment.rb:26
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
        from /opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
        from /opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
        from /opt/openvz/vendor/rails/railties/lib/commands/servers/webrick.rb:59
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
        from /opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in `new_constants_in'
        from /opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in `require'
        from /opt/openvz/vendor/rails/railties/lib/commands/server.rb:49
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /opt/openvz/script/..//script/server:3
Starting watchdog daemon...
Starting the daemon...
Syncing physical servers state...
/usr/lib64/ruby/1.8/drb/drb.rb:840:in `getaddrinfo': getaddrinfo: Name or 
service not known (SocketError)
        from /usr/lib64/ruby/1.8/drb/drb.rb:840:in `open_server_inaddr_any'
        from /usr/lib64/ruby/1.8/drb/drb.rb:859:in `open_server'
        from /usr/lib64/ruby/1.8/drb/drb.rb:759:in `open_server'
        from /usr/lib64/ruby/1.8/drb/drb.rb:757:in `each'
        from /usr/lib64/ruby/1.8/drb/drb.rb:757:in `open_server'
        from /usr/lib64/ruby/1.8/drb/drb.rb:1342:in `initialize'
        from /usr/lib64/ruby/1.8/drb/drb.rb:1630:in `new'
        from /usr/lib64/ruby/1.8/drb/drb.rb:1630:in `start_service'
        from /opt/openvz/lib/watchdog_client.rb:6:in `initialize'
        from /opt/openvz/config/environment.rb:26:in `new'
        from /opt/openvz/config/environment.rb:26
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /opt/openvz/vendor/rails/railties/lib/commands/runner.rb:39
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `gem_original_require'
        from /usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
        from /opt/openvz/script/..//script/runner:3

Expected result:

Version of the product:

1.7

Server OS:

gentoo

Browser:

Additional information:

ruby 1.8.7 (2011-02-18 patchlevel 334) [x86_64-linux]
gem list --local

rake (0.8.7)
sqlite3-ruby (1.3.3)

The similar error and after running

rake db:migrate RAILS_ENV="production" --trace
(in /opt/openvz)
** Invoke db:migrate (first_time)
** Invoke environment (first_time)
** Execute environment
rake aborted!
getaddrinfo: Name or service not known
/usr/lib64/ruby/1.8/drb/drb.rb:840:in `getaddrinfo'
/usr/lib64/ruby/1.8/drb/drb.rb:840:in `open_server_inaddr_any'
/usr/lib64/ruby/1.8/drb/drb.rb:859:in `open_server'
/usr/lib64/ruby/1.8/drb/drb.rb:759:in `open_server'
/usr/lib64/ruby/1.8/drb/drb.rb:757:in `each'
/usr/lib64/ruby/1.8/drb/drb.rb:757:in `open_server'
/usr/lib64/ruby/1.8/drb/drb.rb:1342:in `initialize'
/usr/lib64/ruby/1.8/drb/drb.rb:1630:in `new'
/usr/lib64/ruby/1.8/drb/drb.rb:1630:in `start_service'
/opt/openvz/lib/watchdog_client.rb:6:in `initialize'
/opt/openvz/config/environment.rb:26:in `new'
/opt/openvz/config/environment.rb:26
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in 
`gem_original_require'
/usr/lib64/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in `require'
/opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
 `require'
/opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:521:in
 `new_constants_in'
/opt/openvz/vendor/rails/activesupport/lib/active_support/dependencies.rb:153:in
 `require'
/opt/openvz/vendor/rails/railties/lib/tasks/misc.rake:3
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `call'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:636:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:631:in `execute'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:597:in 
`invoke_with_call_chain'
/usr/lib64/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in 
`invoke_with_call_chain'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:607:in 
`invoke_prerequisites'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:604:in 
`invoke_prerequisites'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:596:in 
`invoke_with_call_chain'
/usr/lib64/ruby/1.8/monitor.rb:242:in `synchronize'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:590:in 
`invoke_with_call_chain'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:583:in `invoke'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2051:in `invoke_task'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `each'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2029:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2023:in `top_level'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2001:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:2068:in 
`standard_exception_handling'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib64/ruby/gems/1.8/gems/rake-0.8.7/bin/rake:31
/usr/bin/rake:8:in `load'
/usr/bin/rake:8

Original issue reported on code.google.com by X3V94...@gmail.com on 26 Mar 2011 at 10:24

GoogleCodeExporter commented 9 years ago
I saw such problem after manual changing of machine's hostname. Check your 
/etc/hosts file for old hostname. If it's your case you can fix /etc/hosts file 
or/and apply the patch introduced in 
http://code.google.com/p/ovz-web-panel/source/detail?r=862

P.S. Please add a comment after solving the problem.

Original comment by sibprogrammer on 27 Mar 2011 at 9:03

GoogleCodeExporter commented 9 years ago
Yes, you were right, I added string to /etc/hosts
127.0.0.1 myhostname
and problem disappeared. I got another error about sqlite3 but "gem install 
sqlite3" solved this (sqlite3-ruby is not enough)
Thanks for idea

Original comment by X3V94...@gmail.com on 27 Mar 2011 at 11:50

GoogleCodeExporter commented 9 years ago
Ok, good news.

Original comment by sibprogrammer on 27 Mar 2011 at 11:58