We are unable to start your build at this time. You exceeded the number of users allowed for your plan. Please review your plan details and follow the steps to resolution.
대강 요금제 허용범위를 초과했다는건데.
나는 무료로 알고 있어서 Travis Support 쪽에 직접 이메일을 보내서 문의해보니
얼마전에 요금제를 도입했다한다😥
Trial Plan 이라고 1만 크레딧을 무료로 제공하는 플랜에 가입했다.
vat id
라는 고유식별 번호를 입력하는 부분은 구글링 해보니여기까진 좋았는데 빌드 하는 부분에서 많이 해맸다.
프로젝트 폴더 안에 폴더를 하나 더 만들어서
그 폴더에서 .idea 랑 소스코드를 넣고 작업하던게 문제였다.
.travis.yml을 프로젝트 폴더 단에 옮기고,
gradlew 의존성을 캐시하기 전에
before_install: - cd ./{프로젝트 폴더 안에 실질적인 소스코드가 있는 폴더 이름} - chmod +x gradlew
코드를 추가해서 초기화 작업 하도록 하여 해결했다.
처음엔
before_script:
- cd {프로젝트 폴더 안에 실질적인 소스코드가 있는 폴더 이름}/
before_install:
- chmod +x gradlew
이렇게 따로 사용했었는데
작업 라이프 사이클
이라는 실행되는 시기의 차이 때문에 빌드가 실패해서
before_install 로 통일하여 해결했다.
.travis.yml파일에서
wait-until-deployed:
를 설정할 때
default 브랜치인 master
와 다른 브랜치를 쓰고 있다면
on:
과branch: <브랜치 이름>
orall_branches: true
키워드를 추가해서 적용하자.
all_branches
는 모든 브랜치 허용이다.
EC2에 IAM 역할 등록할 때도 달라진 점이 있는데
이전 AWS 콘솔에서는 EC2 인스턴스를 우클릭하고
-> 인스턴스 설정 -> IAM 역할 연결 바꾸기
이런식이었는데
지금은 EC2 인스턴스 우클릭 후 바로 보안
이라는 목록이 있어서
그걸 누르고 -> IAM 역할 수정
appspec.yml 파일은 되도록 .idea랑 src 폴더랑 같은 위치에 있으면 되겠다.
appspec.yml 파일에서 공백은 주의하자. 다행히 공식 문서에 설명이 되어있다.
CodeDeploy-agent 로그를 보고 싶다면 EC2에서 이 명령어를 입력한다.
less /var/log/aws/codedeploy-agent/codedeploy-agent.log
https://docs.travis-ci.com/user/job-lifecycle/
https://sustco.tistory.com/13
https://vesselsdiary.tistory.com/154
https://hyeonic.tistory.com/211
https://meorimori.tistory.com/89
https://hongchangsub.com/travis-ciskipping-a-deployment-with-the-s3-provider-because-this-branch-is-not-permitted-2/
https://sarc.io/index.php/aws/1875-error-aws-codedeploy-agent
https://github.com/jojoldu/freelec-springboot2-webservice/issues/296
https://docs.aws.amazon.com/ko_kr/codedeploy/latest/userguide/deployments-view-logs.html
https://docs.aws.amazon.com/ko_kr/codedeploy/latest/userguide/reference-appspec-file.html
https://johngrib.github.io/wiki/CodeDeploy/
https://github.com/jojoldu/freelec-springboot2-webservice/issues/80
https://m.blog.naver.com/PostView.naver?isHttpsRedirect=true&blogId=glryd2&logNo=110189400123