안녕하세요 dev push 후 master 에 merge 중 에러가 나서 질문 드립니다! 섹션 4. Github Actions 를 이용한 배포자동화 main branch 보호해주기 강좌를 보고 있는데요 client_loop: send disconnect: Broken pipe 해당 에러가 나고 있지만 domain 으로 접속해보니깐 수정한 텍스트 적용이 잘되더라구요 검색해보니 https://may0301.tistory.com/10 소켓이 닫혀서 nano ~/.ssh/config 파일에 text editor에 Host * ServerAliveInterval 120 TCPKeepAlive no 를 입력 해줘야한다고하는데 혹시 해당 에러가 나는 원인을 알수 있을까요? 위에 검색한대로 소켓이 닫혀서 그럴까요?
현재 강사님의 강의를 듣고 크롤러와 ETL 배치 파이프라인을 ECS로 배포해서 사용해보려고 합니다 한가지 궁금한 점이 있어 문의드립니다 해당 크롤러와 배치 잡은 모두 api가 아닌 스크립트로 이루어져 있습니다. 이 경우, 클러스터 내 서비스는 생성할 필요 없이, 태스크로만 필요할 때마다 생성하면 되나요? 아님 서비스도 사용하면 좋을까요?
안녕하세요 redis-serve 실행까지는 잘되는데 vsCode 에서 yarn test 만 하면 꼭 아래와 같은 에러가 발생합니다. 기본포트로 할때는 되다가 6380 포트로 바꾼이후로 잘안되고 redis 에서도 바뀐포트로 연결하고 비밀번호까지 쳤는데 아래와 같은 에러가 발생합니다. 그리고 제소스가 에러가 나서 제공해주신 express 소스를 압축을 풀어도 같은 에러가 발생을 합니다. 혹시몰라 build 파일을 삭제하고 재빌드후 다시 켜도 아래와 같은 에러가 나는데 혹시 이유를 알 수 있을까요? ● POST /messages › responds with a success message Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command]) at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14) at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18) at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9) ● GET /messages › responds with all messages Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command]) at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14) at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18) at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9) ● Test suite failed to run thrown: "Exceeded timeout of 5000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." 18 | }); 19 | > 20 | afterAll(async () => { | ^ 21 | await client.flushDb(); 22 | await client.quit(); 23 | }); at Object.<anonymous> (app/index.test.ts:20:1) Test Suites: 1 failed, 1 total FAIL app/index.test.ts (101.064 s) ● POST /messages › responds with a success message Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command]) at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14) at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18) at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9) ● GET /messages › responds with all messages Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command]) FAIL app/index.test.ts (100.278 s) ● POST /messages › responds with a success message Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command]) at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14) at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18) at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9) ● GET /messages › responds with all messages Unhandled error. ([ErrorReply: ERR wrong number of arguments for 'auth' command]) at RedisSocket.<anonymous> (node_modules/@redis/client/dist/lib/client/index.js:396:14) at RedisSocket._RedisSocket_connect (node_modules/@redis/client/dist/lib/client/socket.js:166:18) at Commander.connect (node_modules/@redis/client/dist/lib/client/index.js:184:9) ● Test suite failed to run thrown: "Exceeded timeout of 100000 ms for a hook. Add a timeout value to this test to increase the timeout, if this is a long-running test. See https://jestjs.io/docs/api#testname-fn-timeout." 18 | }); 19 | > 20 | afterAll(async () => { | ^ 21 | await client.flushDb(); 22 | await client.quit(); 23 | }, 100000); at Object.<anonymous> (app/index.test.ts:20:1)
강의 잘 들었습니다. 강의중에 ECS안에 서비스가 여러가지일때 서비스를 찾아갈수 있는 서비스디스커버리에 대해 설명해주신다고 했는데 이부분에 대한 강의가 없네요. 가장 궁금했던 내용이었는데... 아쉽네요 가령 메인도메인과 서브도메인이 있다면 각각의 로드밸런서를 도메인에 연결해서 써야 할까요 아니면 하나의 로드밸런서에 2개의 도메인을 연결해서 메인도메인과 서브도메인을 구분하여 각각의 서비스를 찾아서 로드밸런싱하는 방법이 있을까요?
안녕하세요 선생님, 질 좋은 강의 덕분에 까다로운 배포의 노하우를 손 쉽게 얻어 갈 수 있는 기회를 주셔 감사합니다. 섹션 3부터 비용이 발생 하는 요소가 있는데 이 부분은 실습은 하지 않고 영상만 시청 했는데요. 혹시 이러한 이유로 이후 섹션부터 실습 하는 데 어려움이 있거나 진행이 불가능한 경우가 발생 할까요?
안녕하세요. 유익한 강의 정말 감사드립니다 강의 내용에서 조금 벗어난 질문이 될 수 있겠네요. 현재 강의 내용을 토대로 service 를 생성해보려하는데 public Ip 를 off 하였습니다. 이유는 외부에서의 접근을 막기 위함 (물론 Security guard 로 해결되는 부분입니다) 더 큰 문제는 비용문제로 off 하였습니다 (내년 2월부터 public ip 에 대한 과금 때문입니다) public ip 를 off 한 결과 Service 에서 Task 를 정상적으로 실행못한느데 cloudFormation 을 봐도 정확한 정보가 나오지 않아 현재 2가지 문제로 예상하고 있습니다 ECR 을 pull 하지 못하는 문제 target group 을 auto detect 못하는 문제 혹시 비슷한 경험이 있으면 조언 부탁드립니다! 감사합니다
안녕하세요, 강의 수강 중 궁금한 점이 있어 질문 남깁니다. Scale-in 시에도 기본적으로 graceful shutdown 되도록 ecs autoscaling 내부에서 처리가 되는 것일까요? 아니면, graceful shutdown을 위해서는 따로 설정을 해야하는 것일까요? 감사합니다!
안녕하세요, 강의를 듣다 궁금한 점이 생겨 질문 남깁니다. 이전에 lightsail에서 load-balancing 시 port를 80으로 설정했어야해서 현재 node 서버가 80 port로 설정되어 있잖아요! 만약, node 서버의 port를 4000으로 열어놓고, ECR을 통해서 service 생성 시 load-balancer 세팅에서 사진의 부분이 80:4000으로 자동적으로 바뀌는 건가요? 어떻게 ecr에서 현재 port가 80으로 열려있는 지 인식하고 위와같이 선택할 수 있는건가요? node port가 4000이였다면, 어떻게 되는 것일까요? 감사합니다!
- name: SSH and deploy run: | ssh ${{secrets.SSH_USER_NAME}}@${{secrets.SSH_PUBLIC_IP}} " cd devops-practice git pull || exit 1 npm install || exit 1 npm run build || exit 1 sudo pkill node || exit 1 sudo npm run start & npx wait-on http://localhost exit" SSH and deploy 과정에서 exit 명령어가 실행되지 않고 무한 루프를 돌다가 cd가 실패하는 이슈가 발생합니다. ubuntu 18.04로 변경 ⇒ github action에서 18.04은 이제 지원하지 않는 것 같음 GitHub Actions: The Ubuntu 18.04 Actions runner image is being deprecated and will be removed by 12/1/22 env에 AWS_DEFAULT_REGION을 추가 ⇒ 여전히 에러 발생 이슈해결을 위해 다음 방식을 찾아보았으나, 아직 해결하지 못하였습니다. 어떤 부분이 문제일까요?
저는 port 80으로 실행 시 다음과 같은 에러가 발생하였습니다. Unexpected token . - ...options?.modules https://stackoverflow.com/questions/76493795/syntaxerror-unexpected-token-when-connecting-to-redis-cluster 해당 링크를 통해 이슈를 해결하였습니다. 같은 이슈를 겪고 계시면 도움이 될 수 있을 꺼 같아 올려요!