TrubleShooting(3)
-
[NestJS] PartialType 사용시 Swagger 스키마 생성 안되는 현상
npx nest generate resource nest-cli를 이용해서 위의 명령어를 작성하면 CRUD용 코드를 편리하게 생성해주는데 생성DTO와 수정DTO를 보통 따로 작성해주는데 NestJS에서 CreateArticleDto에 대한 body값을 dto로 작성하면 swagger에 스키마가 나오게 되고 import { ApiProperty } from '@nestjs/swagger'; export class CreateArticleDto { @ApiProperty() title: string; @ApiProperty({ required: false }) description?: string; @ApiProperty() body: string; @ApiProperty({ required: false, ..
2023.09.26 -
[docker] postgresSQL에서 FATAL: password authentication failed for 에러
진행 docker-compose.yml 파일을 작성 후 docker-compose up -d로 백그라운드에서 docker을 실행 후 DBeaver라는 툴에서 연결하려 했더니 FATAL: password authentication failed for postgres 에러가 떴다.. # docker-compose.yml version: '3.8' services: postgres: # 사용할 docker 이미지 정의 (postgres 이미지의 13버전의 linux기반 경량 postgres 이미지) image: postgres:13-alpine restart: always # 초기화 중에 컨테이너에 전달되는 환경 변수를 지정 (컨테이너가 사용할 사용자이름, 비밀번호 등) environment: ..
2023.09.16 -
[AWS] ubuntu EC2에서 CodeDeploy 에러 (Agent)
회사 프로덕트를 개발하다 CI/CD 구성을 AWS의 CodePipeline을 이용해서 지속적인 통합, 개발을 세팅하기로 했습니다. EC2 - t2.micro (ubuntu LTS 22버전) 을 사용하다 기존 회사분이 AWS Linux 로 배포시에는 크게 이상이 없었는데 ubuntu로 OS선택하니 해당 에러가 발생했습니다! CodeDeploy agent was not able to receive the lifecycle event. Check the CodeDeploy agent logs on your host and make sure the agent is running and can connect to the CodeDeploy server 이유는 2가지로 볼 수 있는데 1번째 이유 IAM에서 Code..
2023.09.01