amazon-web-services - Elastic Beanstalk : Can't deploy to Windows server, 和 EB 不提取任何日志

标签 amazon-web-services deployment amazon-elastic-beanstalk

我有 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是否有问题,但是你可以做的分析问题是:

  1. 通过 RDP 连接到您的实例
  2. cmd
  3. cd\cfn\log
  4. 查看文件 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/

相关文章:

amazon-web-services - AWS Cloud9 - 设备上没有剩余空间

c# - 发布网站时有没有办法排除整个文件夹?

amazon-web-services - 使用beantalk从正在运行的docker容器中在主机EC2实例上安装目录

amazon-web-services - 在 AWS beanstalk 中的多个端口上配置 https

python - YAML 格式不正确

reactjs - AWS 放大数据存储不会与服务器同步

json - 将一个arm部署资源链接模板的输出传递到另一个

C# 应用程序不在另一台计算机上运行

wordpress - AWS 中的 GoDaddy 域与 Wordpress 应用程序问题的 SSL

amazon-web-services - 是否有适合向浏览器发送实时更新的 aws 服务?