我有 Elastic Beanstalk 运行 Windows Server,带有 IIS,来 self 制作的 AMI。它启动得很好,没有错误。
但是当我尝试部署(形式命令行)时,我得到了这个:
...
INFO: Creating AppVersion app-9e98-160212_104939
INFO: Environment update is starting.
INFO: Deploying new version to instance(s).
INFO: Command execution completed on all instances successfully.
INFO: New application version was deployed to running EC2 instances.
ERROR: Update environment operation is complete, but with errors. For more information, see troubleshooting documentation.
ERROR: ServiceError - Update environment operation is complete, but with errors. For more information, see troubleshooting documentation.
当我尝试提取最后 100 行错误日志时,它根本没有提取任何内容。
我检查了打包应用程序的大小,zip 文件只有 60MB,所以这不是大小问题。
该项目只是一堆 php 文件,所以我想知道它是否出于某种原因不喜欢该项目。
对于追踪问题有什么想法或建议吗?我真的很感谢任何指导,我很茫然。
此外,我找不到有关将部署到哪个目录的任何信息。我怎么知道,以及如何更改它?
谢谢。
最佳答案
当然,我不知道你的自定义AMI是否有问题,但是你可以做的分析问题是:
- 通过 RDP 连接到您的实例
- cmd
cd\cfn\log
- 查看文件 cfn-init*.log
由于这些文件是用 Unix CRLF 编码的,因此几乎无法用记事本读取。我建议您在命令行上使用type cfn-init.log
。这多次帮助我定位部署问题。祝你好运。
关于amazon-web-services - Elastic Beanstalk : Can't deploy to Windows server, 和 EB 不提取任何日志,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35370485/