【问题标题】:AWS deployment failed - jhipster app - EBSAWS 部署失败 - jhipster 应用程序 - EBS
【发布时间】:2017-08-31 13:28:53
【问题描述】:

我尝试通过直接上传战争在 AWS Elastic BeanStalk 中部署我的 jhipster 应用程序。创建环境时,我收到此错误。

 [Instance: i-08f7c9efd8b2c5476] Command failed on instance. Return code: 1 
 Output: (TRUNCATED).../util/SystemPropertyUtils.class Failed to execute 
  '/usr/bin/unzip -o -d /var/app/staging 
  /opt/elasticbeanstalk/deploy/appsource/source_bundle' Failed to execute 
  '/usr/bin/unzip -o -d /var/app/staging 
  /opt/elasticbeanstalk/deploy/appsource/source_bundle'. Hook 
  /opt/elasticbeanstalk/hooks/restartappserver/pre/01_configure_application.sh 
   failed. For more detail, check /var/log/eb-activity.log using console or EB CLI.

请建议我下一步该怎么做。

enter image description here

我也尝试按照 jhipster 页面中的文档使用 yo jhipster:aws 命令。

我得到的是缺少凭据配置

我的问题是我在给定位置添加了 credentials.properties 文件 ~/.aws/credentials...

表示 .aws/credentials/credentials.properties(文件)。是文件扩展名权和文件夹结构权,。

  Create S3 bucket
  Error jhipster:aws

  Missing credentials in config

【问题讨论】:

  • 首先,ElasticBeanstalk应该缩写为EB。亚马逊使用EBS 表示弹性块存储。另外,能把/var/log/eb-activity.log的内容发一下吗?您可以使用eb ssh 登录您的实例并检索日志,或者使用您的开发环境中的eb logs

标签: amazon-web-services amazon-elastic-beanstalk jhipster


【解决方案1】:

我不确定您的第一个错误,因为您正在尝试手动设置环境,我们需要信息来重现。

关于 yo jhipster:aws 失败,AWS 凭证文件应位于 ~/.aws/credentials,而不是 ~/.aws/credentials/credentials.properties

之后,在 Mac/Linux 上的 ~/.aws/credentials 或 Windows 上的 C:\Users\USERNAME.aws\credentials 中创建凭据文件。

来自文档:https://jhipster.github.io/aws/

【讨论】:

    【解决方案2】:

    为了进一步说明,请使用 vi 并在“~/.aws”文件夹下创建一个名为“credentials”的文件。

    【讨论】:

      猜你喜欢
      • 2016-06-04
      • 2018-11-20
      • 2014-07-05
      • 2017-10-07
      • 1970-01-01
      • 2017-02-05
      • 2016-10-20
      • 2018-10-11
      • 1970-01-01
      相关资源
      最近更新 更多