【问题标题】:Chef-client error with Command timed out after 900s:900 秒后命令超时的 Chef-client 错误:
【发布时间】:2017-08-09 13:59:09
【问题描述】:

尝试下载带有自定义资源的文件(没有超时等属性),但是inet太慢了,厨师给我一个错误:

Mixlib::ShellOut::CommandTimeout
      --------------------------------
      Command timed out after 900s:
      Command exceeded allowed execution time, process terminated

谁知道如何增加超时时间?

【问题讨论】:

    标签: timeout chef-infra


    【解决方案1】:

    所有厨师资源都有一个共同的timeout 属性,应该允许您为您的remote_file 资源增加它。

    Common Functionality

    【讨论】:

    • 我使用无法编辑的自定义资源,并且没有任何关于超时的消息。我可以在这种情况下使用超时吗?
    • 嗯..不确定。尝试使用edit_resource! 编辑资源作为described by @coderanger
    • 因此,创建一个 fork 并将 timout 添加到自定义资源
    • 没有编辑资源工作? Fork 可能是所有选项中最糟糕的。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2011-01-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-02-11
    相关资源
    最近更新 更多