yml 에 내부 포트를 8081로 한상태로
docker 에서 8081:8080으로 포워딩함
-> 접근불가 내부 포트 포워딩 포트가 yml로 지정한 포트와 다름으로 문제가 생김
yml 에 내부 포트를 8081로 한상태로
docker 에서 8081:8080으로 포워딩함
-> 접근불가 내부 포트 포워딩 포트가 yml로 지정한 포트와 다름으로 문제가 생김
-현재 문제
2025-04-01T09:29:50.882+09:00 INFO 1 --- [ main] com.zaxxer.hikari.HikariDataSource : HikariPool-1 - Starting...
2025-04-01T09:29:50.891+09:00 ERROR 1 --- [ main] j.LocalContainerEntityManagerFactoryBean : Failed to initialize JPA EntityManagerFactory: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, ${URL}
2025-04-01T09:29:50.892+09:00 WARN 1 --- [ main] ConfigServletWebServerApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaConfiguration.class]: [PersistenceUnit: default] Unable to build Hibernate SessionFactory; nested exception is java.lang.RuntimeException: Driver com.mysql.cj.jdbc.Driver claims to not accept jdbcUrl, ${URL}
2025-04-01T09:29:50.942+09:00 INFO 1 --- [ main] o.apache.catalina.core.StandardService : Stopping service [Tomcat]
2025-04-01T09:29:50.977+09:00 INFO 1 --- [ main] .s.b.a.l.ConditionEvaluationReportLogger :
Error starting ApplicationContext. To display the condition evaluation report re-run your application with 'debug' enabled.
2025-04-01T09:29:51.035+09:00 ERROR 1 --- [ main] o.s.boot.SpringApplication : Application run failed
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/or
${URL}의 환경 변수를 받아오지 못하는문제
(AWS secret menager) 로 환경변수를 관리중인데 왜 주입이 되지 않을까???
배포시 git action 을 통해 docker로 말아서 cd를 진행함
지금 예상 문제 병렬적으로 두 워크플로우가 동시에 env 파일을 덮어버리면서 환경변수가 주입이 안되며 서버도 터지는 문제
근데 db는 저렇게 처리해도 잘되는데 왜 redis를 도입하면 문제가 생길까?
-> office 서버와 api 서버를 분리하자!
'Project > TroubleShooting' 카테고리의 다른 글
Elasticsearch 필터와 스코어링 전략: 매칭 로직 개선하기 (0) | 2025.04.26 |
---|---|
항상 마주하는 CORS 에러: 여기 고치면 저기 문제, 저기 고치면 여기 문제 (0) | 2025.01.15 |
U2Net 직접 사용 vs. rembg 활용: 어느 쪽이 더 나을까? (0) | 2024.11.19 |
AWS 과금 (1) | 2024.09.27 |
프로토콜 문제 (0) | 2024.09.11 |