Tôi đang chạy hai môi trường và tôi nhận được cùng một lỗi trên mỗi khi triển khai một ứng dụng. Những lỗi này cũng xảy ra khi triển khai ứng dụng mẫu cây đậu. Các lỗi sẽ biến mất khi chúng ta tạo một môi trường mới và triển khai các tệp tương tự trong nó .. trong một vài ngày ít nhất và sau đó chúng sẽ trở lại.Lỗi cây đậu Amazon khi triển khai
Instance: i-72715b7f Command failed on instance. An unexpected error has occurred ErrorCode: 0000000001.
Cập nhật hoạt động môi trường hoàn tất nhưng có lỗi. Để biết thêm thông tin, hãy xem tài liệu khắc phục sự cố.
Instance: i-85437188 Module: AWSEBAutoScalingGroup ConfigSet: null Command failed on instance. Return code: 1 Output: Error occurred during build: Command hooks failed .
Script /opt/elasticbeanstalk/hooks/appdeploy/enact/99_reload_app_server.sh failed with returncode 1
Script /opt/elasticbeanstalk/hooks/appdeploy/pre/12_update_permissions.sh failed with returncode 1
Ứng dụng (trang web WordPress) có vẻ hoạt động tốt ngay cả với những lỗi này trong sự kiện, không thể tải hình ảnh hoặc liên kết không hoạt động). Chúng tôi đã chạy cùng một ứng dụng trên cây đậu, không có vấn đề gì hay sai sót gì cả. Những lỗi này cũng xảy ra khi triển khai ứng dụng mẫu cây đậu.
Đây là đoạn mã duy nhất từ nhật ký lỗi dường như có bất kỳ mức độ liên quan nào.
2014-09-17 19:47:08,825 ERROR Error encountered during build of Hook-EnactAppDeploy: Command hooks failed
Traceback (most recent call last):
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 511, in run_config
CloudFormationCarpenter(config, self._auth_config).build(worklog)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 247, in build
changes = CommandTool().apply(self._config.commands)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/command_tool.py", line 113, in apply
raise ToolError(u"Command %s failed" % name)
ToolError: Command hooks failed
2014-09-17 19:47:08,826 ERROR Unhandled exception during build: Command hooks failed
Traceback (most recent call last):
File "/opt/aws/bin/cfn-init", line 122, in <module>
worklog.build(detail.metadata, configSets)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 117, in build
Contractor(metadata).build(configSets, self)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 502, in build
self.run_config(config, worklog)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 511, in run_config
CloudFormationCarpenter(config, self._auth_config).build(worklog)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/construction.py", line 247, in build
changes = CommandTool().apply(self._config.commands)
File "/usr/lib/python2.6/site-packages/cfnbootstrap/command_tool.py", line 113, in apply
raise ToolError(u"Command %s failed" % name)
ToolError: Command hooks failed
Có gì sai ở đây? Làm thế nào để chúng tôi sửa chữa nó?
Khi tôi nhớ lại, điều này rất giống với những gì đã xảy ra với chúng tôi. Có một plugin WordPress đã tạo ra hàng trăm nghìn thư mục trống trong một thư mục trên máy chủ. Sau một thời gian, nó là đủ để điền vào hệ thống tập tin. Đây là một trang web lưu lượng truy cập rất cao. – mbacon40