PSQLException: ERROR: permission denied for schema public 에러 현상 Spring Boot에서 데이터 초기화 스크립트 data.sql을 만들었는데 오류가 발생했다."Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for schema public" 이유를 찾아보니 PostgreSQL15 부터는 데이터베이스 소유자가 아니면 public 스키마에서 create를 할 수 없게 변경되었다."PostgreSQL 15 also revokes the CREATE permission from all users except a database owner from the public (or default) schema."(https://www.postgresql.org/about/news/postgre.. 2025. 1. 9. postgresql 설치하기 (AWS, Amazon Linux, dnf, yum) AWS의 Amazon Linux 서버에서 dnf 명령어를 이용하여 postgresql 설치하는 방법여기서 사용되는 dnf명령어는 yum으로 대체할 수 있다. 1) 패키지 조회하기dnf list | grep postgre 2) 패키지 설치하기sudo dnf install postgresql16-server 3) 서비스 등록(systemctl) 확인하기systemctl status postgresql sudo cat /usr/lib/systemd/system/postgresql.servicePGDATA 데이터 경로가 서비스 파일에 등록되어 있다. 데이터 경로 변경 시 서비스 파일도 같이 변경해야 한다. 4) systemctl 시작하기 (오류발생함)sudo systemctl statrt postgresql.. 2024. 12. 19. AWS 루트 볼륨 확장 후 적용 방법 AWS에서 루트(/) 볼륨의 크기를 확장한 후, 서버에 접속해서 확인해 보면 디스크 공간이 늘어나지 않고 그대로 보이는 증상이 있고, EXT4 파일시스템을 사용할 때의 해결 방법을 정리한다. 현재 사용하는 파일시스템을 확인하는 방법은 "df -T"로 확인할 수 있다. (참고로 아래 명령어 실행 결과들은 디스크 확장 실행 전후 순서 상관없이 복사한 결과로 디스크 크기 수치를 참고하면 안됨.)$ df -TFilesystem Type 1K-blocks Used Available Use% Mounted on/dev/root ext4 100476656 52382952 48077320 53% /tmpfs tmpfs 4064360 0 4064360 .. 2024. 10. 29. miniconda 설치 https://docs.anaconda.com/miniconda/ Miniconda — Anaconda documentationThese three commands quickly and quietly download the latest 64-bit Windows installer, rename it to a shorter file name, silently install, and then delete the installer: curl https://repo.anaconda.com/miniconda/Miniconda3-latest-Windows-x86_64.exe -o minicdocs.anaconda.com Linux용 설치파일 다운로드 링크 클릭하여 설치할 수 있지만,https://repo.anac.. 2024. 10. 17. AWS EC2에서 마리아디비(MariaDB) 설치하기 AWS에서는 MariaDB 공식 홈페이지에 나온 방법으로 MariaDB 설치가 되지 않는다. MariaDB 패키지 목록을 확인해 보면, "mariadb105-server"로 시작하는 패키지가 존재하며, 이것을 설치하면 된다.뒤의 105 라는 숫자는 MariaDB 10.5 버전을 의미한다.$ yum list | grep -i mariadb*mariadb-connector-c.x86_64 3.1.13-1.amzn2023.0.3 amazonlinuxmariadb-connector-c-config.noarch 3.1.13-1.amzn2023.0.3.. 2024. 10. 7. kubernetes에서 PVC 삭제(그리고 생성)가 안될 때 쿠버네티스(kubernetes)에서 PVC를 삭제할 때 멈춰 있는 경우가 있다. PVC가 "Terminating" 상태에서 멈춘 이유는 대개 PVC와 연결된 리소스(Pod 또는 Finalizer)가 삭제되지 않았기 때문이고, Finalizer를 삭제하고 Pod를 삭제하는 방법으로 해결할 수 있다.참고로 앞으로 이 글에 등장하는 ""와 ""는 각자 사용하는 PVC의 이름으로 바꾸면 된다. PVC 삭제$ kubectl delete pvc persistentvolumeclaim "" deleted 분명히 deleted라고 나오긴 하지만 실제로 kubectl get pvc 명령어로 확인하면 남아있고, 저 상태로 끝나지 않고 계속 실행 중이다. 이럴 때는 SSH 창을 추가로 열고, 상태를 확인해 보면 STATU.. 2024. 9. 13. 이전 1 2 3 4 다음