[英]chef - Re-raising exception TypeError - can't convert nil into String
Hi I am getting started on using chef on windows and have followed the quickstart guide . 嗨,我开始在Windows上使用Chef,并已遵循快速入门指南 。 I am using chef-solo and got it working with the getting started cookbook where it just writes a template out to the home directory, but any cookbook which installs something I get the error "Re-raising exception TypeError - can't convert nil into String" with no indication where the problem is.
我正在使用Chef-solo,并使其与入门食谱一起工作,在食谱中它只是将模板写入主目录,但是任何安装了东西的食谱都会出现错误“重新引发异常TypeError-无法将nil转换为字符串”,没有指出问题出在哪里。
I have my chef repo here on github which is trying to install 7-zip. 我在github上有我的厨师仓库 ,它正在尝试安装7-zip。
I have tried running with -l debug and this is the full stach trace . 我尝试使用-l debug运行, 这是完整的stach跟踪 。
I am a bit at a loss now of how to find the nil. 现在我对如何找到零无所适从。
Which version of Chef are you using? 您正在使用哪个版本的Chef?
I had a similar problem with Chef 0.10.10 on Ubuntu. 我在Ubuntu上使用Chef 0.10.10遇到了类似的问题。
To solve this I upgraded my Chef version. 为了解决这个问题,我升级了Chef版本。 In my case I ran
就我而言
sudo gem update chef
Now I have 10.14.2 and everything is fine. 现在我有10.14.2,一切都很好。
Not sure how you have configured your Windows install but you can try to run it without the sudo in front. 不确定如何配置Windows安装,但是可以尝试在没有sudo的情况下运行它。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.