AWS部署失败-Jhipster应用-EBS [英] AWS deployment failed - jhipster app - EBS

查看:113
本文介绍了AWS部署失败-Jhipster应用-EBS的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试通过直接上载war在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.

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

在此处输入图片描述

我还尝试根据jhipster页面中的文档使用 yo jhipster:aws 命令.

我得到的是缺少credentails配置.

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

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

  Create S3 bucket
  Error jhipster:aws

  Missing credentials in config

解决方案

我不确定您的第一个错误,因为您正在尝试手动设置环境,因此我们需要复制信息.

关于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/

I have tried deploying my jhipster application in AWS Elastic BeanStalk by uploading the war directly. When the environment is created, i am getting this error.

 [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.

Please suggest me what to do next.

enter image description here

I have also tried using yo jhipster:aws command as per the documentation in the jhipster page.

What i am getting is Missing credentails Config .

my question is i have added credentials.properties file in the given loaction ~/.aws/credentials...

Means .aws/credentials/credentials.properties (file). is the file extension right and the folder structure right,.

  Create S3 bucket
  Error jhipster:aws

  Missing credentials in config

解决方案

I'm not sure about your first error as you are trying to set the environment up manually and we would need information to reproduce.

In regards to yo jhipster:aws failing, the AWS credentials file should be located at ~/.aws/credentials, not ~/.aws/credentials/credentials.properties

After that create a credentials file at ~/.aws/credentials on Mac/Linux or C:\Users\USERNAME.aws\credentials on Windows.

From the docs: https://jhipster.github.io/aws/

这篇关于AWS部署失败-Jhipster应用-EBS的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆