Chef - ArgumentError: too short control escape

放肆的年华 提交于 2019-12-12 05:37:53

问题


I will glad to get an any help in the next issue:

when I run a numerous recipes (when I run an each in a separate way it doesn't fails), I sometimes get a next error:

"ArgumentError: too short control escape"

log:

[2016-03-15T15:41:55+01:00] INFO: Running queued delayed notifications before re-raising exception

[2016-03-15T15:41:55+01:00] ERROR: Running exception handlers

[2016-03-15T15:41:55+01:00] ERROR: Exception handlers complete

[2016-03-15T15:41:55+01:00] FATAL: Stacktrace dumped to c:/chef/chef-stacktrace.out

[2016-03-15T15:41:55+01:00] FATAL: ArgumentError: too short control escape

chef-stacktrace.out:

Generated at 2016-03-14 15:56:29 +0100

ArgumentError: too short control escape

C:/opscode/chef/embedded/apps/chef/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:66:in 'recipe_snippet'

C:/opscode/chef/embedded/apps/chef/lib/chef/formatters/error_inspectors/resource_failure_inspector.rb:43:in 'add_explanation'

It happens randomly and I can't to find an explanation, Thanks


回答1:


I'm guessing something is going wonky with the regexp compile. It supposed to use Regexp.escape(source) but something might be slipping through? Please include the full error output though.




回答2:


After a deep investigations, we have found the root cause of the issue. The name of the Github repository was interpreted by Chef as an escape character (the name of repository was starting with capital letter "C") which caused the configuration to fail alternately.

It regards to Chef 12.0.3 version (I hope, they fixed it in a newer next version)

We changed the name of repository and it solved the problem.



来源:https://stackoverflow.com/questions/36111835/chef-argumenterror-too-short-control-escape

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!