-
Notifications
You must be signed in to change notification settings - Fork 0
[Issue] K8s Pod (Java App) ไม่พร้อมใช้งาน: Cannot connect to DB #7
Copy link
Copy link
Open
Description
แอปพลิเคชัน Java (Spring Boot) ใน Pod ของ Deployment 'scbconnect-api' ไม่สามารถสตาร์ทขึ้นได้ (CrashLoopBackOff)
- ทำการ Deploy Image ใหม่ของ 'scbconnect-api'
- สถานะของ Pod เปลี่ยนเป็น 'CrashLoopBackOff'
- ตรวจสอบ Log พบ Error เกี่ยวกับการเชื่อมต่อ Database (PostgreSQL)
Relevant Log Snippet:
2025-10-09 09:30:15.545 ERROR 1 --- [ main] com.zaxxer.hikari.pool.HikariPool : HikariPool-1 - Failed to initialize pool: org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.
2025-10-09 09:30:15.548 ERROR 1 --- [ main] o.s.b.d.LoggingFailureAnalysisReporters :
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: 'url' attribute is not specified and no embedded datasource could be configured.
Reason:
Database connection refused.
### Project/Application ที่ได้รับผลกระทบ (เช่น scbconnect, j4u, system-wide,meamanee)
meamanee
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels