Chef infra TypeError:使用远程文件下载文件时无法复制NilClass
我正在尝试从http服务器下载filefor java安装。我的食谱里有下面的内容Chef infra TypeError:使用远程文件下载文件时无法复制NilClass,chef-infra,chef-recipe,chef-solo,Chef Infra,Chef Recipe,Chef Solo,我正在尝试从http服务器下载filefor java安装。我的食谱里有下面的内容 remote_file "Downloading Java from: #{dl_url}" do source dl_url path java_dlfile owner user group group mode 0664 backup false action :create_if_missing not_if { Dir
remote_file "Downloading Java from: #{dl_url}" do
source dl_url
path java_dlfile
owner user
group group
mode 0664
backup false
action :create_if_missing
not_if { Dir.exists?(java_home) }
end
它正在从中下载java
TypeError:无法复制类
该文件在该位置可用&我可以访问它并从浏览器下载
可能是什么问题。我想出来了。url中http:之后缺少一个/。谢谢。我在send_http_Request中也看到了阻塞。您能提供完整的堆栈跟踪吗。dl_url是否设置为您提到的url?路径设置为什么,等等?