From 1ab830f245b0f6222200b1073ed158176443ee72 Mon Sep 17 00:00:00 2001 From: happybell80 Date: Tue, 16 Sep 2025 01:05:12 +0900 Subject: [PATCH] =?UTF-8?q?docs:=20PostgreSQL=20=EA=B6=8C=ED=95=9C=20?= =?UTF-8?q?=EB=AC=B8=EC=A0=9C=20=ED=95=B4=EA=B2=B0=20=EB=82=B4=EC=9A=A9=20?= =?UTF-8?q?=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ...50916_rb8001_skill-rag-file_연동_구조.md | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) diff --git a/troubleshooting/250916_rb8001_skill-rag-file_연동_구조.md b/troubleshooting/250916_rb8001_skill-rag-file_연동_구조.md index 850f6c1..4e13126 100644 --- a/troubleshooting/250916_rb8001_skill-rag-file_연동_구조.md +++ b/troubleshooting/250916_rb8001_skill-rag-file_연동_구조.md @@ -106,5 +106,18 @@ metadata, created_at, updated_at - ✅ rb8001 파일 처리 로직 구현됨 - ✅ skill-rag-file DB 모델 동기화 완료 -## 7. 남은 작업 -- Slack team_id → DB team UUID 매핑 (현재 임시 UUID 사용) \ No newline at end of file +## 7. 해결 완료 사항 (2025-09-16) + +### PostgreSQL 권한 문제 해결 +- **문제**: skill-rag-file (51124)이 team_document 테이블 접근 시 permission denied +- **원인**: team_document 테이블이 51123 PostgreSQL에 있고 권한 없음 +- **해결**: + 1. skill-rag-file .env에 51123 PostgreSQL 연결 정보 추가 + - `DATABASE_URL=postgresql+asyncpg://robeings:password@192.168.219.45:5432/main_db` + 2. PostgreSQL 권한 부여: `GRANT ALL PRIVILEGES ON TABLE team_document TO robeings;` + 3. 테이블 소유자 변경: `ALTER TABLE team_document OWNER TO robeings;` + 4. 모든 주요 테이블 소유자 robeings로 통일 (company, team, user, slack_workspace, team_document) + +## 8. 남은 작업 +- Slack team_id → DB team UUID 매핑 (현재 임시 UUID 사용) +- 파일 처리 플로우 엔드투엔드 테스트 \ No newline at end of file