Socket error when installing eclipse using chef -
Socket error when installing eclipse using chef -
i trying install eclipse on ubuntu 12.04 using chef. got cookbook next site https://github.com/geocent-cookbooks/eclipse
i have downloaded dependencies eclipse cookbook showed chef_handler, windows , ark. have downloaded these using "knife cookbook download site" command.
when run eclipse cookbook next socket error. working behind proxy. , have set proxy correctly. other cookbooks working fine except eclipse.
please find error log below.
[2014-06-17t05:38:15+05:30] info: forking chef instance converge... [2014-06-17t05:38:15+05:30] warn: chef client 306 running, wait finish , run. [2014-06-17t05:38:43+05:30] warn: * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * ssl validation of https requests disabled. https connections still encrypted, chef not able observe forged replies or man in middle attacks. prepare issue add together entry configuration file: ``` # verify https connections (recommended) ssl_verify_mode :verify_peer # or, verify connections chef-server verify_api_cert true ``` check ssl configuration, or troubleshoot errors, can utilize `knife ssl check` command so: ``` knife ssl check -c solo.rb ``` * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * [2014-06-17t05:38:43+05:30] info: *** chef 11.12.8 *** [2014-06-17t05:38:43+05:30] info: chef-client pid: 422 [2014-06-17t05:38:57+05:30] info: setting run_list ["recipe[eclipse-master]"] cli options [2014-06-17t05:38:57+05:30] info: run list [recipe[eclipse-master]] [2014-06-17t05:38:57+05:30] info: run list expands [eclipse-master] [2014-06-17t05:38:57+05:30] info: starting chef run ubuntu [2014-06-17t05:38:57+05:30] info: running start handlers [2014-06-17t05:38:57+05:30] info: start handlers complete. [2014-06-17t05:38:57+05:30] info: windowspackage light-weight resource initialized -- overriding! [2014-06-17t05:38:57+05:30] warn: cloning resource attributes execute[eclipse plugin install] prior resource (chef-3694) [2014-06-17t05:38:57+05:30] warn: previous execute[eclipse plugin install]: /home/test/chef-repo2/cookbooks/eclipse-master/recipes/default.rb:44:in `block in from_file' [2014-06-17t05:38:57+05:30] warn: current execute[eclipse plugin install]: /home/test/chef-repo2/cookbooks/eclipse-master/recipes/default.rb:44:in `block in from_file' [2014-06-17t05:38:57+05:30] warn: cloning resource attributes execute[eclipse plugin install] prior resource (chef-3694) [2014-06-17t05:38:57+05:30] warn: previous execute[eclipse plugin install]: /home/test/chef-repo2/cookbooks/eclipse-master/recipes/default.rb:44:in `block in from_file' [2014-06-17t05:38:57+05:30] warn: current execute[eclipse plugin install]: /home/test/chef-repo2/cookbooks/eclipse-master/recipes/default.rb:44:in `block in from_file' [2014-06-17t05:38:57+05:30] info: processing package[openjdk-6-jdk] action install (java::openjdk line 46) [2014-06-17t05:38:58+05:30] info: processing package[openjdk-6-jre-headless] action install (java::openjdk line 46) [2014-06-17t05:38:58+05:30] info: processing java_alternatives[set-java-alternatives] action set (java::openjdk line 50) [2014-06-17t05:39:15+05:30] info: processing link[/usr/lib/jvm/default-java] action create (java::default_java_symlink line 16) [2014-06-17t05:39:15+05:30] info: processing ruby_block[set-env-java-home] action run (java::set_java_home line 19) [2014-06-17t05:39:15+05:30] info: ruby_block[set-env-java-home] called [2014-06-17t05:39:15+05:30] info: processing directory[/etc/profile.d] action create (java::set_java_home line 26) [2014-06-17t05:39:15+05:30] info: processing file[/etc/profile.d/jdk.sh] action create (java::set_java_home line 30) [2014-06-17t05:39:15+05:30] info: processing package[libtool] action install (ark::default line 22) [2014-06-17t05:39:15+05:30] info: processing package[autoconf] action install (ark::default line 22) [2014-06-17t05:39:16+05:30] info: processing package[unzip] action install (ark::default line 22) [2014-06-17t05:39:16+05:30] info: processing package[rsync] action install (ark::default line 22) [2014-06-17t05:39:17+05:30] info: processing package[make] action install (ark::default line 22) [2014-06-17t05:39:17+05:30] info: processing package[gcc] action install (ark::default line 22) [2014-06-17t05:39:17+05:30] info: processing package[autogen] action install (ark::default line 22) [2014-06-17t05:39:17+05:30] info: processing ark[eclipse] action install (eclipse-master::default line 31) [2014-06-17t05:39:17+05:30] info: processing directory[/usr/local/eclipse-kepler] action create (/home/test/chef-repo2/cookbooks/ark/providers/default.rb line 39) [2014-06-17t05:39:17+05:30] info: processing remote_file[/home/test/chef-solo/eclipse-kepler.tar.gz] action create (/home/test/chef-repo2/cookbooks/ark/providers/default.rb line 45) [2014-06-17t05:39:17+05:30] warn: remote_file[/home/test/chef-solo/eclipse-kepler.tar.gz] cannot downloaded http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/r/eclipse-jee-kepler-r-linux-gtk-x86_64.tar.gz&r=1: error connecting http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/r/eclipse-jee-kepler-r-linux-gtk-x86_64.tar.gz&r=1 - getaddrinfo: name or service not known [0m ================================================================================[0m [31merror executing action `create` on resource 'remote_file[/home/test/chef-solo/eclipse-kepler.tar.gz]'[0m ================================================================================[0m [0m socketerror[0m -----------[0m error connecting http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/r/eclipse-jee-kepler-r-linux-gtk-x86_64.tar.gz&r=1 - getaddrinfo: name or service not known[0m [0m resource declaration:[0m ---------------------[0m # in /home/test/chef-repo2/cookbooks/ark/providers/default.rb 45: remote_file new_resource.release_file 46: chef::log.debug('debug: new_resource.release_file') 47: source new_resource.url 48: checksum new_resource.checksum if new_resource.checksum 49: action :create 50: notifies :run, "execute[unpack #{new_resource.release_file}]" 51: end 52: [0m [0m compiled resource:[0m ------------------[0m # declared in /home/test/chef-repo2/cookbooks/ark/providers/default.rb:45:in `block in class_from_file' remote_file("/home/test/chef-solo/eclipse-kepler.tar.gz") provider chef::provider::remotefile action [:create] retries 0 retry_delay 2 guard_interpreter :default path "/home/test/chef-solo/eclipse-kepler.tar.gz" backup 5 atomic_update true source ["http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/r/eclipse-jee-kepler-r-linux-gtk-x86_64.tar.gz&r=1"] use_etag true use_last_modified true cookbook_name :"eclipse-master" end [0m [0m [2014-06-17t05:39:17+05:30] info: running queued delayed notifications before re-raising exception [0m ================================================================================[0m [31merror executing action `install` on resource 'ark[eclipse]'[0m ================================================================================[0m [0m socketerror[0m -----------[0m remote_file[/home/test/chef-solo/eclipse-kepler.tar.gz] (/home/test/chef-repo2/cookbooks/ark/providers/default.rb line 45) had error: socketerror: error connecting http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/r/eclipse-jee-kepler-r-linux-gtk-x86_64.tar.gz&r=1 - getaddrinfo: name or service not known[0m [0m resource declaration:[0m ---------------------[0m # in /home/test/chef-repo2/cookbooks/eclipse-master/recipes/default.rb 31: ark "eclipse" 32: url eclipse_url 33: version node['eclipse']['version'] 34: extension "tar.gz" 35: has_binaries ['eclipse'] 36: append_env_path true 37: action :install 38: end 39: [0m [0m compiled resource:[0m ------------------[0m # declared in /home/test/chef-repo2/cookbooks/eclipse-master/recipes/default.rb:31:in `from_file' ark("eclipse") provider chef::provider::ark action [:install] retries 0 retry_delay 2 guard_interpreter :default cookbook_name :"eclipse-master" recipe_name "default" url "http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/r/eclipse-jee-kepler-r-linux-gtk-x86_64.tar.gz&r=1" version "kepler" extension "tar.gz" has_binaries ["eclipse"] append_env_path true prefix_bin "/usr/local/bin" home_dir "/usr/local/eclipse" path "/usr/local/eclipse-kepler" release_file "/home/test/chef-solo/eclipse-kepler.tar.gz" strip_components 1 owner "root" grouping 0 end [0m [0m [2014-06-17t05:39:17+05:30] info: running queued delayed notifications before re-raising exception [2014-06-17t05:39:17+05:30] error: running exception handlers [2014-06-17t05:39:17+05:30] error: exception handlers finish [2014-06-17t05:39:17+05:30] fatal: stacktrace dumped /home/test/chef-solo/chef-stacktrace.out [2014-06-17t05:39:17+05:30] error: ark[eclipse] (eclipse-master::default line 31) had error: socketerror: remote_file[/home/test/chef-solo/eclipse-kepler.tar.gz] (/home/test/chef-repo2/cookbooks/ark/providers/default.rb line 45) had error: socketerror: error connecting http://www.eclipse.org/downloads/download.php?file=/technology/epp/downloads/release/kepler/r/eclipse-jee-kepler-r-linux-gtk-x86_64.tar.gz&r=1 - getaddrinfo: name or service not known [2014-06-17t05:39:18+05:30] fatal: chef::exceptions::childconvergeerror: chef run process exited unsuccessfully (exit code 1)
please help. give thanks you
you got configured proxy in knife.rb
http_proxy 'http://proxy_ip:3128' https_proxy 'http://proxy_ip:3128' no_proxy 'localhost, 192.168. *' knife [: bootstrap_proxy] = 'http://proxy_ip:3128' knife [: bootstrap_no_proxy] = 'localhost, 192.168 *.' knife [: publisher] = "vim"
the bootsraping node has done knife in client configuration.
on node in / etc / chef / client.rb should this:
log_level: auto log_location stdout chef_server_url "https://chefserver.domain.com:443" validation_client_name "chef-validator" # using default node name (fqdn) http_proxy "http://proxy_ip:3128" https_proxy "http://proxy_ip:3128" no_proxy "localhost, 192.168. *"
sorry english
best regards.
eclipse chef
Comments
Post a Comment