에러헤결 12

AWS RDS를 DataGrip 연결 시 발생하는 문제 (DBMS: MariaDB (no ver.)Case sensitivity: plain=mixed, delimited=exactSocket fail to connect to host:address=(host=umc-rds-test.cgrxpidbha93.ap-northeast-2.rds.amazonaws.com)(port=3306)(type=primary). C..

에러 코드 DBMS: MariaDB (no ver.)Case sensitivity: plain=mixed, delimited=exactSocket fail to connect to host:address=(host=umc-rds-test.cgrxpidbha93.ap-northeast-2.rds.amazonaws.com)(port=3306)(type=primary). Connection timed out: no further information. 에러 상황 AWS RDS를 DataGrip 연결 시 아래와 같은 오류 문구 표시 DBMS: MariaDB (no ver.)Case sensitivity: plain=mixed, delimited=exactSocket fail to connect to host:a..

에러헤결 2023.06.10

MySQL 연동 오류 (Re-enter new password: ... Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Plaase consider using ALTER USER instea..

에러 코드 Re-enter new password: ... Failed! Error: SET PASSWORD has no significance for user 'root'@'localhost' as the authentication method used doesn't store authentication data in the MySQL server. Plaase consider using ALTER USER instead if you want to change authentication parameters. 에러 상황 AWS EC2에 설치한 MySQL을 연결하려고 할 때 에러 발생 Re-enter new password: ... Failed! Error: SET PASSWORD has no signif..

에러헤결 2023.06.10

java.sql.SQLSyntaxErrorException: Unknown column 'user_name' in 'field list'

에러 MySQL의 컬럼명과 Spring의 엔티티명이 달라서 에러 발생 해결 방법 Entity의 Column 애노테이션 이용해서 컬럼명 지정하기 @Column(name="원하는 컬럼명") 위 방법이 안되는 경우 Hibernate 5 이상부터는 아래의 코드를 xml에 추가해야 함 원하는 컬럼명으로 컬럼 지정하기(대소문자 변경 방지) 원하는 테이블명으로 테이블 지정하기(언더바 자동 변경 방지) spring: jpa: hibernate: naming: implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl # 원하는 컬럼명으로 변경(@Column = "") physical-strategy: org.hibernat..

에러헤결 2023.05.19

Table 'Carrot_Market.users' doesn't exist

에러 Table 'Carrot_Market.users' doesn't exist repository를 이용해서 테이블 조회할 때 발생하는 에러 사용한 데이터베이스 : MySQL 해결 방법 테이블명의 대소문자를 구분하기 때문 SHOW VARIABLES LIKE 'lower_case_table_names'; 0 : 대소문자 구분 1 : 대소문자 구분 X 해결방법 1) lower_case_table_names 값을 1로 변경 해결방법 2) 대소문자에 알맞게 테이블명 수정하기 참고 사이트 https://zzang9ha.tistory.com/328

에러헤결 2023.05.19

Resolved [org.springframework.http.converter.HttpMessageNotReadableException: JSON parse error: Cannot construct instance of `com.example.umcspring.user.dto.UserDto$Post` (although at least one Creator exists): cannot deserialize from Object value (no d..

에러 post 요청을 보낼 시 발생 Request Body에서 JSON 형식으로 들어옴 DTO 클래스의 멤버 변수가 1개인 경우 해결 방법 DTO에 멤버변수를 최소 2개 이상 유지하기 참고 사이트 https://thalals.tistory.com/380

에러헤결 2023.05.19

configure: error : Did not find working script at pcre-config

에러 Linux APM 수동 설치 중 apache2 설치 과정에서 발생 해결 방법 --with-pcre=/usr/local/pcre/ 코드를 아래와 같이 변경 --with-pcre=/usr/local/pcre/bin/pcre-config 최종 apache 설치 명령어 ./configure --prefix=/usr/local/apache2.4 --enable-module=so --enable-rewrite --enable-so --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr-util --with-pcre=/usr/local/pcre/bin/pcre-config --enable-mods-shared=all /usr/local/httpd-2.4.46# ma..

에러헤결 2023.05.16

다이어리 사이드 프로젝트 - 502 에러

에러 다이어리 사이드 프로젝트를 거의 마무리를 하고, https와 도메인을 적용하였다. 발급받은 도메인에 접속하니 502 에러 발생 해결 방법 AWS의 LoadBalancing에서 확인 → 502 에러가 다수 발생한 것 확이 가능 AWS 도커로 로그 확인 최종적으로 발견한 원인 로드 밸런싱에 port를 2개 열어놔서 500 에러 발생(위치 : AWS → EC2 → 로드 밸런싱의 대상 그룹 → 그룹 체크 → Targets) 하나의 포트는 cors 에러가 발생하고, 나머지 포트는 그대로 통과 443 포트 삭제 → 문제 해결

에러헤결 2023.05.09

org.springframework.web.client.HttpClientErrorException$Unauthorized: 401 Unauthorized: [no body]

에러 AWS에서 도커 서버를 실행했을 때, 에러 발생 2023-04-20 07:05:53.159 INFO 1 --- [nio-8080-exec-2] i.g.f.c.s.impl.DefaultChatgptService : request url: https://api.openai.com/v1/completions, httpEntity: 2023-04-20 07:05:53.795 DEBUG 1 --- [nio-8080-exec-2] .m.m.a.ExceptionHandlerExceptionResolver : Using @ExceptionHandler com.sentimentdiary.demo.exception.GlobalExceptionAdvice#handleException(Exception) 2023-04-..

에러헤결 2023.04.20

http://localhost:8080/swagger-ui.html의 Whitelabel Error Page

에러 Swagger 적용 후 브라우저에서 http://localhost:8080/swagger-ui.html 접속하면 Whitelabel Error Page 발생 2023-04-14 19:28:50.703 DEBUG 32252 --- [nio-8080-exec-1] o.s.web.servlet.DispatcherServlet : GET "/swagger-ui.html", parameters={} 2023-04-14 19:28:50.709 DEBUG 32252 --- [nio-8080-exec-1] o.s.w.s.handler.SimpleUrlHandlerMapping : Mapped to ResourceHttpRequestHandler [classpath [META-INF/resources/], clas..

에러헤결 2023.04.14