에러 디버그 기록9 Mastruct, lombok 관련 에러 java: constructor EnrollResponseDto in class com.cactusvilleage.server.challenge.web.dto.response.EnrollResponseDto cannot be applied to given types; required: com.cactusvilleage.server.challenge.entities.Challenge.ChallengeType,boolean,int found: no arguments reason: actual and formal argument lists differ in length build.gradle 디펜던시 순서를 지켜야한다 annotationProcessor 선언 할 때 타겟 클래스에 빌더가 정의되어 있다면 빌더가.. 2022. 10. 11. JpaSystemException : Null value was assigned to a property dB에 Not Null 지정이 되어 있지 않은 컬럼은 자바에서 Primitive Type으로 되어 있기 때문에 null을 담을 수 없고 null을 담을 수 있는 Wrapper class로 바꿔줘야 한다 2022. 10. 11. nginx: [emerg] "user" directive is not allowed here in /etc/nginx/conf.d/nginx.conf:1 nginx 이미지를 베이스로 가져오게 되면 docker 안쪽의 /etc/nginx/ 경로에 기본적으로 nginx.conf 파일이 존재한다 (docker run -it server_nginx sh ) 이걸 에디터로 열어서 확인해보면, user nginx; worker_processes 1; error_log /var/log/nginx/error.log warn; pid /var/run/nginx.pid; events { worker_connections 1024; } http { include /etc/nginx/mime.types; default_type application/octet-stream; log_format main '$remote_addr - $remote_user [$time_local].. 2022. 10. 11. The Compose file is invalid because: Service nginx has neither an image nor a build context specified. At least one must be provided -> 컴포즈 파일에 컨텍스트가 존재하지 않아서 생기는 오류 docker-compose.yml에 context를 추가(or 수정)해줘야한다 context는 Dockerfile이 포함된 디렉토리 경로를 의미한다 Dockerfile이 패키지 구성 상 최상단에 위치하기 때문에 나의 경우, docker-compose.yml을 Dockerfile과 동일한 최상단에 구성해놨고 context는 . 을 입력해서 해결했다 (현재 디렉토리) 2022. 10. 11. sudo yum command not found 만약 지금 사용하는 것이 우분투라면, Debian 기반이기 때문에 yum 유틸리티가 리눅스 시스템에 기본적으로 설치되지 않는다 CentOs, Fedora 같은 것들이 RedHat 기반 배포판이다 그러므로 yum 대신 apt-get 명령어를 사용한다 (Debian 계열 리눅스의 패키지 관리 명령어 도구) 2022. 10. 11. EC2 인스턴스 연결 SSH 클라이언트 pem키 permission denied 키의 권한을 chmod로 변경해줘야한다 chmod 600 {pem key} 8진법 permission 값 rw- --- --- 소유자에게만 읽기 쓰기 권한 주는 것 2022. 10. 11. 이전 1 2 다음