You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
EC2에서 workflow를 통해 빌드된 파일을 직접 실행해보니 프로젝트 내부 로직 중 redis 캐시 애노테이션이 포함돼 문제 발생:
2023-07-27T05:18:38.762Z INFO 24269 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface yeolJyeongKong.mall.repository.FavoriteRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
2023-07-27T05:18:38.763Z INFO 24269 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface yeolJyeongKong.mall.repository.RecentRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
2023-07-27T05:18:38.763Z INFO 24269 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface yeolJyeongKong.mall.repository.TopRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
2023-07-27T05:18:38.767Z INFO 24269 --- [ main] .RepositoryConfigurationExtensionSupport : Spring Data Redis - Could not safely identify store assignment for repository candidate interface yeolJyeongKong.mall.repository.CategoryRepository; If you want this repository to be a Redis repository, consider annotating your entities with one of these annotations: org.springframework.data.redis.core.RedisHash (preferred), or consider extending one of the following types with your repository: org.springframework.data.keyvalue.repository.KeyValueRepository
...
deploy.yml에 docker-compose 설치, 빌드 및 실행 로직을 넣었을 때 다음 에러 발생:
Error response from daemon: failed to create shim task: OCI runtime create failed: runc create failed: unable to start container process: error during container init: error mounting "/home/ubuntu/app/src/main/resources/prometheus.yml" to rootfs at "/etc/prometheus/prometheus.yml": mount /home/ubuntu/app/src/main/resources/prometheus.yml:/etc/prometheus/prometheus.yml (via /proc/self/fd/6), flags: 0x5000: not a directory: unknown: Are you trying to mount a directory onto a file (or vice-versa)? Check if the specified host path exists and is the expected type
Error: Process completed with exit code 1.
To Do
redis, prometheus, grafana를 docker container로 한번에 띄울 수 있도록 docker-compose.yml 작성
EC2에서 docker 설치 및 docker 데몬이 실행되고 있는지 확인
appspec.yml에 의해 배포할 때마다 실행되는 start.sh, stop.sh를 수정해 docker-compose.yml 실행 관리
start.sh : docker compose up -d
stop.sh : docker compose down -v
The text was updated successfully, but these errors were encountered:
Problem
redis
캐시 애노테이션이 포함돼 문제 발생:deploy.yml
에 docker-compose 설치, 빌드 및 실행 로직을 넣었을 때 다음 에러 발생:To Do
redis
,prometheus
,grafana
를 docker container로 한번에 띄울 수 있도록docker-compose.yml
작성appspec.yml
에 의해 배포할 때마다 실행되는start.sh
,stop.sh
를 수정해docker-compose.yml
실행 관리start.sh
: docker compose up -dstop.sh
: docker compose down -vThe text was updated successfully, but these errors were encountered: