이슈 해결 10

[Issue 해결] Get "http://localhost:9292/management/prometheus": dial tcp 127.0.0.1:9292: connect: connection refused

❗️ Issue prometheus 연동 확인(상단 네비게이션 바: status > targets)시 아래 에러가 뜨면서 연동이 되지 않았다.Get "http://localhost:9292/management/prometheus": dial tcp 127.0.0.1:9292: connect: connection refused 그래서 다른 블로그 글을 참고해서 host.docker.internal 로 prometheus.yml의 targets: [' host.docker.internal :9292'] 로 변경했는데도 접속이 안되었다. 참고로 9292는 내가 변경된 액츄에이터 포트이다 💡 Solution 현재 CI/CD 구축 아키텍처는 아래와 같아서, 즉, 컨테이너가 가상 브릿지로 연결되어 있으므로,프로메..

이슈 해결 2024.03.28

[Issue 해결] mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied GF_PATHS_DATA='/var/lib/grafana' is not writable.

❗️ Issue mkdir: can't create directory '/var/lib/grafana/plugins': Permission denied GF_PATHS_DATA='/var/lib/grafana' is not writable. 💡 Solution 구글링을 하다 보니 권한 문제 인것 같아 volumes 아래 부분에 user: root 라는 문구를 적어줬더니 정상적으로 컨테이너가 실행되는것을 확인했다.version: '3'services: prometheus: image: prom/prometheus:latest container_name: prometheus user: root volumes: - /home/monitor/prometheus/:/etc/pro..

이슈 해결 2024.03.28

[Issue 해결] for argument of type [java.lang.Long] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.]

❗️ Issue for argument of type [java.lang.Long] not specified, and parameter name information not available via reflection. Ensure that the compiler uses the '-parameters' flag.] 💡 Solution RequestParam 설정을 안하고 그냥 (Long loginUserId) 로 요청을 받았었다.입력되는 값이 한개라서 적절히 알아듣고 작동했던 것으로 판단되는데이후에 여러 파라미터 값을 받으니 저런 오류가 떴다. Long loginUserId  = > @RequestParam(name = "loginUserId") Long loginUserId로 변경해서 해결했다.@O..

이슈 해결 2024.03.28

[Issue 해결] S3 multifile + dto postman 전송 방법

❗️ Issue swagger로는 테스트할 수 없어서 postman으로 사용해야함아래는 요청하는 방식이다.💡 Solution 저 key 부분은 RequestPram의 name 아니면 value 값이고 만약에 설정을 안했으면 변수명이다.  그리고 만약 보안 설정이되어있어서 엑세스 토큰을 헤더에 보내야한다면 아래처럼 Authorization을 키로 추가하고 Value 값으로 bearer {토큰값} 으로 넣어주면 된다.

이슈 해결 2024.03.28

[Issue 해결] The bucket does not allow ACLs (Service: Amazon S3; Status Code: 400; Error Code: AccessControlListNotSupported;

❗️ Issue "The bucket does not allow ACLs (Service: Amazon S3; Status Code: 400; Error Code: AccessControlListNotSupported; 💡 Solution ACL 활성화 하면 됨 ACL 이란?- 컴퓨터 보안에서 액세스 제어 목록(ACL)은 시스템 리소스와 관련된 권한 목록이고, 방화벽을 구축하는 데 있어서 가장 중요한 요소이며 트래픽 필터링(Traffic Filtering)의 기능을 합니다. -  허가(Permit)되지 않은 이용자가 라우터나 네트워크에 접근하려고 하는 것을 차단하고 출발지 주소(Source address), 목적지 주소(Destination address), 포트 번호(Port number), 프로토콜..

이슈 해결 2024.03.28

Please set the JAVA_HOME variable in your environment to match thelocation of your Java installation./ERROR: JAVA_HOME is set to an invalid directory:

gradle 프로젝트의 라이브러리 의존성을 확인하기 위해서 ./gradlew dependencies 위의 명령어를 쳤는데 계속해서 JAVA_HOME을 알 수 없다는 에러가 났다. 그래서 환경설정 부분을 다시 확인해봤는데 이전 경로를 찾을 수 없다고 했다. 그래서 경로를 아래로 바꿔서 해결하였다. JAVA_HOME=/Library/Java/JavaVirtualMachines/openjdk-17.jdk/Contents/Home PATH=$PATH:$JAVA_HOME/bin export JAVA_HOME export PATH 차이가 뭔지 궁금해서 검색해봤더니 자바를 설치할 때 /opt 디렉토리에 설치하면 사용자가 직접 선택한 위치에 설치되며, /usr/lib 디렉토리에 설치하면 시스템 라이브러리 디렉토리에 설..

이슈 해결 2024.01.06