我有一个非常标准的 CodePipeline/CodeDeploy 设置,它已经完美运行了几个月。突然间,在我们没有进行任何更改的情况下,部署失败并显示以下消息:
Validation of PKCS7 signed message failed
根据the documentation ,这应该只发生在非常旧版本的 CodeDeploy 代理上:
This error message indicates the instance is running a version of the CodeDeploy agent that supports only the SHA-1 hash algorithm. Support for the SHA-2 hash algorithm was introduced in version 1.0.1.854 of the CodeDeploy agent, released in November 2015. Effective October 17, 2016, deployments will fail if a version of the CodeDeploy agent earlier than 1.0.1.854 is installed.
但是,我的设置并非如此。我们所有的实例都运行版本 1.0-1.1597(最新稳定版)。我尝试重新安装代理,但问题仍然存在。使用非常相似的设置(相同的代理版本)部署不同的项目可以顺利进行。
帮忙?
最佳答案
显然,CodeDeploy 代理陷入了困境。
我进行了全新安装,并在重新启动服务几次后,我设法获得了令人尊敬的Loaded:已加载,Active:事件(正在运行)
状态。部署现在工作正常。
也就是说,我完全不知道是什么导致了这个问题。当部署失败时,代理处于事件状态,并且错误消息完全无意义。
关于amazon-web-services - CodeDeploy 失败并显示消息 "Validation of PKCS7 signed message failed",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/54902872/