Hi, I am trying to install hopswork in one VM, and the installation failed while running docker_registry, and below are the error info, could u please help me out?
starting Chef Client, version 14.10.9
resolving cookbooks for run list: [“hops::docker_registry”]
Synchronizing Cookbooks:
bash[start_docker_registry] action run (skipped due to not_if)
template[/srv/hops/hadoop/bin/consul/registry-health.sh] action create (up to date)
consul_service[Registering Registry with Consul] action register
template[/srv/hops/consul/consul.d/registry-consul.hcl] action create (up to date)
systemd_unit[consul.service] action reload
reloading unit: consul.service
systemd_unit[consul.service] action restart (skipped due to only_if)
bash[download_images] action run (skipped due to not_if)
bash[import_images] action run
================================================================================
Error executing action run on resource ‘bash[import_images]’
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20211117-61035-l34p6s” ----
STDOUT:
STDERR: open /srv/hopsworks-data/docker/tmp/docker-import-081669584/repositories: no such file or directory
---- End output of “bash” “/tmp/chef-script20211117-61035-l34p6s” ----
Ran “bash” “/tmp/chef-script20211117-61035-l34p6s” returned 1
Resource Declaration:
In /tmp/chef-solo/cookbooks/hops/recipes/docker_registry.rb
126: bash “import_images” do
127: user “root”
128: code <<-EOF
129: docker load -i #{Chef::Config[‘file_cache_path’]}/#{base_filename}
130: EOF
131: not_if “docker image inspect #{registry_address}/#{base_image} #{registry_address}/#{base_image_python}”
132: end
133:
134: bash “tag_images” do
135: user “root”
136: code <<-EOF
137: docker tag #{base_image} #{registry_address}/#{base_image}
138: docker rmi #{base_image}
139: docker tag #{base_image_python} #{registry_address}/#{base_image_python}
140: docker rmi #{base_image_python}
141: EOF
142: not_if “docker image inspect #{registry_address}/#{base_image} #{registry_address}/#{base_image_python}”
143: end
144:
145: bash “push_images” do
146: user “root”
147: code <<-EOF
148: docker push #{registry_address}/#{base_image}
149: docker push #{registry_address}/#{base_image_python}
150: EOF
151: end
152:
153: #delete tar
154: file “#{Chef::Config[‘file_cache_path’]}/#{base_filename}” do
155: action :delete
156: only_if { File.exist? “#{Chef::Config[‘file_cache_path’]}/#{base_filename}” }
157: end
158:
159: # We add docker in kagent in this recipe as the hops::docker recipe runs during the install phase and it might run
160: # before kagent::install
161: service_name=‘docker’
162: if node[‘kagent’][‘enabled’] == “true”
163: kagent_config service_name do
164: service “docker”
165: end
166: end
167:
168: if conda_helpers.is_upgrade
169: kagent_config service_name do
170: action :systemd_reload
171: end
172: end
Compiled Resource:
Declared in /tmp/chef-solo/cookbooks/hops/recipes/docker_registry.rb:126:in `from_file’
Running handlers:
[2021-11-17T13:58:29-05:00] ERROR: Running exception handlers
Running handlers complete
[2021-11-17T13:58:29-05:00] ERROR: Exception handlers complete
Chef Client failed. 3 resources updated in 08 seconds
[2021-11-17T13:58:29-05:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[2021-11-17T13:58:29-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-11-17T13:58:29-05:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[import_images] (hops::docker_registry line 126) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit with [0]
, but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20211117-61035-l34p6s” ----
STDOUT:
STDERR: open /srv/hopsworks-data/docker/tmp/docker-import-081669584/repositories: no such file or directory
---- End output of “bash” “/tmp/chef-script20211117-61035-l34p6s” ----
Ran “bash” “/tmp/chef-script20211117-61035-l34p6s” returned 1
Running handlers:
[2021-11-18T11:23:07-05:00] ERROR: Running exception handlers
Running handlers complete
[2021-11-18T11:23:07-05:00] ERROR: Exception handlers complete
Chef Client failed. 9 resources updated in 17 seconds
[2021-11-18T11:23:07-05:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[2021-11-18T11:23:07-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-11-18T11:23:07-05:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[download_images] (hops::docker_registry line 115) had an error: Mixlib::ShellOut::ShellCommandFailed: Command execution failed. STDOU
T/STDERR suppressed for sensitive resource
Running handlers:
[2021-11-19T09:10:21-05:00] ERROR: Running exception handlers
Running handlers complete
[2021-11-19T09:10:21-05:00] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated in 10 seconds
[2021-11-19T09:10:21-05:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[2021-11-19T09:10:21-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-11-19T09:10:21-05:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[download_images] (hops::docker_registry line 115) had an error: Mixlib::ShellOut::ShellCommandFailed: Command execution failed.
STDOUT/STDERR suppressed for sensitive resource
resolving cookbooks for run list: [“hops::docker_registry”]
Synchronizing Cookbooks:
remote_file[/tmp/chef-solo/registry_image.tar] action create_if_missing (skipped due to not_if)
bash[import_image] action run (skipped due to not_if)
file[/tmp/chef-solo/registry_image.tar] action delete (up to date)
bash[start_docker_registry] action run (skipped due to not_if)
template[/srv/hops/hadoop/bin/consul/registry-health.sh] action create (up to date)
consul_service[Registering Registry with Consul] action register
template[/srv/hops/consul/consul.d/registry-consul.hcl] action create (up to date)
systemd_unit[consul.service] action reload
reloading unit: consul.service
systemd_unit[consul.service] action restart (skipped due to only_if)
bash[download_images] action run (skipped due to not_if)
bash[import_images] action run
================================================================================
Error executing action run on resource ‘bash[import_images]’
Mixlib::ShellOut::ShellCommandFailed
Expected process to exit with [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20211119-69761-1wbkts2” ----
STDOUT:
STDERR: open /srv/hopsworks-data/docker/tmp/docker-import-627887742/repositories: no such file or directory
---- End output of “bash” “/tmp/chef-script20211119-69761-1wbkts2” ----
Ran “bash” “/tmp/chef-script20211119-69761-1wbkts2” returned 1
Resource Declaration:
In /tmp/chef-solo/cookbooks/hops/recipes/docker_registry.rb
126: bash “import_images” do
127: user “root”
128: code <<-EOF
129: docker load -i #{Chef::Config[‘file_cache_path’]}/#{base_filename}
130: EOF
131: not_if “docker image inspect #{registry_address}/#{base_image} #{registry_address}/#{base_image_python}”
132: end
133:
134: bash “tag_images” do
135: user “root”
136: code <<-EOF
137: docker tag #{base_image} #{registry_address}/#{base_image}
138: docker rmi #{base_image}
139: docker tag #{base_image_python} #{registry_address}/#{base_image_python}
140: docker rmi #{base_image_python}
141: EOF
142: not_if “docker image inspect #{registry_address}/#{base_image} #{registry_address}/#{base_image_python}”
143: end
144:
145: bash “push_images” do
146: user “root”
147: code <<-EOF
148: docker push #{registry_address}/#{base_image}
149: docker push #{registry_address}/#{base_image_python}
150: EOF
151: end
152:
153: #delete tar
154: file “#{Chef::Config[‘file_cache_path’]}/#{base_filename}” do
155: action :delete
156: only_if { File.exist? “#{Chef::Config[‘file_cache_path’]}/#{base_filename}” }
157: end
158:
159: # We add docker in kagent in this recipe as the hops::docker recipe runs during the install phase and it might run
160: # before kagent::install
161: service_name=‘docker’
162: if node[‘kagent’][‘enabled’] == “true”
163: kagent_config service_name do
164: service “docker”
165: end
166: end)
167:
168: if conda_helpers.is_upgrade
169: kagent_config service_name do
170: action :systemd_reload
171: end
172: end
Compiled Resource:
Declared in /tmp/chef-solo/cookbooks/hops/recipes/docker_registry.rb:126:in `from_file’
Running handlers:
[2021-11-19T09:10:36-05:00] ERROR: Running exception handlers
Running handlers complete
[2021-11-19T09:10:36-05:00] ERROR: Exception handlers complete
Chef Client failed. 2 resources updated in 08 seconds
[2021-11-19T09:10:36-05:00] FATAL: Stacktrace dumped to /tmp/chef-solo/chef-stacktrace.out
[2021-11-19T09:10:36-05:00] FATAL: Please provide the contents of the stacktrace.out file if you file a bug report
[2021-11-19T09:10:36-05:00] FATAL: Mixlib::ShellOut::ShellCommandFailed: bash[import_images] (hops::docker_registry line 126) had an error: Mixlib::ShellOut::ShellCommandFailed: Expected process to exit wi
th [0], but received ‘1’
---- Begin output of “bash” “/tmp/chef-script20211119-69761-1wbkts2” ----
STDOUT:
STDERR: open /srv/hopsworks-data/docker/tmp/docker-import-627887742/repositories: no such file or directory
---- End output of “bash” “/tmp/chef-script20211119-69761-1wbkts2” ----
Ran “bash” “/tmp/chef-script20211119-69761-1wbkts2” returned 1