首次使用CodeBuild时发生错误 [英] Errors on using CodeBuild for first time

查看:155
本文介绍了首次使用CodeBuild时发生错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在将代码构建作为简单代码管道的一部分开始时,我在几秒钟内收到以下错误.

When starting a code build as part of a simple code pipeline, I get the following error within a few seconds.

Action execution failed
Error calling startBuild: Cannot have more than 0 builds in queue for the account (Service: AWSCodeBuild; Status Code: 400; Error Code: AccountLimitExceededException; Request ID: 80bfxxxxx

我已经使用AWS Code管道向导创建了一个简单的构建和部署过程,所以我假设这样做是错误的.

I have used the AWS Code pipeline wizard to create a simple build and deploy process, so I assume a misconfiguration did this.

我的问题是它所指的队列是什么?我是否在隔离任何其他AWS任务的情况下运行此构建?

My question is what is the queue it refers to? I am running this build in isolation of any other AWS task?

有关信息,这是我的buildspec.yml,尽管我怀疑在访问它之前构建会失败:

For information this is my buildspec.yml, though I suspect the build fails before accessing it:

version: 0.2

env:

phases:
  install:
    commands:
      - echo Entered the install phase...
      - apt-get update -y
      - apt-get install -y maven
    finally:
      - echo This always runs even if the update or install command fails 
  pre_build:
    commands:
      - echo Entered the pre_build phase...
      - cd server/harvest
    finally:
      - echo This always runs even if the login command fails 
  build:
    commands:
      - echo Entered the build phase...
      - echo Build started on `date`
      - mvn package
    finally:
      - echo This always runs even if the install command fails
  post_build:
    commands:
      - echo Entered the post_build phase...
      - echo Build completed on `date`
artifacts:
  files:
    - target/harvest-1.0-SNAPSHOT.jar
  discard-paths: yes

推荐答案

听起来像是帐户问题.此错误通常表示您正在使用的帐户处于非活动状态(至少不用于CodeBuild订阅),因此不允许在CodeBuild中启动任何构建.请联系AWS支持以激活您的帐户.

Sounds like an account issue. This error typically means that the account you are using is not active (at least not for CodeBuild subscription), hence not allowed to start any builds in CodeBuild. Please contact AWS support to activate your account.

这篇关于首次使用CodeBuild时发生错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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